struct ImapMbox mx;
int nentry = menu->current;
- imap_parse_path(state.entry[nentry].name, &mx);
+ if (imap_parse_path(state.entry[nentry].name, &mx) < 0)
+ {
+ mutt_debug(1, "imap_parse_path failed\n");
+ mutt_error(_("Mailbox deletion failed."));
+ break;
+ }
if (!mx.mbox)
{
mutt_error(_("Cannot delete root folder"));
{
char *s = NULL;
char *pn = NULL;
- unsigned int count;
+ unsigned int count = 0;
s = imap_next_word(idata->buf);
pn = imap_next_word(s);
mutt_debug(2, "Handling EXISTS\n");
/* new mail arrived */
- mutt_atoui(pn, &count);
+ if (mutt_atoui(pn, &count) < 0)
+ {
+ mutt_debug(1, "Malformed EXISTS: '%s'\n", pn);
+ }
if (!(idata->reopen & IMAP_EXPUNGE_PENDING) && count < idata->max_msn)
{
{
len = mutt_str_strlen(test_command) + STRING;
mutt_mem_realloc(&test_command, len);
- rfc1524_expand_command(a, a->filename, type, test_command, len);
+ if (rfc1524_expand_command(a, a->filename, type, test_command, len) == 1)
+ {
+ mutt_debug(1, "Command is expecting to be piped\n");
+ }
if (mutt_system(test_command) != 0)
{
/* a non-zero exit code means test failed */