procmail
[Top] [All Lists]

Re: Bit wise &

2003-09-16 01:40:53
Homer Wilson Smith wrote:

     Can procmail do a bit wise and similar to perl

     if ($VARIABLE & 2) {yak...}

No, but you can call Perl and interpret the return value, or call Perl
as a filter.

     Can environmental variables created inside a perl
script survive back to procmail once the script is ended?

No, but again you can call Perl and interpret the return value, or call
Perl as a filter and store values in X- header fields, e.g.

:0 hfw
| /usr/bin/perl -T -w  /home/user/script.pl

where script.pl adds headers with information you want to use later in
the program.

--
Klaus Johannes Rusch
KlausRusch(_at_)atmedia(_dot_)net
http://www.atmedia.net/KlausRusch/



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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