Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4199:fa135b615b01 HEAD
If maildir is readonly, don't complain about rename() failing to move mails
from new/ to cur/.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 17 Apr 2006 20:31:54 +0300 |
parents | def18c75ced2 |
children | 38a5e4396091 |
files | src/lib-storage/index/maildir/maildir-sync.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync.c Mon Apr 17 19:23:27 2006 +0300 +++ b/src/lib-storage/index/maildir/maildir-sync.c Mon Apr 17 20:31:54 2006 +0300 @@ -699,8 +699,9 @@ /* someone else moved it already */ moves++; flags |= MAILDIR_UIDLIST_REC_FLAG_MOVED; - } else if (ENOSPACE(errno)) { - /* not enough disk space, leave here */ + } else if (ENOSPACE(errno) || errno == EACCES) { + /* not enough disk space / read-only maildir, + leave here */ flags |= MAILDIR_UIDLIST_REC_FLAG_NEW_DIR | MAILDIR_UIDLIST_REC_FLAG_RECENT; move_new = FALSE;