- Package:
- courier-imap
- Source:
- courier
- Description:
- Courier mail server - IMAP server
- Submitter:
- Olaf van der Spek
- Date:
- 2025-06-13 18:55:02 UTC
- Severity:
- important
- Tags:
Hi, I think not purging messages from trash after 7 days by default is a lot safer. Users (probably) do not expect this 'feature'.
Olaf van der Spek wrote: On the other hand trash will overflow at some point and system administrators don't expect this :-). What about increasing the number of days ? Regards Racke
Are you sure? Storage capacity is huge and users (AFAIK) always have to clean up folder (not just trash) manually. That'd be a nice start.
Hi, What is the progress on this bug? I'm now running with "IMAP_EMPTYTRASH=" but now all mails from my trash folder are deleted. Could this be another bug? Greetings, Olaf
Hi Stefan, Do you have time to work on this bug? Greetings, Olaf
Any updates? If you don't have enough time, it might be an idea to just say so.
Olaf van der Spek wrote: Are the emails copied to the trash folder? This depends on your mail client, as the standard configuration for expunging emails in /etc/courier/imapd is: ##NAME: IMAP_MOVE_EXPUNGE_TO_TRASH:0 # # Set IMAP_MOVE_EXPUNGE_TO_TRASH to move expunged messages to Trash. This # effectively allows an undo of message deletion by fishing the deleted # mail from trash. Trash can be manually expunged as usually, and mail # will get automatically expunged from Trash according to IMAP_EMPTYTRASH. # # NOTE: shared folders are still expunged as usual. Shared folders are # not affected. # IMAP_MOVE_EXPUNGE_TO_TRASH=0 Regards Racke
I'm using Thunderbird. I'm not sure what you're asking.
The upstream default appears to be to not deleting anything. Could you please change to this default
severity 436266 serious thanks This one leads to data loss...
severity 436266 important
thanks
I don't consider this a serious data loss. Volatile and discarded
data has to be purged at some point.
Of course, the default setting can still be debated.
Regards
Racke
You may not, others may... Not really. Not everyone is space constrained. Can or will? This bug has been open for years. Olaf
Hi, reading through this bug, I can understand the motivation of the OP to to not delete messages from the trash by default. It's a conservative default. However, to me, the main reason speaking against changing the default is that such a change would increase the deviation of the Debian provided package from upstream. And they might have their good reasons to choose such a default. I'm therefore going to discuss this with upstream. Olaf van der Spek <Olaf@XWIS.Net> wrote: That clearly sounds like a bug to me. I'll check this and report back. Kind Regards Markus Wanner
1. when set to "IMAP_EMPTYTRASH=" it default to 0 so all the mail are deleted of course.. is not important but of course an misc on code.. but this are from 2017 so must be recheck with recent versions.. of course i canot test with debian package cos does not build property 2. reported does not know what are doing.. when ask if all mail are moved to trash with some sets of configuration doe snot know what are talking about.. also does not read the hole documentation.. neither set the IMAP_MOVE_EXPUNGE_TO_TRASH var property or IMAP_EMPTYTRASH variable in a high number. the only bug here is when there's no definition for IMAP_EMPTYTRASH= but is a minor bug.. sysadmin or reported does not read property at documentation or standard .. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com
I have recently started maintaining Courier. I am sympathetic to this request as I personally have disabled this setting and it took me a bit of work to figure out why the emails in my trash were disappearing (I assumed it was being done by one of the many clients I have connected to my account). However, I am also resistant to deviating from upstream. I have created a feature request upstream to see if they would be amenable to changing it there. https://github.com/svarshavchik/courier-libs/issues/41 Those interested in this issue should feel free to join that conversation.
I added the following documentation about how to modify the purging of messages from the trash to README.Debian. https://salsa.debian.org/debian/courier/-/blob/master/debian/courier-imap.README.Debian?ref_type=heads#L8-11 I am not closing this bug yet, as I am still determining if I should change the default behavior in Debian (or if there ends up being consensus upstream that it should be changed). But adding documentation about it seemed like an obvious step forward. Personally, before I became the Courier maintainer, I ran into this problem myself. I assumed it was one of the clients I used that was deleting the emails. It took me quite a while before I looked at the Courier IMAP settings, because it didn’t occur to me that the server would be deleting any emails by default.
I added the following documentation about how to modify the purging of messages from the trash to README.Debian. https://salsa.debian.org/debian/courier/-/blob/master/debian/courier-imap.README.Debian?ref_type=heads#L8-11 I am not closing this bug yet, as I am still determining if I should change the default behavior in Debian (or if there ends up being consensus upstream that it should be changed). But adding documentation about it seemed like an obvious step forward. Personally, before I became the Courier maintainer, I ran into this problem myself. I assumed it was one of the clients I used that was deleting the emails. It took me quite a while before I looked at the Courier IMAP settings, because it didn’t occur to me that the server would be deleting any emails by default.