summaryrefslogtreecommitdiffstats
path: root/imap-send.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-04-03 21:28:42 +0200
committerJunio C Hamano <gitster@pobox.com>2010-04-03 21:28:42 +0200
commit9b5a7c447b72d10442858193b5aae03a19fb1720 (patch)
tree356ed048bd294dcdebc8461394bebf2f85f9aba7 /imap-send.c
parentMerge branch 'mg/use-default-abbrev-length-in-rev-list' (diff)
parentimap-send: Remove limitation on message body (diff)
downloadgit-9b5a7c447b72d10442858193b5aae03a19fb1720.tar.xz
git-9b5a7c447b72d10442858193b5aae03a19fb1720.zip
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.c8
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)