diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-05-06 07:18:59 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-05-06 07:18:59 +0000 |
commit | e652084c7e5eb0281ade3f988605ede00263f964 (patch) | |
tree | ffe49dfb2dccfdfc09d94cb385a6179e077fc475 /rfc822.c | |
parent | 8f46eccd144567b9450c2dbe7586fb70b2d05154 (diff) | |
download | fetchmail-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.c | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -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]) { |