jaromail

a commandline tool to easily and privately handle your e-mail
git clone git://parazyd.org/jaromail.git
Log | Files | Refs | Submodules | README

commit 01a6194274d895e0e3748f3c5fd550c5cf178015
parent 605cd15aa2da0c7f22a30c5cb51cf4ad74664db2
Author: Jaromil <jaromil@dyne.org>
Date:   Wed,  7 May 2014 14:14:04 +0200

small fix to bounces parser

Diffstat:
Msrc/zlibs/filters | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/zlibs/filters b/src/zlibs/filters @@ -102,8 +102,12 @@ update_filters() { cat <<EOF >> "$ff" # automatically generated by jaromail typeset -Al filter_from -typeset -Al filter_to typeset -alU filter_own +typeset -Al filter_to +filter_from=() +filter_own=() +filter_to=() + EOF ffilters=`cat "$MAILDIRS/Filters.txt" | awk ' /^#/ {next} @@ -160,7 +164,8 @@ EOF unlock "$ff" zcompile "$ff" - source "$ff" + # recursive reload + source "$WORKDIR/zlibs/filters" return 0 } @@ -214,9 +219,9 @@ filter_maildir() { act "$c\t\t/ $numm\t\t->\tzz.blacklist" continue } - hdr "$m" | awk '/Sender.*bounce/ { exit 1 }' + hdr "$m" | awk '/Sender.*mailman-bounce/ { exit 1 }' { test $? = 0 } || { - act "$c\t\t/ $numm\t\t->\tzz.bounce" + act "$c\t\t/ $numm\t\t->\tzz.bounces" cat "$m" | deliver zz.bounces { test $? = 0 } && { ${=rm} "$m" } continue }