diff --git a/imap-send.c b/imap-send.c
index 7107923a39247b5c18ad443dc2309971e44abdb4..1a577a0a094342315bd3f68e8d13ef7f57a22f50 100644 (file)
--- a/imap-send.c
+++ b/imap-send.c
LITERALPLUS,
NAMESPACE,
STARTTLS,
LITERALPLUS,
NAMESPACE,
STARTTLS,
- AUTH_CRAM_MD5,
+ AUTH_CRAM_MD5
};
static const char *cap_list[] = {
};
static const char *cap_list[] = {
while (1) {
if (!prefixcmp(p, "From ")) {
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++;
count++;
- p += 5;
}
p = strstr(p+5, "\nFrom ");
if (!p)
}
p = strstr(p+5, "\nFrom ");
if (!p)