Susimail: Don't let an exception on one mail break others

This commit is contained in:
zzz
2014-05-13 21:36:06 +00:00
parent e393f82eb7
commit df71308664
5 changed files with 19 additions and 5 deletions

View File

@ -118,6 +118,8 @@ class Mail {
part = new MailPart(rb);
} catch (DecodingException de) {
Debug.debug(Debug.ERROR, "Decode error: " + de);
} catch (Exception e) {
Debug.debug(Debug.ERROR, "Parse error: " + e);
}
}

View File

@ -282,6 +282,9 @@ class PersistentMailCache {
} catch (IOException ioe) {
Debug.debug(Debug.ERROR, "Error reading: " + f + ": " + ioe);
return null;
} catch (OutOfMemoryError oom) {
Debug.debug(Debug.ERROR, "Error reading: " + f + ": " + oom);
return null;
} finally {
if (in != null)
try { in.close(); } catch (IOException ioe) {}

View File

@ -237,9 +237,15 @@ public class POP3MailBox implements NewMailListener {
Integer idObj = Integer.valueOf(id);
ReadBuffer body = null;
if (id >= 1 && id <= mails) {
body = sendCmdN( "RETR " + id );
if (body == null)
Debug.debug( Debug.DEBUG, "RETR returned null" );
try {
body = sendCmdN( "RETR " + id );
if (body == null)
Debug.debug( Debug.DEBUG, "RETR returned null" );
} catch (OutOfMemoryError oom) {
Debug.debug( Debug.ERROR, "OOM fetching mail" );
lastError = oom.toString();
close();
}
}
else {
lastError = "Message id out of range.";

View File

@ -1,6 +1,9 @@
2014-05-13 zzz
* BOB, SAM, i2psnark: Fix datagram NPE (ticket #1275)
* SusiMail: Fix AIOOBE (ticket #1269)
* i2psnark: Escaping fixes on details page
* SusiMail:
- Fix AIOOBE (ticket #1269)
- Don't let an exception on one mail break others
2014-05-10 zzz
* NTCP: Fix NPE (ticket #996)

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 18;
public final static long BUILD = 19;
/** for example "-test" */
public final static String EXTRA = "-rc";