Changeset 56c17300
- Timestamp:
- Feb 21, 2018 3:05:15 PM (3 years ago)
- Branches:
- master
- Children:
- 4b1a357
- Parents:
- 61ae0a5
- Location:
- apps/susimail/src/src/i2p/susi/webmail
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/susimail/src/src/i2p/susi/webmail/PersistentMailCache.java
r61ae0a5 r56c17300 163 163 * @since 0.9.34 164 164 */ 165 private class Loader implements Runnable {165 private static class Loader implements Runnable { 166 166 private final Queue<File> _in; 167 167 private final Queue<Mail> _out; … … 346 346 347 347 /** 348 * This is for the initial load only. 349 * Others will use getMail(). 350 * 348 351 * @return null on failure 349 352 */ -
apps/susimail/src/src/i2p/susi/webmail/WebMail.java
r61ae0a5 r56c17300 85 85 import net.i2p.servlet.util.WriterOutputStream; 86 86 import net.i2p.util.I2PAppThread; 87 import net.i2p.util.RFC822Date; 87 88 import net.i2p.util.SecureFileOutputStream; 88 89 import net.i2p.util.Translate; … … 2493 2494 if( ok ) { 2494 2495 StringBuilder body = new StringBuilder(1024); 2496 I2PAppContext ctx = I2PAppContext.getGlobalContext(); 2497 body.append("Date: " + RFC822Date.to822Date(ctx.clock().now()) + "\r\n"); 2495 2498 // todo include real names, and headerline encode them 2496 2499 body.append( "From: " + from + "\r\n" ); … … 2503 2506 sessionObject.error += e.getMessage(); 2504 2507 } 2505 String boundary = "_=" + I2PAppContext.getGlobalContext().random().nextLong();2508 String boundary = "_=" + ctx.random().nextLong(); 2506 2509 if (multipart) { 2507 2510 body.append( "MIME-Version: 1.0\r\nContent-type: multipart/mixed; boundary=\"" + boundary + "\"\r\n\r\n" );
Note: See TracChangeset
for help on using the changeset viewer.