Bruno Galindro da Costa
2014-Nov-21 13:00 UTC
Prevent a message from be deleted but not from be moved
Is it possible to prevent a message from be deleted but not from be moved to another mailbox via ACL? I need this because I'm using antispam plugin with the mailtrain backend. It calls a script every time a message is moved to/from a monitored spam mailbox. But, if the user deletes a message from the spam folder, the script is executed with the option to train the antispam to consider that excluded message as a non spam. So, what I need is to prevent the user from delete a message from the spam mailbox, but I want to permit the user to move a menssage from the spam mailbox to another mailbox. -- Att. Bruno Galindro da Costa
Reindl Harald
2014-Nov-21 13:14 UTC
Prevent a message from be deleted but not from be moved
Am 21.11.2014 um 14:00 schrieb Bruno Galindro da Costa:> Is it possible to prevent a message from be deleted but not from be moved > to another mailbox via ACL? > > I need this because I'm using antispam plugin with the mailtrain backend. > It calls a script every time a message is moved to/from a monitored spam > mailbox. But, if the user deletes a message from the spam folder, the > script is executed with the option to train the antispam to consider that > excluded message as a non spam. > > So, what I need is to prevent the user from delete a message from the spam > mailbox, but I want to permit the user to move a menssage from the spam > mailbox to another mailboxsimply: no many if not most mail-clients in case of move issue two commands: * copy to new folder * delete from old folder -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20141121/6579db9a/attachment.sig>
Tom Hendrikx
2014-Nov-21 15:24 UTC
Prevent a message from be deleted but not from be moved
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 21-11-14 14:00, Bruno Galindro da Costa wrote:> Is it possible to prevent a message from be deleted but not from be > moved to another mailbox via ACL? > > I need this because I'm using antispam plugin with the mailtrain > backend. It calls a script every time a message is moved to/from a > monitored spam mailbox. But, if the user deletes a message from the > spam folder, the script is executed with the option to train the > antispam to consider that excluded message as a non spam. >Isn't the antispam plugin setting that defines the Trash folder exactly there to mitigate this behaviour? I.e.: - - move from anywhere to spam folder => train as spam - - move from spam to trash => don't train - - move from spam to anywhere else => train as ham Regards, Tom -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJUb1lHAAoJEJPfMZ19VO/1FaQQAJqD7rFVVPjtlVQ0OQ5mG+lQ HpE1z3JAq+h7rkcFSSlMemRDGmy3GWZy98dYDn6swvQFGkdZs4BHHylgpWKBw92N ACX0HTxUA8dHmz6gEBr7enA0SRlpFa6ulW+eaLzDU5CPZzIhFM9g4BbC/XPQPtea P0c4Hxw2sj8eOFohDO9HaKmdXTVMNJjNEAm7CiYuMTVGSvbmu6c0Dz2E3Qe97e93 jY6lqsNfXpcRzHA6l1d9rVVOFHYUZsnE6o+NkkjcR1gGJ56bDy4cS+7Bm1yM12j+ xzDbLXyMvNceWIVFq6w4ZZd3RjVh17d6aUh2lyzA5oghL3crm4V8sl1KgJqk8EPy QN+zyFwd4Wn3Sr3Ysw9TVavrOJA9FcQII7sv7Er144YS8oSQ9pV6z8tjpfNfjoBJ uAe8QHx/xkQ5+n49Lyq4BKlCx8in9aMyKyE5mOuq+U+4vUwNUHnh0jDPKGbMliI2 VT3dspM0F4miQOwdywPppwX6moJqq2+c9Xob5m/aOSF6iCyACTukvPvnDsgMOZpQ q5BwGOyhww7e4wQdMl7KnMrMAwP41zrHxRAdZ5REsXlswQyuijMyuFAHWU2hjNcn IPUUBYWgpp+F8e5UdTtHb74th268UWCsEQSp44DxC8A4VmwG1gbFLtLHjKoL9RdS ZAcFJAjOxwEu+DNj0PsU =PzJo -----END PGP SIGNATURE-----