Author: dbkr
Date: 2007-10-28 22:12:19 +0000 (Sun, 28 Oct 2007)
New Revision: 15629

Modified:
   trunk/apps/Freemail/src/freemail/InboundContact.java
Log:
Please add comments to hacks like this.


Modified: trunk/apps/Freemail/src/freemail/InboundContact.java
===================================================================
--- trunk/apps/Freemail/src/freemail/InboundContact.java        2007-10-28 
19:43:08 UTC (rev 15628)
+++ trunk/apps/Freemail/src/freemail/InboundContact.java        2007-10-28 
22:12:19 UTC (rev 15629)
@@ -87,6 +87,9 @@
                }
                String slot;
                while ( (slot = sm.getNextSlot()) != null) {
+                       // the slot should be 52 characters long, since this is 
how long a 256 bit string ends up when base32 encoded.
+                       // (the slots being base32 encoded SHA-256 checksums)
+                       // TODO: remove this once the bug is ancient history, 
or if actually want to check the slots, do so in the SlotManagers.
                        if(slot.length()!=52) {
                                System.out.println("ignoring malformed slot 
"+slot+" (probably due to previous bug)");
                                System.out.println("please the fix the entry in 
"+this.ibct_dir);


Reply via email to