Lotus Note Mail signing using Java API via DIIOP
<p>We are using DIIOP to send mail in a Java program, but when the recipient open the mail, although there is "This message is digitally signed" , there is a warning message on the status bar "This Document has been altered since the time it was signed! Intentional tampering may have occurred." Checking the properties of the received mail "$Signature" is there, but "$SignatureStatus" is "2" indicating that the document has been alter after being signed.</p>

<p>The code snippet:</p>

<pre><code>lotus.domino.Document memo = dominoDb.createDocument();
memo.replaceItemValue( "Form", "Memo" );
...
memo.setSaveMessageOnSend(true);
memo.setSignOnSend(true);
memo.sign();
memo.send(false);
</code></pre>

<p>If either memo.sign() or memo.setSignOnSend(true) is omitted, the received document would not be signed with no $Signature, and $SignatureStatus of value "0".</p>

<p>By the way, the memo.setEncryptOnSend(boolean) works just as expected.</p>