summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2013-02-05 18:48:43 +0100
committermanuel <manuel@mausz.at>2013-02-05 18:48:43 +0100
commit12d58429622d8afad8e96df57b0a3dd4bd2f8959 (patch)
tree3713e4a6d8b88aebf594b73c8d02382db127d7fa
parentc732bf60deb004fcb4872a639d09a7c6c9c33b73 (diff)
downloadqmail-12d58429622d8afad8e96df57b0a3dd4bd2f8959.tar.gz
qmail-12d58429622d8afad8e96df57b0a3dd4bd2f8959.tar.bz2
qmail-12d58429622d8afad8e96df57b0a3dd4bd2f8959.zip
[PATCH] Adding double-bounce-trim-patch
double-bounce-trim
-rw-r--r--qmail-send.94
-rw-r--r--qmail-send.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/qmail-send.9 b/qmail-send.9
index e5be479..3f01376 100644
--- a/qmail-send.9
+++ b/qmail-send.9
@@ -117,6 +117,10 @@ notice to
117(If that bounces, 117(If that bounces,
118.B qmail-send 118.B qmail-send
119gives up.) 119gives up.)
120As a special case, if the first line of
121.IR doublebounceto
122is blank (contains a single linefeed), qmail-send will not queue
123the double-bounce at all.
120.TP 5 124.TP 5
121.I envnoathost 125.I envnoathost
122Presumed domain name for addresses without @ signs. 126Presumed domain name for addresses without @ signs.
diff --git a/qmail-send.c b/qmail-send.c
index 685b08c..0baed66 100644
--- a/qmail-send.c
+++ b/qmail-send.c
@@ -690,6 +690,8 @@ unsigned long id;
690 } 690 }
691 if (str_equal(sender.s,"#@[]")) 691 if (str_equal(sender.s,"#@[]"))
692 log3("triple bounce: discarding ",fn2.s,"\n"); 692 log3("triple bounce: discarding ",fn2.s,"\n");
693 else if (!*sender.s && *doublebounceto.s == '@')
694 log3("double bounce: discarding ",fn2.s,"\n");
693 else 695 else
694 { 696 {
695 if (qmail_open(&qqt) == -1) 697 if (qmail_open(&qqt) == -1)