On Thu, Jul 19, 2001 at 04:33:41PM -0400, Matt Dunford wrote:
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?
Try this (untested, of course!):
:0:
* ? grep -i "$FROM" .mutt.aliases
| $PERLSCRIPT
Hm, does not seem to work. Should that mean that the first line has to
be a true output to execute $PERLSCRIPT?
I tried to solve what the output of the first line is to solve why
nothing happens, but I wasn't able to.
Any ideas?
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, 8:42
`-- BOFH #265: The mouse escaped.
pgp6wSlFViu3s.pgp
Description: PGP signature