summaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-04-03 19:28:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-04-03 19:28:42 (GMT)
commit9b5a7c447b72d10442858193b5aae03a19fb1720 (patch)
tree356ed048bd294dcdebc8461394bebf2f85f9aba7 /imap-send.c
parentaa4beff4b5403a6d031d6be3d86f9ba27534dd53 (diff)
parent4916c8f9535866210df6ec837ab910f3b8348784 (diff)
downloadgit-9b5a7c447b72d10442858193b5aae03a19fb1720.zip
git-9b5a7c447b72d10442858193b5aae03a19fb1720.tar.gz
git-9b5a7c447b72d10442858193b5aae03a19fb1720.tar.bz2
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 7107923..9d0097c 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)