procmail
[Top] [All Lists]

Re: reading subjects into variables

1996-11-21 07:21:39
On Thu, 21 Nov 1996, S. Young wrote:

( correction to my previous post )


Thanks so much for your help.  I tried what you suggested but the 
email gets put into a file:
$HOME/folders//msg.fgK
or something similar (a different file every time).

        This is verry wierd, the following is wrong, but what I got was
blank names.

PATH=/usr/local/bin
MAILDIR=/var/spool/mail
DEFAULT=/var/spool/mail/syoung
LOGFILE=$HOME/logproc
SHELL=/bin/csh

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

        For the want of two characters the recipe failed :)

change the pattern above to:
* Subject: \/[0-9]*

and the catch will match the number.  it's just that easy.  In fact I did
it and it worked :)

================================================================  /| |\
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>