diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2018-11-25 12:26:20 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2018-11-25 12:26:20 +0100 |
commit | 8233152bd0d72881381a96f526fa6c92f33633f2 (patch) | |
tree | 788a5dce29c3aef76144b1f9d3ef768b1385b253 /sink.c | |
parent | 8c57ec38ae327fcd648569acc915f47f0eb2547d (diff) | |
parent | c0a2ad5168d0e3b08082f14283d718acad869da6 (diff) | |
download | fetchmail-8233152bd0d72881381a96f526fa6c92f33633f2.tar.gz fetchmail-8233152bd0d72881381a96f526fa6c92f33633f2.tar.bz2 fetchmail-8233152bd0d72881381a96f526fa6c92f33633f2.zip |
Merge branch 'Evil2000/fetchmail-legacy_64' into legacy_64
Diffstat (limited to 'sink.c')
-rw-r--r-- | sink.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1491,8 +1491,16 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward) } if (smtp_err != SM_OK) { - responses[errors] = xstrdup(smtp_response); - errors++; + /* + * amavis returns the SMTP code from the recieving + * host after the DATA-DOT. So we need to compare the + * response to the antispam option here instead. + */ + if (handle_smtp_report(ctl, msg) != PS_REFUSED) { + /* Only count an error if the message was not refused */ + responses[errors] = xstrdup(smtp_response); + errors++; + } } } |