Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/index/maildir/maildir-sync.c @ 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 | e2edd333c473 |
children | 3c8b191b0019 |
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;