Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#! /usr/bin/perl; use Mail::Audit; my $folder = "/home/me/mail/toForward"; my $item = Mail::Audit->new; my $subject = $item->subject(); my ($hour, $wday) = (localtime)[2,6]; if ($wday !=0 and $wday !=6 # Not Saturday/Sunday and $hour > 9 and $hour < 18) { # Between 9am and 6pm $item->resend('archive@theoffice.com'); # resend is the only action # which doesn't end the program. }
I used this example from Simon Cozen's tutorial, but I'm not sure how to change the time sensitivity to every 5 seconds instead of btw 9am-6pm. Also, I'm not sure if this will only fwd mail from the toForward folder. Any advice is welcome.
thanks.
jc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mail::Audit and time sensitivity
by hossman (Prior) on Jul 27, 2003 at 18:46 UTC | |
|
Re: Mail::Audit and time sensitivity
by saintbrie (Scribe) on Jul 27, 2003 at 15:25 UTC |