in reply to Mail::Audit and time sensitivity
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.
I think you are missunderstanding the intent of this example, and perhaps the purpose of Mail::Audit.
This module is designed to make it very easy for you to write very complicated real-time mail filters in perl. Or to put it another way: It's not intended for writting scritps that run once (or once every X seconds) and process mail in a specified folder, It's intended to process your mail in real time as it is being delivered to you.
In Simon's example, there is no "sensitivity" of "btw 9am-6pm" .. what he is doing, is saying that if the current time (that the script is being executed) is durring work hours, then forward the message to his work account. The reason he is looking at the current time, is becuase he knows that his program will be executed at the moment the mail has arrived.
Quite simply, I think you need to do one of two things...
|
|---|