]> granicus.if.org Git - neomutt/commit
Improve imap_append_message() error message handling
authorKevin McCarthy <kevin@8t8.us>
Fri, 7 Jun 2019 20:43:36 +0000 (13:43 -0700)
committerRichard Russon <rich@flatcap.org>
Sun, 16 Jun 2019 00:20:16 +0000 (01:20 +0100)
commit95f0d4002c620178b5631656aa6f65ffe8f55e18
tree6897f2507b782fdc428bc028b6ad29503cde5102
parentd973635ccc6b8959e22e58050db749179dcd3360
Improve imap_append_message() error message handling

If the rc is IMAP_CMD_BAD, then either idata->buf is stale or an error
message has already been printed (in cmd_handle_untagged()).

Use imap_next_word() to skip over the next two words instead of
directly skipping over SEQLEN, in case the buffer is in a different
format.  We don't want to jump over the end of string.

Skip the mutt_error() if there is nothing to print.

Co-authored-by: Richard Russon <rich@flatcap.org>
imap/message.c