procmail
[Top] [All Lists]

Re: Time-based filtering in Procmail

2015-05-31 23:24:37
On Sat May 30 2015 03:51:46 rvtol(_at_)isolution(_dot_)nl said:

procmail mktime

Thanks. I found a lot of posts referring to it, but it took me some time to 
find the actual file.

<http://rvtol.home.xs4all.nl/procmail/inc/mktime.103.rc.inc>

And while this will prove useful, it is not really what I was looking for. I 
want to do something different with a message if it arrives, for example, 
between 3am and 6am, or maybe 500 to 2130.

I’m cheating now by just calling perl.

* ? /usr/bin/perl -e 'use POSIX qw(strftime); $now_hour = strftime "%H", 
localtime; …

and ignoring the headers. Working well enough for now.

-- 
Angie, Angie, when will those clouds all disappear?
Angie, Angie, where will it lead us from here?
With no lovin' in our soul and no money in our coats You can't say we're 
satisfied
But Angie, Angie--You can't say we never tried


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

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