procmail
[Top] [All Lists]

Re: limiting a variable and saving address info

1996-05-25 08:12:39
Gino asked:

Now what I want to do with $NAME is limit it so it can be no more than 25
characters in length, AND if $NAME is blank, I want it to contain the same
contents as $FROM_ADDRESS...

How can I go about doing this??
 
 note that this just trims it.

:0 
* NAME ?? .
* NAME ^^\/.{1,25}
{ NAME = "$MATCH" }

:E
{ NAME = "$FROM_ADDRESS" }

Soren