]> Pileus Git - ~andy/fetchmail/commitdiff
Slight change in bounce logic.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 14 Dec 2001 09:00:32 +0000 (09:00 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 14 Dec 2001 09:00:32 +0000 (09:00 -0000)
svn path=/trunk/; revision=3562

sink.c

diff --git a/sink.c b/sink.c
index c75286127d85c5582b7f5cfeda03284990b336c5..e7e4d5c03c43e3d3b0254ea42e14a88baf95843d 100644 (file)
--- a/sink.c
+++ b/sink.c
@@ -402,10 +402,11 @@ static int handle_smtp_report(struct query *ctl, struct msgblk *msg)
         * ESMTP server.  Don't try to ship the message, 
         * and allow it to be deleted.
         */
-       send_bouncemail(ctl, msg, XMIT_ACCEPT,
+       if (run.bouncemail)
+           send_bouncemail(ctl, msg, XMIT_ACCEPT,
                        "This message was too large (SMTP error 552).\r\n", 
                        1, responses);
-       return(run.bouncemail ? PS_REFUSED : PS_TRANSIENT);
+       return(PS_REFUSED);
   
     case 553: /* invalid sending domain */
        /*
@@ -415,9 +416,12 @@ static int handle_smtp_report(struct query *ctl, struct msgblk *msg)
         * (b) we wouldn't want spammers to get confirmation that
         * this address is live, anyway.
         */
-       send_bouncemail(ctl, msg, XMIT_ACCEPT,
+#ifdef __DONT_FEED_THE_SPAMMERS__
+       if (run.bouncemail)
+           send_bouncemail(ctl, msg, XMIT_ACCEPT,
                        "Invalid address in MAIL FROM (SMTP error 553).\r\n", 
                        1, responses);
+#endif /* __DONT_FEED_THE_SPAMMERS__ */
        return(PS_REFUSED);
 
     default: