diff options
| author | manuel <manuel@mausz.at> | 2013-02-05 18:48:43 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2013-02-05 18:48:43 +0100 |
| commit | 12d58429622d8afad8e96df57b0a3dd4bd2f8959 (patch) | |
| tree | 3713e4a6d8b88aebf594b73c8d02382db127d7fa | |
| parent | c732bf60deb004fcb4872a639d09a7c6c9c33b73 (diff) | |
| download | qmail-12d58429622d8afad8e96df57b0a3dd4bd2f8959.tar.gz qmail-12d58429622d8afad8e96df57b0a3dd4bd2f8959.tar.bz2 qmail-12d58429622d8afad8e96df57b0a3dd4bd2f8959.zip | |
[PATCH] Adding double-bounce-trim-patch
double-bounce-trim
| -rw-r--r-- | qmail-send.9 | 4 | ||||
| -rw-r--r-- | qmail-send.c | 2 |
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 |
| 119 | gives up.) | 119 | gives up.) |
| 120 | As a special case, if the first line of | ||
| 121 | .IR doublebounceto | ||
| 122 | is blank (contains a single linefeed), qmail-send will not queue | ||
| 123 | the double-bounce at all. | ||
| 120 | .TP 5 | 124 | .TP 5 |
| 121 | .I envnoathost | 125 | .I envnoathost |
| 122 | Presumed domain name for addresses without @ signs. | 126 | Presumed 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) |
