summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17b96be)
raw | patch | inline | side by side (parent: 17b96be)
author | Markus Amsler <markus.amsler@oribi.org> | |
Thu, 12 Oct 2006 22:19:35 +0000 (00:19 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 18 Oct 2006 10:34:46 +0000 (03:34 -0700) |
Cyrus imap refuses messages with a 'From ' Header.
[jc: Mike McCormack says this is fine with Courier as well.]
Signed-off-by: Markus Amsler <markus.amsler@oribi.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
[jc: Mike McCormack says this is fine with Courier as well.]
Signed-off-by: Markus Amsler <markus.amsler@oribi.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
imap-send.c | patch | blob | history |
diff --git a/imap-send.c b/imap-send.c
index 362e4743740435dc0e5b08933c0e05c53b7b62af..16804ab286a42c0dc2733dccf816ab2173e465af 100644 (file)
--- a/imap-send.c
+++ b/imap-send.c
if (msg->len < 5 || strncmp( data, "From ", 5 ))
return 0;
+ p = strchr( data, '\n' );
+ if (p) {
+ p = &p[1];
+ msg->len -= p-data;
+ *ofs += p-data;
+ data = p;
+ }
+
p = strstr( data, "\nFrom " );
if (p)
msg->len = &p[1] - data;