more logging for where we write files to
authoradam <adam@megacz.com>
Thu, 8 Jul 2004 09:10:42 +0000 (09:10 +0000)
committeradam <adam@megacz.com>
Thu, 8 Jul 2004 09:10:42 +0000 (09:10 +0000)
darcs-hash:20040708091042-5007d-cb27c550229c4f7d5b0c983eb12492c25c8e7fd4.gz

src/org/ibex/mail/protocol/SMTP.java
src/org/ibex/mail/target/FileBasedMailbox.java

index f457986..d6e397a 100644 (file)
@@ -24,6 +24,7 @@ public class SMTP {
 
     public static class Server implements Worker {
         public void handleRequest(Connection conn) {
+            Log.error(this, "accepted...");
             conn.setTimeout(5 * 60 * 1000);
             conn.println("220 " + conn.vhost + " SMTP " + this.getClass().getName());
             Address from = null;
index cba347e..2520404 100644 (file)
@@ -100,12 +100,14 @@ public class FileBasedMailbox extends Mailbox.Default {
                 ((flags & Mailbox.Flag.ANSWERED) == Mailbox.Flag.ANSWERED ? "a" : "") +
                 ((flags & Mailbox.Flag.FLAGGED) == Mailbox.Flag.FLAGGED ? "f" : "") +
                 ((flags & Mailbox.Flag.SEEN) == Mailbox.Flag.SEEN ? "s" : "");
+            Log.info(this, "    with chosen filename " + name);
             File target = new File(name);
             File f = new File(target.getCanonicalPath() + "-");
             FileOutputStream fo = new FileOutputStream(f);
             message.dump(new Stream(fo));
             fo.close();
             f.renameTo(target);
+            Log.info(this, "    done writing.");
         } catch (IOException e) { throw new MailException.IOException(e); }
     }