-----BEGIN PGP SIGNED MESSAGE-----
On Sun, 26 May 1996, Gino Filicetti wrote:
:0
* NAME ?? .
* NAME ?? ^^\/.{1,25}
{ NAME = $MATCH }
:E
{ NAME = "$FROM_ADDRESS" }
One little error corrected: the second ?? was missing.
Ok guys... that should work.... but the second recipe should have a :0E
instead of :E shouldn't it???
Yes, I would use :0E. But, by default, procmail adds the 0 to recipes
with an E or an A flag.
Another remark: you don't need the first condition (NAME ?? .). The
second one won't match if NAME is empty either.
and E means that it'll only execute if the previous one didn't but I don't
want EITHER one to execute if 0 < $NAME < 25, you know what I mean??
The first recipe is executed if NAME is non-zero. The action line
truncates NAME to the first 25 characters, and if NAME has less than 25
characters, nothing will happen.
The second recipe is executed when the first one fails (i.e., when NAME
is empty).
- --
Guy Geens <guy(_dot_)geens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be>: Ph.D.
student at ELIS -- TFCG / IMEC
Home Page: http://www.elis.rug.ac.be/ELISgroups/tfcg/staff/gg.html
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use
keyserver)
"Cocaine, such an amusing drug. Don't you think?"
Princess Margaret to the Rolling Stones
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: pgp fingerprints in message headers
iQBVAwUBMaiuk3wHoCha5QR1AQEdHgH+Jm235cLSvVCiquCNtGbwUi1ht22VHu9/
0w3DwLEJv1sildQ95Bl+LksO3hcIs4Ba3PYV9gcZXapLquVpRsmB3Q==
=UFH0
-----END PGP SIGNATURE-----