When calling the mx_ops->open_msg() method of the notmuch
implementation, if the message failed to open, it is not reported to the
user interface. This patch returns a non-zero value that will prevent a
crash.
fixes #308
Signed-off-by: Pietro Cerutti <gahr@gahr.ch>
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
msg->fp = maildir_open_find_message(folder, cur->path, NULL);
mutt_debug (1, "%s\n", __func__);
- return 0;
+ return !msg->fp;
}
static int nm_close_message(CONTEXT *ctx, MESSAGE *msg)