procmail
[Top] [All Lists]

Re: Grep from file

2007-12-04 06:13:06
Am 2007-11-28 11:43:32, schrieb Bill McCormick:
Something like ...

:0 hw
DOMAIN=|$FORMAIL and sed to find the domain.com part of the $FROM

Why this?

            DOMAIN=`formail -rt |formail -czx To: |cut -d '@' -f2`
or maybe
            DOMAIN=`formail -czx From: |cut -d '@' -f2`

Then I can do something like this? ...

:0 h
* ? $GREP -i ^($FROM|$DOMAIN) $TRAVEL
      ^^^^^    ^^^^^^^^^^^^^^^^
        |       and this in ""
        |      
    This should be "egrep" or "grep -E"

 * ? egrep -i "^($FROM|$DOMAIN)" $TRAVEL

Thanks, Greetings and nice Day
    Michelle Konzack


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
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>
  • Re: Grep from file, Michelle Konzack <=