procmail
[Top] [All Lists]

Re: reading subjects into variables

1996-11-21 06:08:34
On Thu, 21 Nov 1996, S. Young wrote:

Hi.

I want to have a procmail recipe that will save certain mail to folders 
where the folder name (always a number) is specified in the subject.

I tried:

:0

* Subject: [0-9]*
$HOME/folders/`formail -x Subject:`

        Actually you're just making to much work for yourself.  The
following recipie will do what you want:

:0
* Subject: [0-9]*
$HOME/folders/$MATCH

The match catches whatever you specify in the glob.

================================================================  /| |\
James V. Di Toro III            | "I've got a bad feeling        / |_| \/\
System Administrator, GATS, Inc.|   about This" -various        |()\ /  ||
W: 757/865-7491  F:757/865-1021 |------------------------------ |---0---_|
   karrde(_at_)gats(_dot_)hampton(_dot_)va(_dot_)us     |  
www.gats.hampton.va.us        \ / \ /
webmaster(_at_)gats(_dot_)hampton(_dot_)va(_dot_)us     |                       
          ^:::^

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