home · contact · privacy
Extend mailfilters.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 29 Mar 2016 23:29:44 +0000 (01:29 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 29 Mar 2016 23:29:44 +0000 (01:29 +0200)
dotfiles/user/server/minimal/mailfilter
dotfiles/user/server/personal/minimal/procmailrc

index ce117f76cf32ff7228ba88e88f4fa3ecf8dd3850..b8f3e1ccc5181c83c589e1432a99317c3426669b 100644 (file)
@@ -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 <MAILER-DAEMON@plomlompom\.com>/:D && \
     /^To: Postmaster <postmaster@plomlompom\.com>/:D )
index e62fa57e9498352bcc4d4a11d1efbb86bdb28798..91bcd3619f6dd9ff45858fc761f066088b79c284 100644 (file)
@@ -59,6 +59,10 @@ serverlogs/
 * ^Subject: ***SPAM***
 spam-suspect/
 
+:0
+* ^Subject: .*talon.*
+talonone/
+
 :0
 * ^From: Twitter 
 twitter/