Re: Time-based filtering in Procmail
"@lbutlr" <[email protected]> Sun, 31 May 2015 21:38:59 -0600
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
On Sat May 30 2015 03:51:46 [email protected] 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/ [email protected] http://mailman.rwth-aachen.de/mailman/listinfo/procmail