P. Senthil Kumar asked,
| is it possible to route the mails to certain folders and reject the
| mails according to time?
If your mail delivery agent adds From_ lines (aka postmark lines, those
beginning with "From<space>" rather than "From:") at the top of each message
before procmail sees it, it's very easy. I do it all the time to make
recipes turn on or off at preset times on preset dates.
If you call procmail with the -f- option, I believe it will make sure that
there is a postmark line.
| i.e. suppose if i want to reject all the mails from a particular user
| after 5.30 p.m. or redirecting the mails to certain folders after 6.00
| p.m.
You have two ambiguous words there, "from" and "after". Are you going to
determine whom a message is from by the From: header, the postmark line,
or some other indicator? And when does "after 5:30" or "after 6:00" end?
At 8 AM? Is the entire weekend considered "after 5:30"?
| if it is possible, please mail me the recipe as soon as possible.
You'll need to supply the rest of the details, or perhaps you can do it
yourself. It's just a matter of
:0 flags
* ^^From +[^ ]+ regexp_for_times_and_days_of_week_and_dates_to_do_it
action
or if it makes the regexp easier to write,
:0 flags
* ! ^^From +[^ ]+ regexp_for_times_and_days_of_week_and_dates_NOT_to_do_it
action
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail