diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-10-16 00:44:30 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-10-16 00:46:30 +0200 |
commit | ca8074e71371266c614fc20907419ec178015421 (patch) | |
tree | 4b72222a1de811fac6b71ca35e8114207ac4f4cb /transact.c | |
parent | 69fb61762feb71279baad2ec7d744863853849cf (diff) | |
download | fetchmail-ca8074e71371266c614fc20907419ec178015421.tar.gz fetchmail-ca8074e71371266c614fc20907419ec178015421.tar.bz2 fetchmail-ca8074e71371266c614fc20907419ec178015421.zip |
-vv multidrop: Also report non-Delivered-To: envelope parsing.
Diffstat (limited to 'transact.c')
-rw-r--r-- | transact.c | 27 |
1 files changed, 16 insertions, 11 deletions
@@ -1088,20 +1088,25 @@ process_headers: free(sdps_envto); } else #endif /* SDPS_ENABLE */ - if (env_offs > -1) /* We have the actual envelope addressee */ - find_server_names(msgblk.headers + env_offs, ctl, &msgblk.recipients); + if (env_offs > -1) { /* We have the actual envelope addressee */ + if (outlevel >= O_DEBUG) { + const char *tmps = msgblk.headers + env_offs; + size_t l = strcspn(tmps, "\r\n"); + report(stdout, GT_("Parsing envelope \"%s\" names \"%-.*s\"\n"), ctl->server.envelope, UCAST_TO_INT(l), tmps); + } + find_server_names(msgblk.headers + env_offs, ctl, &msgblk.recipients); + } else if (delivered_to && ctl->server.envelope != STRING_DISABLED && - ctl->server.envelope && !strcasecmp(ctl->server.envelope, "Delivered-To")) - { - if (outlevel >= O_DEBUG) { - const char *tmps = delivered_to + 2 + strlen(ctl->server.envelope); - size_t l = strcspn(tmps, "\r\n"); - report(stdout, GT_("Parsing envelope \"%s\" names \"%-.*s\"\n"), ctl->server.envelope, UCAST_TO_INT(l), tmps); - } + ctl->server.envelope && !strcasecmp(ctl->server.envelope, "Delivered-To")) + { + if (outlevel >= O_DEBUG) { + const char *tmps = delivered_to + 2 + strlen(ctl->server.envelope); + size_t l = strcspn(tmps, "\r\n"); + report(stdout, GT_("Parsing envelope \"%s\" names \"%-.*s\"\n"), ctl->server.envelope, UCAST_TO_INT(l), tmps); + } find_server_names(delivered_to, ctl, &msgblk.recipients); xfree(delivered_to); - } - else if (received_for) { + } else if (received_for) { /* * We have the Received for addressee. * It has to be a mailserver address, or we |