Author: jflesch
Date: 2007-08-16 10:31:12 +0000 (Thu, 16 Aug 2007)
New Revision: 14717

Modified:
   trunk/apps/Thaw/src/thaw/plugins/miniFrost/Frost.txt
   trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKAttachmentFactory.java
Log:
Update my notes about the frost boards

Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/Frost.txt
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/Frost.txt        2007-08-16 
00:32:25 UTC (rev 14716)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/Frost.txt        2007-08-16 
10:31:12 UTC (rev 14717)
@@ -122,9 +122,38 @@
 <!-- Obsolete -->
 
<Signature><![CDATA[oMQS9OuM1jjTQPvfjHbiGrNEkgrK8avqXlDXqZ6mjweEotZdnt4V2xvXYSMuUwQj3qwOfQejhub55Ii15NBI6J8xZ2sTJr0uiSwZ8ToJspHB+h5PwG9ROuvtsoRUt23rKT2gzjXOu/HMygwZ1j3+ilAd2Rua9x9WQ+KJgPvVSPQ=]]></Signature>

+
 <!-- Signature (see the public RSA key above)
      The signature is made from the elements:
-     *TODO*
+
+signedContent = date + '|'
+              + time + '|'
+              + board + '|'
+              + from + '|'
+              + messageId + '|'
+              + ((inReplyTo != null) ? (inReplyTo + '|') : "")
+              + ((recipient != null) ? (recipient + '|') : "")
+              + idLinePos + '|'
+              + idLineLen + '|'
+              + subject + '|'
+              + body + '|';
+
+for (attachment in attachments) {
+    if (attachment instanceof Board)
+        signedContent += filter(attachment.name.toLowerCase()) + '|'
+                       + ((attachment.publicKey != null) ? (board.publicKey + 
'|') : "")
+                      + ((attachment.privateKey != null) ? (board.privateKey + 
'|') : "");
+    else if (attachment instanceof File)
+        signedContent += filename + '|'
+                      + publicKey + '|';
+}
+
+
+filter() replace the following caracters by a '_':
+'/', '\\', '?', '*', '<', '>', '\"', ':', '|', '#', '&'
+
+and if the specified string starts with a '.', it prefixes it with a '_'.
+
 -->
 
<SignatureV2><![CDATA[clfW3OggCYIy2MIKAMXkreBPqMzpZR/AWguWfjlnuwGogj/HBJuRgWji0GPrbA4KmmYsakMgoMt3rQ4hwZLlyxEW7ncz2cCEiXZLfecfmDe/rQ/wFn/LSsVIxxZRDXVuWMWkuPLsLxpUGztAf7hWoax5h4KsMvzMiqHJzUZHQEI=]]></SignatureV2>


Modified: 
trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKAttachmentFactory.java
===================================================================
--- 
trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKAttachmentFactory.java   
    2007-08-16 00:32:25 UTC (rev 14716)
+++ 
trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKAttachmentFactory.java   
    2007-08-16 10:31:12 UTC (rev 14717)
@@ -83,7 +83,7 @@
                        try {
                                val = 
XMLTools.getChildElementsCDATAValue(rootEl, properties[i]);
                        } catch(java.lang.ClassCastException e) {
-                               /* FROST XML SUCKS. IT SUCKS IT SUCKS IT SUCKS 
IT SUCKS. */
+                               /* Dirty */
                                val = 
XMLTools.getChildElementsTextValue(rootEl, properties[i]);
                        }



Reply via email to