procmail
[Top] [All Lists]

Re: Auto-forwarding recipe problem

2010-09-03 03:03:19
Hello Greg Trounson,

Am 2010-09-02 12:08:58, hacktest Du folgendes herunter:
PATH=$HOME/bin:/usr/bin:/usr/local/bin:.
MAILDIR=$HOME/Maildir      # Need to make sure it exists
DEFAULT=$MAILDIR/
LOGFILE=$MAILDIR/procmailLog
LOCKFILE=$HOME/.lockmail

# Discard potential mail loops
:0
* ^X-Loop:(_dot_)*user1(_at_)my\(_dot_)domain\(_dot_)com
/dev/null

:0
* ^From:(_dot_)*(_at_)my\(_dot_)domain\(_dot_)com
* ! ^SUBJECT.*confidential

This should be:

    * ! ^Subject:.*confidential
                ^

$ echo "From: sender1(_at_)my(_dot_)domain(_dot_)com" | egrep -i
"^FROM(_dot_)*[\(_dot_)(_at_)]my\(_dot_)domain\(_dot_)com"
From: sender1(_at_)my(_dot_)domain(_dot_)com
$ echo "From: sender2(_at_)division(_dot_)my(_dot_)domain(_dot_)com" | egrep 
-i
"^FROM(_dot_)*[\(_dot_)(_at_)]my\(_dot_)domain\(_dot_)com"
From: sender2(_at_)division(_dot_)my(_dot_)domain(_dot_)com
$ echo "From: sender3(_at_)some(_dot_)other(_dot_)domain" | egrep -i
"^FROM(_dot_)*[\(_dot_)(_at_)]my\(_dot_)domain\(_dot_)com"
$

Again:  The Header ID ends with a : (colon) like

   To:
   From:
   Subject:
   Date:
   X-Header:

so, please use it in your recipes, otherwise you could run into  trouble
if you some time use

    :0 BH
    * ^From:*
    ...

think about it.


Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems(_at_)tdnet France EURL       itsystems(_at_)tdnet UG (limited 
liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4michelle(_at_)jabber(_dot_)ccc(_dot_)de
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>