[Postfix-br] Dovecot ManageSieve
Reinaldo Gil Lima de Carvalho
reinaldoc em gmail.com
Terça Maio 21 19:54:30 BRT 2013
On Tue, May 21, 2013 at 7:49 PM, Henrique Fagundes
<magnatahp at yahoo.com.br>wrote:
> Prezados colegas,
>
> O script abaixo move as mensagens marcas como SPAM pelo spamassm para a
> pasta de spans.
>
> require "fileinto";
> if exists "X-Spam-Flag" {
> if header :contains "X-Spam-Flag" "NO" {
> } else {
> fileinto "Junk";
> stop;
> }
> }
> if header :contains "subject" ["[SPAM]"] {
> fileinto "Junk";
> stop;
> }
>
>
require "fileinto";
if exists "X-Spam-Flag" {
if not header :contains "X-Spam-Flag" "NO" {
redirect "user at example.com";
stop;
}
}
if header :contains "subject" ["[SPAM]"] {
redirect "user at example.com";
stop;
}
A ação "redirect" não mantém cópia na caixa postal atual, para encaminhar e
deixar uma cópia use "keep;" na linha seguinte.
--
Reinaldo Gil Lima de Carvalho
http://korreio.sf.net
http://python-cyrus.sf.net
"While not fully understand a software, don't try to adapt this software to
the way you work, but rather yourself to the way the software works"
(myself)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/postfix-br/attachments/20130521/98e6e055/attachment.html>
More information about the Postfix-br
mailing list