Commit 7227fdff 7227fdff1b9f1337c3865d3bbb4d9e9069a667fd by Sergey Poznyakoff

Bugfix

* libproto/maildir/mbox.c (maildir_msg_finish_delivery):
Don't complain if trying to unlink a nonexistent file.
1 parent 4c698e8d
...@@ -540,7 +540,7 @@ maildir_msg_finish_delivery (struct _amd_data *amd, struct _amd_message *amm, ...@@ -540,7 +540,7 @@ maildir_msg_finish_delivery (struct _amd_data *amd, struct _amd_message *amm,
540 540
541 if (rc == 0) 541 if (rc == 0)
542 { 542 {
543 if (unlink (newname)) 543 if (unlink (newname) && errno != ENOENT)
544 { 544 {
545 rc = errno; 545 rc = errno;
546 mu_debug (MU_DEBCAT_MAILBOX, MU_DEBUG_ERROR, 546 mu_debug (MU_DEBCAT_MAILBOX, MU_DEBUG_ERROR,
......