aboutsummaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-05-06 07:18:59 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-05-06 07:18:59 +0000
commite652084c7e5eb0281ade3f988605ede00263f964 (patch)
treeffe49dfb2dccfdfc09d94cb385a6179e077fc475 /rfc822.c
parent8f46eccd144567b9450c2dbe7586fb70b2d05154 (diff)
downloadfetchmail-e652084c7e5eb0281ade3f988605ede00263f964.tar.gz
fetchmail-e652084c7e5eb0281ade3f988605ede00263f964.tar.bz2
fetchmail-e652084c7e5eb0281ade3f988605ede00263f964.zip
Make header rewrite play better with exim.
svn path=/trunk/; revision=982
Diffstat (limited to 'rfc822.c')
-rw-r--r--rfc822.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/rfc822.c b/rfc822.c
index 1b83bee5..267c06e5 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -29,11 +29,12 @@ const char *host; /* server hostname */
char *from, *cp;
int parendepth, state, has_bare_name_part, has_host_part;
- if (strncmp("From: ", buf, 6)
- && strncmp("To: ", buf, 4)
- && strncmp("Reply-", buf, 6)
- && strncmp("Cc: ", buf, 4)
- && strncmp("Bcc: ", buf, 5)) {
+ if (strncasecmp("From: ", buf, 6)
+ && strncasecmp("To: ", buf, 4)
+ && strncasecmp("Reply-To: ", buf, 10)
+ && strncasecmp("Return-Path: ", buf, 13)
+ && strncasecmp("Cc: ", buf, 4)
+ && strncasecmp("Bcc: ", buf, 5)) {
return;
}
@@ -312,11 +313,11 @@ main(int argc, char *argv[])
{
if (buf[0] == ' ' || buf[0] == '\t')
strcat(longbuf, buf);
- else if (!strncmp("From: ", buf, 6)
- || !strncmp("To: ", buf, 4)
- || !strncmp("Reply-", buf, 6)
- || !strncmp("Cc: ", buf, 4)
- || !strncmp("Bcc: ", buf, 5))
+ else if (!strncasecmp("From: ", buf, 6)
+ || !strncasecmp("To: ", buf, 4)
+ || !strncasecmp("Reply-", buf, 6)
+ || !strncasecmp("Cc: ", buf, 4)
+ || !strncasecmp("Bcc: ", buf, 5))
strcpy(longbuf, buf);
else if (longbuf[0])
{