6.0.0-beta1
7/22/25

[#1436] Procmail Driver doesn't support special "TO_" header
Summary Procmail Driver doesn't support special "TO_" header
Queue Ingo
Queue Version 1.0.1
Type Enhancement
State Resolved
Priority 1. Low
Owners ben (at)
Requester derek (at) battams (dot) ca
Created 02/25/2005 (7452 days ago)
Due
Updated 05/08/2005 (7380 days ago)
Assigned 02/27/2005 (7450 days ago)
Resolved 05/08/2005 (7380 days ago)
Milestone
Patch No

History
05/08/2005 05:57:17 AM ben Comment #3
State ⇒ Resolved
Reply to this comment
Committed, thanks!



I also added support for "special" headers like this on a per-driver 
basis.  That way, 'Destination' shows up in the list for procmail 
rules, but not for others.
02/27/2005 03:58:28 AM Chuck Hagenbuch Assigned to ben
State ⇒ Assigned
 
02/26/2005 11:24:50 PM derek (at) battams (dot) ca Comment #2
New Attachment: procmail_dest.patch.txt Download
Reply to this comment
Here's the patch I developed to address this issue on my server.  I 
decided not to add the "Destination" header as an option  in 
config/fields.php since I wasn't sure of the impact it would have on 
the other backends.  Therefore my patch relies on the user specifying 
a user defined header called "Destination", which will implement the 
TO_ header syntax in the generated procmailrc file.  An ideal patch 
would actually include this Destination header as part of the listed 
options and act accodingly.
02/25/2005 10:16:38 AM Jan Schneider Type ⇒ Enhancement
State ⇒ Accepted
Priority ⇒ 1. Low
 
02/25/2005 02:45:08 AM derek (at) battams (dot) ca Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Procmail Driver doesn't support special "TO_" header
Queue ⇒ Ingo
Reply to this comment
From 'man procmailrc':



MISCELLANEOUS

        If the regular expression contains `^TO_' it will be substituted by

        `(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope

        |Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)', which should catch

        all destination specifications containing a specific address.



My procmailrc files (and those of some users of mine) rely on this 
feature.  Perhaps an option can be added to the drop down list of 
fields called "Destination" or something that makes use of this 
special header expression?

Saved Queries