procmail
[Top] [All Lists]

Re: how to check incoming mail per Date field

1995-12-07 15:21:10
daniel asked: 
    
variable CURRENT_DATE='date +%a, %d %h 19%y'.  Will
the following sort yesterdays' mail to DATE.mbox?:

CURRENT_DATE='date +%a, %d %h 19%y'
MBOX_DATE='date +%y%m%d'

:0
* ^Date:.* < CURRENT_DATE
$MAILDIR/${MBOX_DATE}_mbox

        Nope.  The test condition will try to match that regular expression.
I would probably run a cron or at job to dump the date into a file and
then do something like

MBOX_DATE=`cat $file`

or even have the file contain the assignment and just INCLUDERC=$file.

Soren

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