diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-03-16 19:54:13 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-03-16 19:54:13 +0000 |
commit | a09d628f66a29063ef3060c1f25b1b23051a7e89 (patch) | |
tree | 8569d56c29aca0c83504a95e2ee03ab2987f758f /driver.c | |
parent | 1b15b5049c4ada283e9d53d5a94458d13311384c (diff) | |
download | fetchmail-a09d628f66a29063ef3060c1f25b1b23051a7e89.tar.gz fetchmail-a09d628f66a29063ef3060c1f25b1b23051a7e89.tar.bz2 fetchmail-a09d628f66a29063ef3060c1f25b1b23051a7e89.zip |
Cope with empty return-path header.
svn path=/trunk/; revision=1704
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -830,10 +830,13 @@ int num; /* index of message */ * If the SMTP server conforms to the standards, and fetchmail gets the * envelope sender from the Return-Path, the new Return-Path should be * exactly the same as the original one. + * + * Empty Return-Path headers will be ignored. + * */ - if (!strncasecmp("Return-Path:", line, 12)) + if (!strncasecmp("Return-Path:", line, 12) && (cp = nxtaddr(line))) { - strcpy(return_path, nxtaddr(line)); + strcpy(return_path, cp); if (!ctl->mda) { free(line); continue; |