Author: alexlehm
Date: 2007-10-27 17:54:26 +0000 (Sat, 27 Oct 2007)
New Revision: 15613

Modified:
   trunk/apps/Freemail/src/freemail/InboundContact.java
Log:
check for invalid slot names (too short), this should be the fix for issue 1811 
which is basically residue of the error #844

Modified: trunk/apps/Freemail/src/freemail/InboundContact.java
===================================================================
--- trunk/apps/Freemail/src/freemail/InboundContact.java        2007-10-27 
17:17:04 UTC (rev 15612)
+++ trunk/apps/Freemail/src/freemail/InboundContact.java        2007-10-27 
17:54:26 UTC (rev 15613)
@@ -87,6 +87,11 @@
                }
                String slot;
                while ( (slot = sm.getNextSlot()) != null) {
+                       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);
+                               break;
+                       }
                        String key = basekey+slot;

                        System.out.println("Attempting to fetch mail on key 
"+key);


Reply via email to