Has anyone done any automation of tasks by monitoring /var/spool/mail/ mailboxes?
As I have VDR shutting down between timers, I'd like to 'queue' an email request to automate a response containing all the current scheduled timers, and to add additional timers where requested.
Idea would be to SMS a 'command' to an email gateway, which the VDR box (when it next turned on) could respond to and issue svdrp commands where needed.
Does anyone know of any tools available to monitor and parse emails? Perhaps something the sourceforge, or even the this mail list uses to list subscribed lists etc???
Any thoughts?
Simon Baxter wrote:
Does anyone know of any tools available to monitor and parse emails? Perhaps something the sourceforge, or even the this mail list uses to list subscribed lists etc???
Take a look at procmail. It's been around for ages and it's the tool of choice for email processing.
Here is an example procmail recipe that extracts information from a matching message and runs shell commands with this info: http://www.uwasa.fi/~ts/info/proctips.html#setvar
Cheers,
Julian
Simon Baxter wrote:
Has anyone done any automation of tasks by monitoring /var/spool/mail/ mailboxes?
As I have VDR shutting down between timers, I'd like to 'queue' an email request to automate a response containing all the current scheduled timers, and to add additional timers where requested.
Idea would be to SMS a 'command' to an email gateway, which the VDR box (when it next turned on) could respond to and issue svdrp commands where needed.
Does anyone know of any tools available to monitor and parse emails? Perhaps something the sourceforge, or even the this mail list uses to list subscribed lists etc???
Any thoughts?
WAP Daemon http://vdr.heiligenmann.de/download