comparison 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
comparison
equal deleted inserted replaced
4198:def18c75ced2 4199:fa135b615b01
697 MAILDIR_UIDLIST_REC_FLAG_RECENT; 697 MAILDIR_UIDLIST_REC_FLAG_RECENT;
698 } else if (ENOTFOUND(errno)) { 698 } else if (ENOTFOUND(errno)) {
699 /* someone else moved it already */ 699 /* someone else moved it already */
700 moves++; 700 moves++;
701 flags |= MAILDIR_UIDLIST_REC_FLAG_MOVED; 701 flags |= MAILDIR_UIDLIST_REC_FLAG_MOVED;
702 } else if (ENOSPACE(errno)) { 702 } else if (ENOSPACE(errno) || errno == EACCES) {
703 /* not enough disk space, leave here */ 703 /* not enough disk space / read-only maildir,
704 leave here */
704 flags |= MAILDIR_UIDLIST_REC_FLAG_NEW_DIR | 705 flags |= MAILDIR_UIDLIST_REC_FLAG_NEW_DIR |
705 MAILDIR_UIDLIST_REC_FLAG_RECENT; 706 MAILDIR_UIDLIST_REC_FLAG_RECENT;
706 move_new = FALSE; 707 move_new = FALSE;
707 } else { 708 } else {
708 flags |= MAILDIR_UIDLIST_REC_FLAG_NEW_DIR | 709 flags |= MAILDIR_UIDLIST_REC_FLAG_NEW_DIR |