diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-04-14 22:11:42 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-04-14 22:11:42 +0000 |
commit | 238be5fcbe69551a287af757522595a3f9642317 (patch) | |
tree | 4063b77f22bf3fc490aee3d11fb56937a0e62e90 /driver.c | |
parent | e28b5c24dd820c6b31878e3aa88f3cc433bc443a (diff) | |
download | fetchmail-238be5fcbe69551a287af757522595a3f9642317.tar.gz fetchmail-238be5fcbe69551a287af757522595a3f9642317.tar.bz2 fetchmail-238be5fcbe69551a287af757522595a3f9642317.zip |
Eliminate caseblinding of UID comparisons.
svn path=/trunk/; revision=1736
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -168,7 +168,7 @@ static int is_host_alias(const char *name, struct query *ctl) */ if (strcasecmp(lead_server->truename, name) == 0) return(TRUE); - else if (str_in_list(&lead_server->akalist, name)) + else if (str_in_list(&lead_server->akalist, name, TRUE)) return(TRUE); else if (!ctl->server.dns) return(FALSE); @@ -830,12 +830,15 @@ int num; /* index of message */ * 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. + * We do *not* want to ignore empty Return-Path headers. These should + * be passed through as a way of indicating that a message should + * not trigger bounces if delivery fails. What we *do* need to do is + * make sure we never try to rewrite such a blank Return-Path. * */ - if (!strncasecmp("Return-Path:", line, 12) && (cp = nxtaddr(line))) + if (!strncasecmp("Return-Path:", line, 12)) { - strcpy(return_path, cp); + strcpy(return_path, line); if (!ctl->mda) { free(line); continue; |