mail-autoexpunge.c revision 27129cce9e2205639739e1877af152e7caa1fc82
1N/A/* Copyright (c) 2015-2017 Dovecot authors, see the included COPYING file */ 1N/A /* Try to lock the autoexpunging. If the lock already exists, another 1N/A process is already busy with expunging, so we don't have to do it. 1N/A The easiest place where to store the lock file to is the home 1N/A directory, but allow autoexpunging to work even if we can't get 1N/A it. The lock isn't really required; it 1) improves performance 1N/A so that multiple processes won't do the same work unnecessarily, 1N/A and 2) it helps to avoid duplicates mails being added with 1N/A i_warning(
"autoexpunge: User has no home directory, can't lock");
1N/A /* first try to check quickly from mailbox list index if we should 1N/A bother opening this mailbox. */ 1N/A /* autocreated mailbox doesn't exist yet */ 1N/A /* max_mails is still being reached -> expunge. 1N/A don't even check saved-dates before we're 1N/A /* only max_mails is used. nothing further to do. */ 1N/A /* already expunged */ 1N/A /* autoexpunge is configured by admin, so we can safely ignore 1N/A any ACLs the user might normally have against expunging in 1N/A i_error(
"Failed to iterate autoexpunge mailboxes '%s': %s",