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
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 mailbox
simply: no
many if not most mail-clients in case of move issue two commands:
- copy to new folder
- delete from old folder
-----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-----
How can I do it Tom??? Em 21/11/2014 13:25, "Tom Hendrikx" tom@whyscream.net escreveu:
-----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-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 22-11-14 02:40, Bruno Galindro da Costa wrote:
Em 21/11/2014 13:25, "Tom Hendrikx" tom@whyscream.net escreveu:
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
How can I do it Tom???
Please don't top-post.
See the manpage for dovecot-antispam that came with your install.
You're looking for the config settings 'antispam_trash' and/or 'antispam_trash_pattern', they should list the names of your Trash directories.
Tom -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQIcBAEBCAAGBQJUcNqeAAoJEJPfMZ19VO/1gIwQAJhRNmer7WC1MTJbC0qgVLqR bMfvYcETkOj3XEr9ReeccmsxsAJApLodnCIXwtNYAx0uM1UvUymst/BIFhQy1IGO bRgIfegYmF6DKbC/BFhYOTkWzyISEMNQT3A0ESE91H+qOL6qHgbNiTZ0HHdeHo8e ImvasixAmoiBcAE6a+TkAZstYfI9Xbu7xAz0ZTw6DW8qC4vwlmgXMCHk4ULw76YZ VOPGbRURPuQmsm4fcl8HmRrNQ7BZS/DqHBVm72z58QjNH3qB+3E4VLtq1xNqRQOh 4LoUvIM3ymmhm4b0Llf5r/3tbneu9dsGsX9axa0UpRivmxajilrFgejJYXO1P0KC NViwg+iwq9e2w+foYE9Xai9NcSbZJTtVdcdhSffS1l+pFJsEsUDkAcNGrTuGikUX 8X29b4fizTa5d5fh8gljxebeufuR/uw6YaohuAjKQ1qxsWdTE3dDwPYnUNWSHJOZ 03YI4LWLutWnn7A5hTotMc9N+oLPVWXWVzVUoJoN0YOcKFhuP2jkuc+Df9DyE0Rf UFHuMiQ1dYb/Pi9uYyWhw7U3tLBvw8wyUj72QNvun0KhbWWi0e2Prg5iqt+iZln2 fz1SwNlVQRVpR9TUVR0c0knOTPGUjhp9rzysgRl7RWuCApLrHCjYU12MI4lHTmeA FfRBrpp6+fD0T0zrOGWx =0A0o -----END PGP SIGNATURE-----
participants (3)
-
Bruno Galindro da Costa
-
Reindl Harald
-
Tom Hendrikx