aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-04-14 22:11:42 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-04-14 22:11:42 +0000
commit238be5fcbe69551a287af757522595a3f9642317 (patch)
tree4063b77f22bf3fc490aee3d11fb56937a0e62e90 /driver.c
parente28b5c24dd820c6b31878e3aa88f3cc433bc443a (diff)
downloadfetchmail-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.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/driver.c b/driver.c
index 5257819a..d3f191ab 100644
--- a/driver.c
+++ b/driver.c
@@ -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;