Per-folder (per-mailbox) message expiration with control from client side — is it possible?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
I'm migrating from «old skool» solution with one mail client (MUA) on one computer, which retrieves mail via POP3, sorts it and manages it locally to installation when there are several MUAs on different devices, accessing mail via IMAP4, and all sorting and management should be server-side.
Sorting is “easy”: sieve. Here are some nuisance (like, if I want to rename folder/mailbox I need to edit script manually. BTW, it looks like that such thing could be done automagically, as language is very simple and find all references to mailboxes is not too hard task), but it works.
But is here good solution for expiration? I have abut 50 folders (mailboxes) and rules are very different for them. They are mostly time-based (like "last 30 days"), but some folders are count-limited ("last 2000 messages") and some folders should have time limit but non-read messages could not be deleted at all.
Ok, Thunderbird almost could do it (it doesn't have “don't remove unread messages” option), but I don't want to have any meaningful configuration in MUAs, as each of it could be non-active for long time.
Only thing I could find about expiration in dovecot documentation is "doveadm expunge" and helper "Expire" plugin, but it looks like very low-level solution for admins, it could not be managed from client side without direct ssh access to server and it is, in general, very inconvenient.
Is here any better solution, maybe, 3rd party one?
// Black Lion AKA Lev Serebryakov -----BEGIN PGP SIGNATURE----- Version: GnuPG v2
iQJ8BAEBCgBmBQJUFf2BXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePphIQAJUlYIFgXWBcWcrejcbOFgYf op+g35YF4wfwboPkgb/mKk46V3lcjmQImcHir2fci0SCsSSfARcU1a8y4iaeSkPU l949PaMYD8stfukfCbXjoY5pD5FIpj1Os7dDtgdoygp0tfsA4mDg1O0exZoduR9s q4NNPlsnlKOjX2KMOdcWI2AR8/xiFi4zvDTB/vibQPMy8kXVB8ld4Mk0BF1TUyOv 80KKOKzFDxQeLzvoEiNm6FDAqYGEYmpECUaFGXyKG1a7wslhEmEeShJUH5lsj3Oz niMxoO/KTEW0U9QucHQogFJzrcsKkJiOByjqQovWKgZziJll38lCN0O1murMmRBC bDLmN9t53JC7Ef88AbKsaFeULy/AxriohdGU6ePb8j/4W9KlERSJyvgxFkcMxHTg 9mSPiYAHaPr+Ycrzs9SOqhki5b6tI8Q39W/etRorb2us9FS1JE7ib4XLk5ufiUje XOLc4TACUh1qnd/5UUgcIuUrg/akSJgJLZoXg36LqUF/1OeMJHec4RMJresvewAZ RwseWHH/KpD7KxOWlO2Zw1ceHlVFDLWOO/4KWoy/XwZ66fQxEAkLO8ZVyeKMh5Nh dYL+yLQKZdgNWAjalK4lFmwz3u/9jNITwtP5GYLbYnP28EcbDfiN/w9oKGOI8fsD ulD+ca3vx29qdmGGYcKt =9+bG -----END PGP SIGNATURE-----
Am 14.09.2014 um 22:41 schrieb Lev Serebryakov:
I'm migrating from «old skool» solution with one mail client (MUA) on one computer, which retrieves mail via POP3, sorts it and manages it locally to installation when there are several MUAs on different devices, accessing mail via IMAP4, and all sorting and management should be server-side.
Sorting is “easy”: sieve. Here are some nuisance (like, if I want to rename folder/mailbox I need to edit script manually. BTW, it looks like that such thing could be done automagically, as language is very simple and find all references to mailboxes is not too hard task), but it works.
But is here good solution for expiration? I have abut 50 folders (mailboxes) and rules are very different for them. They are mostly time-based (like "last 30 days"), but some folders are count-limited ("last 2000 messages") and some folders should have time limit but non-read messages could not be deleted at all.
Ok, Thunderbird almost could do it (it doesn't have “don't remove unread messages” option), but I don't want to have any meaningful configuration in MUAs, as each of it could be non-active for long time.
Only thing I could find about expiration in dovecot documentation is "doveadm expunge" and helper "Expire" plugin, but it looks like very low-level solution for admins, it could not be managed from client side without direct ssh access to server and it is, in general, very inconvenient.
Is here any better solution, maybe, 3rd party one?
i am not sure what exact you searching for if youre on linux try look here
http://www.athensfbc.com/imap_tools/details.html http://imapsync.lamiral.info/
thunderbird also has plugins like
https://addons.mozilla.org/de/thunderbird/addon/awesome-auto-archive/
however i would prefer doveadm expunge via ssh or cron etc
you might also try external sieve plugin to execute doveadm expunge etc via some parameter perhaps as global rule
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On 15/09/2014 11:26, Robert Schetterer wrote:
i am not sure what exact you searching for if youre on linux try look here
http://www.athensfbc.com/imap_tools/details.html It looks like good toolset, but not solution,
thunderbird also has plugins like
https://addons.mozilla.org/de/thunderbird/addon/awesome-auto-archive/
I'm searching for solution like this, but running on server (from cron, by example) but I want configure it from client, like I configure sieve from Thunderbird. Best solution will be to translate Thunderbird native settings to some server solution, as typing long folder (mailbox) names by hands (and I have hierarchy with depth of 5!) is error-prone, so it is better to have GUI for configuration which shows real folders (mailboxes). It is place where I prefer clicking to typing.
however i would prefer doveadm expunge via ssh or cron etc It is solution too, but see part about configuration.
Black Lion AKA Lev Serebryakov -----BEGIN PGP SIGNATURE----- Version: GnuPG v2
iQJ8BAEBCgBmBQJUFrZhXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePIPcQANySDvl2Z/lEr0wnqllSyR22 BbLly7G3fs6anT9eNxsJ9UJokYu+yD2sEOVekX24/AnM5wfpSH5VqB6AJbFOBmgr ZUVhIL7Z2txGJ/0jfuGm97nkMl3O6yYGYuJyET+ZtPk1jEh70Idv1XPpPvG+h4r+ Bex0WLMRhE89PuCIAalRzfvOhTsEQ+TKu2Z0VhEccT56FQcPnIeaWo/Gg9eozOwq SrVSd/NJp5npKJYcL19BxQ4XGPQiJdUBIU9+2N20FWKlHS+p3GGGhILxlWasSu4k dJLR5UZXhD7tMYTIwY36batcow/Iv+/NLbSIusnsC98LuYrPBXQys5/9OeiVcYCs N4iCxWsGBQz7vtMlgVQ0+pBpXeLv/ox3vqtR86cXRqXzmRISIuGuMJvlQD1oIK33 gOL9R7+3PyqHa0khv0BiYuxdtkdGvcPQMOvtfWK21hULRspmk0faIFj/oVigzuif k7l8gMYi9GUhnNnn7ikZMEifiY4V9FW2RnWTjJ4x1YuWJ4Caa0METJfUqkUJwlR1 XIv0ni3kr7GJyWwsJ+0NzGhVuapf6iyGAzsdvukVVwW3ExWz0IFn3kd6l4DVkhIh IU9z/FyZ/ec9NzCAZaLpmErIWKgU6JxpC/vuAeDxSqNnkRB2rX5sURA5OKsa8aRH QVPpHiX5QR+vCBkhzOhA =9/4X -----END PGP SIGNATURE-----
Am 15.09.2014 um 11:50 schrieb Lev Serebryakov:
On 15/09/2014 11:26, Robert Schetterer wrote:
i am not sure what exact you searching for if youre on linux try look here
http://www.athensfbc.com/imap_tools/details.html It looks like good toolset, but not solution,
thunderbird also has plugins like
https://addons.mozilla.org/de/thunderbird/addon/awesome-auto-archive/
I'm searching for solution like this, but running on server (from cron, by example) but I want configure it from client, like I configure sieve from Thunderbird.
like this
https://github.com/thsmi/sieve/blob/master/nightly/README.md https://addons.mozilla.org/de/thunderbird/addon/sieve ?
Best solution will be to translate
Thunderbird native settings to some server solution,
you mean some auto translation from thunderbird "local" filter rules to server sieve rules ?
some other TB filter stuff is here
https://addons.mozilla.org/de/thunderbird/search/?q=filter&appver=&platform=
as typing long
folder (mailbox) names by hands (and I have hierarchy with depth of 5!) is error-prone, so it is better to have GUI for configuration which shows real folders (mailboxes). It is place where I prefer clicking to typing.
roundcube , horde-ingo has online gui sieve editors
however i would prefer doveadm expunge via ssh or cron etc It is solution too, but see part about configuration.
you may look too at
http://linux.die.net/man/5/imapfilter_config
i am not sure that an "exact" solution exists to what you ask for, guess you have to to find a workaround practice or code something by your own
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
participants (2)
-
Lev Serebryakov
-
Robert Schetterer