diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-08-25 03:08:30 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-08-25 03:08:30 +0000 |
commit | 0b56ab81af06f7efe35285a70944b724b0981d1c (patch) | |
tree | b9d3f7850f714f30e739b4dc5d5b67b312b11cce | |
parent | 92191aaedaae3e0defcbe2415bdf46a405ad6aa0 (diff) | |
download | fetchmail-0b56ab81af06f7efe35285a70944b724b0981d1c.tar.gz fetchmail-0b56ab81af06f7efe35285a70944b724b0981d1c.tar.bz2 fetchmail-0b56ab81af06f7efe35285a70944b724b0981d1c.zip |
Handle Debian bug.
svn path=/trunk/; revision=2054
-rw-r--r-- | driver.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1350,11 +1350,16 @@ int num; /* index of message */ */ if ((rcv = strstr(headers, "Received:")) == (char *)NULL) rcv = headers; + /* handle ">Received:" lines too */ + while (rcv > headers && rcv[-1] != '\n') + rcv--; if (rcv > headers) { + char c = *rcv; + *rcv = '\0'; n = stuffline(ctl, headers); - *rcv = 'R'; + *rcv = c; } if (!run.invisible && n != -1) { |