projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From: Olivier Fredj <olivier@fredj.org>
[apps/madmutt.git]
/
imap
/
command.c
diff --git
a/imap/command.c
b/imap/command.c
index
ac19298
..
2039e54
100644
(file)
--- a/
imap/command.c
+++ b/
imap/command.c
@@
-139,9
+139,8
@@
int imap_cmd_step (IMAP_DATA * idata)
return IMAP_CMD_BAD;
/* server demands a continuation response from us */
return IMAP_CMD_BAD;
/* server demands a continuation response from us */
- if (
!ascii_strncmp (cmd->buf, "+ ", 2)) {
+ if (
cmd->buf[0] == '+')
return IMAP_CMD_RESPOND;
return IMAP_CMD_RESPOND;
- }
/* tagged completion code */
if (!ascii_strncmp (cmd->buf, cmd->seq, SEQLEN)) {
/* tagged completion code */
if (!ascii_strncmp (cmd->buf, cmd->seq, SEQLEN)) {
@@
-493,6
+492,9
@@
static void cmd_parse_fetch (IMAP_DATA * idata, char *s)
for (cur = 0; cur < idata->ctx->msgcount; cur++) {
h = idata->ctx->hdrs[cur];
for (cur = 0; cur < idata->ctx->msgcount; cur++) {
h = idata->ctx->hdrs[cur];
+ if (!h)
+ break;
+
if (h->active && h->index + 1 == msgno) {
debug_print (2, ("Message UID %d updated\n", HEADER_DATA (h)->uid));
break;
if (h->active && h->index + 1 == msgno) {
debug_print (2, ("Message UID %d updated\n", HEADER_DATA (h)->uid));
break;