From: adam Date: Thu, 8 Jul 2004 09:10:42 +0000 (+0000) Subject: more logging for where we write files to X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=8a86899c935534f7855dcf1b5fbb72947474c694;p=org.ibex.mail.git more logging for where we write files to darcs-hash:20040708091042-5007d-cb27c550229c4f7d5b0c983eb12492c25c8e7fd4.gz --- diff --git a/src/org/ibex/mail/protocol/SMTP.java b/src/org/ibex/mail/protocol/SMTP.java index f457986..d6e397a 100644 --- a/src/org/ibex/mail/protocol/SMTP.java +++ b/src/org/ibex/mail/protocol/SMTP.java @@ -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; diff --git a/src/org/ibex/mail/target/FileBasedMailbox.java b/src/org/ibex/mail/target/FileBasedMailbox.java index cba347e..2520404 100644 --- a/src/org/ibex/mail/target/FileBasedMailbox.java +++ b/src/org/ibex/mail/target/FileBasedMailbox.java @@ -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); } }