[#6431] make procmail command line utilities configurable
Summary make procmail command line utilities configurable
Queue Ingo
Queue Version HEAD
Type Enhancement
State Resolved
Priority 1. Low
Owners Chuck Hagenbuch <chuck (at) horde (dot) org>
Requester Michael (dot) Redinger (at) uibk (dot) ac (dot) at
Created 03/12/2008 (60 days ago)
Due
Updated 03/15/2008 (57 days ago)
Assigned
Resolved 03/15/2008 (57 days ago)
Attachments ingo-procmail-gnupaths-2.diff Download
Milestone
Patch 1

History
03/15/2008 Chuck Hagenbuch Comment #4
State ⇒ Resolved
Assigned to Chuck Hagenbuch
Reply to this comment
Looks good to me - committed, thanks!
03/15/2008 Chuck Hagenbuch Deleted Attachment: ingo-procmail-gnupaths.diff
 
03/13/2008 michael (dot) redinger (at) uibk (dot) ac (dot) at Comment #3
New Attachment: ingo-procmail-gnupaths-2.diff Download
Reply to this comment
Ok, I hope this is what.
I also added comments to backends.php.dist regarding the external delivery patch (bug 6433).
03/12/2008 Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Can you please update the patch so that reasonable defaults are supplied in the base object for these setting, and provide a patch to backends.php.dist showing setting them?
03/12/2008 Chuck Hagenbuch Patch ⇒ 1
Summary ⇒ make procmail command line utilities configurable
 
03/12/2008 Michael (dot) Redinger (at) uibk (dot) ac (dot) at Comment #1
New Attachment: ingo-procmail-gnupaths.diff
Patch ⇒
Milestone ⇒
Queue ⇒ Ingo
Summary ⇒ make procmail command line utilities configurable [patch]
Type ⇒ Enhancement
Priority ⇒ 1. Low
State ⇒ New
Reply to this comment
The .procmailrc file generated by ingo heavily depends on the GNU versions of the programs.
- eg. (ls -lcn --time-style=+%s or even echo -e). If your mail server happens to be not linux, the most often not works.

After looking at the code, I thought it would be too much trouble making the whole command configurable. Instead, I  decided the procmail code might assume that the GNU tools are available, but should not assume they are in the path or even what their name is (eg. on many Sun systems the GNU utilities are available, but prefixed with 'g' - gdate, gls etc.).

I therefore wrote a small patch (for lib/Script/procmail.php) that makes date, echo and ls a configuration option for each server (the test command seems to work on all platforms).