App::Wubot::Plugin::OsxMailApp - monitor OS X mailbox file for new messages
~/wubot/config/plugins/OsxMailApp/work.yaml --- directory: /Users/myid/Library/Mail/DOMfirstname.lastname@example.org/in.xxxxbox/Messages delay: 1m
This plugin parses the cache files of the OS X Mail.app file for newly received messages.
Each time a new email file shows up in the directory, a message will get sent containing each of the mail headers, with the field name in lower case.
You might ask yourself why a person would want to do such a thing. The answer is that I have to monitor an exchange mailbox. The most reasonable client I can use with exchange is OS X's Mail.app. Since I can't communicate well with exchange from perl, it is actually much easier to just to read the Mail.app cache files.
- check( $inputs )
The standard monitor check() method.