procmail
[Top] [All Lists]

if-then or something similar

2001-07-19 10:34:38
Hello!

I'd like to do something like a "if-then" in procmail, like I would be
able to do in a shell-script.
Here is it as shell-script, is there any way to translate it to my
.procmailrc?

if [ "`cat .mutt.aliases | grep -ic $FROM`" != "0" ]; then
        $PERLSCRIPT
fi

Maybe "!=" has to be replaced by "-gt", I am not sure about that yet.
$FROM is from "FROM=`formail -zxFrom:`"

So, is something like that possible?

Best regards,
Arvid

-- 
 .''`. [Arvid Warnecke] [Arvid(_dot_)Warnecke(_at_)TU-Clausthal(_dot_)de] 
[05323-715724]
: :' : [ICQ 55906559] [ http://up.to/suck ] [PGP-Subject:"get pgp key"]
`. `'  Linux 2.4.2 i686  XFree86 Version 4.0.2  Uptime: 2 days, 3:21
  `--  BOFH #175: OS swapped to disk

Attachment: pgplxBv2ygJFY.pgp
Description: PGP signature

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