RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.1k stars 883 forks source link

Autodelete of mails in trash bin after x days #1860

Open prsnbrg opened 5 years ago

prsnbrg commented 5 years ago

RainLoop version, browser, OS: 1.12.1

Is it possible that the mails in the trash can be deleted automatically after x days?

The best way is to create a cronjob that calls a certain URL and then looks if the folder contains mails that contain longer than x (e.g. 30) days.

Philippe34 commented 5 years ago

Hi, I do not know if rainloop can do that easily. If you manage the mailboxes, you can try to add the "expire" flag in the mailbox. For instance, as I use cyrus-imapd, I use his mboxcfg command to the Spam mailbox of the user1 account localhost> mboxcfg user/user1/Spam expire 30 localhost> info user/user1/Spam ... expire: 30 ...

prsnbrg commented 5 years ago

The problem is that my mail host doesn't support this feature by default, so my question is if Rainloop can do it.

Also I don't know any Linux console client with this functionality at the moment.