The value for expunge_mode has been "delayed" since Cyrus 2.5.0 .
expunge_mode: delayed
The mode in which messages (and their corresponding cache
entries) are expunged. “default” mode is the old behavior in which the
message files are purged at the time of the EXPUNGE, but index and cache
records are retained to facilitate QRESYNC. (Note that this behaviour is
no longer the default, but is so named for historical reasons.) In
“delayed” mode, which is the default since Cyrus 2.5.0, the message
files are also retained, allowing unexpunge to rescue them. In
“immediate” mode, both the message files and the index records are
removed as soon as possible. In all cases, nothing will be finally
purged until all other processes have closed the mailbox to ensure they
never see data disappear under them. In “default” or “delayed” mode, a
later run of “cyr_expire” will clean out the retained records (and
possibly message files). This reduces the amount of I/O that takes place
at the time of EXPUNGE and should result in greater responsiveness for
the client, especially when expunging a large number of messages.
Allowed values: default, immediate, delayed
On 2022-10-31 12:31, Paul van der Vlis wrote:
Hello Simon and others,
Op 31-10-2022 om 15:46 schreef Simon Matter:
Hi,
Hello,
A customer had space-problems on her phone, and did remove all e-mail.
Now it is gone in Thunderbird and in the webmail too...
But it is still there if I look in /var/spool/cyrus/mail/ .
I still have a backup, not sure what's the best to do.
With regards,
Paul van der Vlis
I expect this is because you have "delete_mode: delayed" and/or
"expunge_mode: delayed" in your config.
Hmm, no I have not.
I've grepped for delayed and expunge in imapd.conf, but no...
You should be able to recover the mails by either renaming them from the
$deletedprefix or by running "unexpunge".
I don't know what $deletedprefix is. But.. I could get all mail back
with running:
/usr/lib/cyrus/bin/unexpunge -a -d user.username
;-)
Sorry, I don't really remember all the details...
Very much thank for your help!
But I must say that I don't understand this behaviour. So far I know an
e-mail is gone on the server when I delete it...
I don't know which e-mail program was used on the phone.
With regards,
Paul van der Vlis
Regards,
Simon
------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/Tf8aea7f3a5ced066-M5ab7c409e285bc7090f0cfa7
Delivery options: https://cyrus.topicbox.com/groups/info/subscription
begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:boutilpj@xxxxxxxxxxx
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard