Commit b1232b2f b1232b2f33c6942e63f601620852b5a7ded29b5c by Sergey Poznyakoff

(mail_mbox_close): mbox can be NULL (e.g. --exec=quit was given)

1 parent cd424fdc
......@@ -37,6 +37,9 @@ mail_mbox_close ()
mu_url_t url = NULL;
size_t held_count;
if (!mbox)
return 0;
if (util_getenv (NULL, "readonly", Mail_env_boolean, 0))
{
if (mail_mbox_commit ())
......