Item13395: Documentation fixes, cron directive wrong, package missing, debug=1 behavior different...

pencil
Priority: Normal
Current State: Needs Developer
Released In: n/a
Target Release:
Applies To: Extension
Component: MailInContrib
Branches:
Reported By: RaymondLutz
Waiting For:
Last Change By: GeorgeClark
-- 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

 

ItemTemplate edit

Summary Documentation fixes, cron directive wrong, package missing, debug=1 behavior different...
ReportedBy RaymondLutz
Codebase 1.1.9
SVN Range
AppliesTo Extension
Component MailInContrib
Priority Normal
CurrentState Needs Developer
WaitingFor
Checkins
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r2 - 12 Dec 2017, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy