Prevent a message from be deleted but not from be moved

Tom Hendrikx tom at whyscream.net
Sat Nov 22 18:49:06 UTC 2014


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


More information about the dovecot mailing list