From: Christian Heller Date: Tue, 29 Mar 2016 23:29:44 +0000 (+0200) Subject: Extend mailfilters. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/add_structured?a=commitdiff_plain;h=87eecf3419b99154b80081c7cfd6e074200c3712;p=config Extend mailfilters. --- diff --git a/dotfiles/user/server/minimal/mailfilter b/dotfiles/user/server/minimal/mailfilter index ce117f7..b8f3e1c 100644 --- a/dotfiles/user/server/minimal/mailfilter +++ b/dotfiles/user/server/minimal/mailfilter @@ -1,6 +1,13 @@ DEFAULT="$HOME/mail/new_inbox/" logfile "$HOME/.mailfilter.log" +if ( /^To: .*heller@talon\.one.*/:D || /^Subject: .*Talon*/:D ) +{ + DIR="$HOME/mail/talonone/" + `mkdir -p $DIR/{cur,new,tmp}` + to $DIR +} + if ( /^Subject: Postfix SMTP server: errors from /:D && \ /^From: Mail Delivery System /:D && \ /^To: Postmaster /:D ) diff --git a/dotfiles/user/server/personal/minimal/procmailrc b/dotfiles/user/server/personal/minimal/procmailrc index e62fa57..91bcd36 100644 --- a/dotfiles/user/server/personal/minimal/procmailrc +++ b/dotfiles/user/server/personal/minimal/procmailrc @@ -59,6 +59,10 @@ serverlogs/ * ^Subject: ***SPAM*** spam-suspect/ +:0 +* ^Subject: .*talon.* +talonone/ + :0 * ^From: Twitter twitter/