Item13395: Documentation fixes, cron directive wrong, package missing, debug=1 behavior different...
Priority: Normal
Current State: Needs Developer
Released In: n/a
Target Release:
--
RaymondLutz - 06 May 2015
DOCUMENTATION CORRECTIONS....
Yep. The CRONTAB line must have the 2>&1 at the end, not in the middle. Thus, the entry should be something like:
*/5 * * * * (cd /path-to/bin && ../tools/mailincron >>/path-to/working/logs/mailincron.log 2>&1)
to check mail every five minutes.
NOT --
*/5 * * * * (cd /path-to/bin && ../tools/mailincron 2>&1 >>/path-to/working/logs/mailincron.log)
Order is important because the &1 here will mean where STDOUT is currently directed. Thus, ERROUT gets redirected to terminal, then AFTER THAT STDOUT is redirected to the log.
I am not sure but I am a bit worried that this log will grow without bound and require manual intervention, unless there is another additional piece of code to do that because this one certainly does not monitor the size and roll into a new file at a certain point, and delete old logs when they are very old.
ALSO SHOULD DOCUMENT:
Email::Folder::POP3
must be installed for those using pop3 mail services. This is required and not 'used' so the error only is exposed when the thing is run.
debug=1 parameter DOES modify topics and it does provide verbose descriptions in the log. Documentation says it does not modify topics.
--Ray