diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-04-03 12:28:42 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-04-03 12:28:42 -0700 |
commit | 9b5a7c447b72d10442858193b5aae03a19fb1720 (patch) | |
tree | 356ed048bd294dcdebc8461394bebf2f85f9aba7 /imap-send.c | |
parent | aa4beff4b5403a6d031d6be3d86f9ba27534dd53 (diff) | |
parent | 4916c8f9535866210df6ec837ab910f3b8348784 (diff) | |
download | git-9b5a7c447b72d10442858193b5aae03a19fb1720.tar.gz |
Merge branch 'rr/imap-send-unconfuse-from-line'
* rr/imap-send-unconfuse-from-line:
imap-send: Remove limitation on message body
Diffstat (limited to 'imap-send.c')
-rw-r--r-- | imap-send.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/imap-send.c b/imap-send.c index 7107923a39..9d0097ca02 100644 --- a/imap-send.c +++ b/imap-send.c @@ -1431,8 +1431,14 @@ static int count_messages(struct msg_data *msg) while (1) { if (!prefixcmp(p, "From ")) { + p = strstr(p+5, "\nFrom: "); + if (!p) break; + p = strstr(p+7, "\nDate: "); + if (!p) break; + p = strstr(p+7, "\nSubject: "); + if (!p) break; + p += 10; count++; - p += 5; } p = strstr(p+5, "\nFrom "); if (!p) |