From: adam Date: Sat, 30 Oct 2004 22:51:00 +0000 (+0000) Subject: catch null envelopeTos X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d4ed1b80c5c51207a1e77f27ad2e27cf29d7667d;p=org.ibex.mail.git catch null envelopeTos darcs-hash:20041030225100-5007d-cde19aa98f9fd3d7494236e1d67117c3d19be11a.gz --- diff --git a/src/org/ibex/mail/protocol/SMTP.java b/src/org/ibex/mail/protocol/SMTP.java index 3101f3f..6d4aba2 100644 --- a/src/org/ibex/mail/protocol/SMTP.java +++ b/src/org/ibex/mail/protocol/SMTP.java @@ -145,6 +145,10 @@ public class SMTP { } public static boolean attempt(Message m) throws IOException { + if (m.envelopeTo == null) { + Log.warn(SMTP.Outgoing.class, "aieeee, null envelopeTo: " + m.summary()); + return false; + } InetAddress[] mx = getMailExchangerIPs(m.envelopeTo.host); if (mx.length == 0) { Log.warn(SMTP.Outgoing.class, "could not resolve " + m.envelopeTo.host + "; bouncing it\n" + m.summary());