Prevent a message from be deleted but not from be moved

Tom Hendrikx tom at whyscream.net
Fri Nov 21 15:24:58 UTC 2014


-----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-----


More information about the dovecot mailing list