From 69275fcea394d7ebf2d863d9edc586056c5e5219 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Mon, 21 Jul 2014 16:06:37 +0200 Subject: [PATCH] procmail and some things --- bashrc | 2 ++ mailcap | 3 ++- mutt/muttrc | 4 ++++ procmailrc | 30 +++++++++++++++++++----------- 4 files changed, 27 insertions(+), 12 deletions(-) diff --git a/bashrc b/bashrc index 5944438..7deacc8 100644 --- a/bashrc +++ b/bashrc @@ -1,5 +1,6 @@ shopt -s checkwinsize #Pour pas s'écrire dessus shopt -s histappend +shopt -s autocd #No more cd xx ##shopt -s autocd #Like zsh PROMPT_COMMAND='history -a' @@ -592,6 +593,7 @@ export MANPATH=$MANPATH:$DEVKITARM/man export PATH=$PATH:~/Programmation/dotfiles/Utils export HISTCONTROL=erasedups +export HISTSIZE=999999 # }}} export PATH="$HOME/opt/cross/bin:$PATH" export PATH="/home/frank/.gem/ruby/2.0.0/bin/:$PATH" diff --git a/mailcap b/mailcap index 3b26daa..472c0f8 100644 --- a/mailcap +++ b/mailcap @@ -1,5 +1,6 @@ image/*; feh %s -text/html; lynx -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput +#text/html; lynx -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput +text/html; firefox %s audio/*; vlc %s application/pdf; evince %s application/msword; libreoffice %s diff --git a/mutt/muttrc b/mutt/muttrc index 368c1e8..35a3cbb 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -127,3 +127,7 @@ set sleep_time=0 #set mime_forward=yes #set mime_forward_rest=yes +# +# +# +macro attach 'V' "cat > /dev/shm/mail.html && firefox /dev/shm/mail.html && rm /dev/shm/mail.html" diff --git a/procmailrc b/procmailrc index 5d1f52a..d0c4f38 100644 --- a/procmailrc +++ b/procmailrc @@ -13,7 +13,7 @@ SED=/bin/sed #:0 # * ^Subject:.*(credit|cash|money|debt|sex|sale|loan) # $MAILDIR/.SPAM/new -# + #Out EachBuyer :0 * ^From:.*EachBuyer.* @@ -53,7 +53,6 @@ SED=/bin/sed * ^From:.*Pourmonbureau.com.* $SPAMBOX - :0 * ^From:.*Masterstudies.com.* $SPAMBOX @@ -81,6 +80,7 @@ SED=/bin/sed $SPAMBOX #Out directindustry +:0 * ^From:.*Directindustry.* $SPAMBOX @@ -121,6 +121,10 @@ SED=/bin/sed * ^Subject:.*vid-i.com.* $SPAMBOX +:0 + *^To:.*email_list@test.villaro.ch.* + $SPAMBOX + #WTF is this shit ? :0 * ^From:.*newfrog.* @@ -153,16 +157,19 @@ SED=/bin/sed $SPAMBOX #Out fcking ads +:0 * ^To:.*tor@vi-di.fr.* * ^From:.*(Prizer|Prizer).* * ^Subject:.*(S|s)av(ings|e).* $SPAMBOX #out edaboard +:0 * ^To:.*edaboard@vi-di.fr.* $SPAMBOX #Out discounts +:0 * ^To:.*tor@vi-di.fr.* * ^From: American Health Store.* $SPAMBOX @@ -179,7 +186,7 @@ SED=/bin/sed * http:// * news.html $SPAMBOX -:0 B +j:0 B * petroleum * spill * oil @@ -228,20 +235,20 @@ SED=/bin/sed #taken from bethesignal.org; thanks ;) :0 fBw -* ^--$ -| $SED -e 's/^--$/-- /' + * ^--$ + | $SED -e 's/^--$/-- /' :0 fBw -* ^_______________________________________________$ -| $SED -e 's/^_______________________________________________$/-- /' + * ^_______________________________________________$ + | $SED -e 's/^_______________________________________________$/-- /' :0 fBw -* ^________________________________$ -| $SED -e 's/^________________________________$/-- /' + * ^________________________________$ + | $SED -e 's/^________________________________$/-- /' :0 fBw -* ^---------------------------$ -| $SED -e 's/^---------------------------$/-- /' + * ^---------------------------$ + | $SED -e 's/^---------------------------$/-- /' #:0c @@ -250,3 +257,4 @@ SED=/bin/sed :0: $DEFAULT +