aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-10-16 00:44:30 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-10-16 00:46:30 +0200
commitca8074e71371266c614fc20907419ec178015421 (patch)
tree4b72222a1de811fac6b71ca35e8114207ac4f4cb /transact.c
parent69fb61762feb71279baad2ec7d744863853849cf (diff)
downloadfetchmail-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.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/transact.c b/transact.c
index d29f2c12..1b4e3755 100644
--- a/transact.c
+++ b/transact.c
@@ -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