Author: dbkr
Date: 2006-08-31 15:35:02 +0000 (Thu, 31 Aug 2006)
New Revision: 10304
Modified:
trunk/apps/Freemail/src/freemail/InboundContact.java
trunk/apps/Freemail/src/freemail/MailMessage.java
Log:
Fix multi line headers that start with tabs (affected multipart messages in
Outlook) and UID logging.
Modified: trunk/apps/Freemail/src/freemail/InboundContact.java
===================================================================
--- trunk/apps/Freemail/src/freemail/InboundContact.java 2006-08-31
12:58:56 UTC (rev 10303)
+++ trunk/apps/Freemail/src/freemail/InboundContact.java 2006-08-31
15:35:02 UTC (rev 10304)
@@ -134,6 +134,12 @@
}
System.out.println("You've got mail!");
sm.slotUsed();
+ try {
+ msglog.add(id);
+ } catch (IOException ioe) {
+ // how should we handle this? Remove the message
from the inbox again?
+ System.out.println("warning: failed to write log
file!");
+ }
String ack_key = this.ibct_props.get("ackssk");
if (ack_key == null) {
System.out.println("Warning! Can't send message
acknowledgement - don't have an 'ackssk' entry! This message will eventually
bounce, even though you've received it.");
Modified: trunk/apps/Freemail/src/freemail/MailMessage.java
===================================================================
--- trunk/apps/Freemail/src/freemail/MailMessage.java 2006-08-31 12:58:56 UTC
(rev 10303)
+++ trunk/apps/Freemail/src/freemail/MailMessage.java 2006-08-31 15:35:02 UTC
(rev 10304)
@@ -193,7 +193,7 @@
this.addHeader(parts[0], parts[1]);
parts = null;
break;
- } else if (line.startsWith(" ")) {
+ } else if (line.startsWith(" ") ||
line.startsWith("\t")) {
// contination of previous line
if (parts == null || parts[1] == null)
continue;