Changes between Initial Version and Version 2 of Ticket #217
- Timestamp:
- Aug 29, 2011, 2:39:35 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #217
- Property Priority changed from normal to minor
- Property Type changed from defect to enhancement
- Property Component changed from web to mail
-
Ticket #217 – Description
initial v2 1 Our FAQ says that you should look at the X-Original-To header. procmail has this nice ^TO_header field:1 Our FAQ says that you should look at the `X-Original-To` header. procmail has this nice `^TO_` header field: 2 2 3 > 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.3 > 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. 4 4 5 5 Meanwhile, we [http://scripts.mit.edu/mail/ document]: 6 > You can access the tag on a message from your procmailrc file by parsing the X-Original-To header or as the $1variable.6 > You can access the tag on a message from your procmailrc file by parsing the `X-Original-To` header or as the `$1` variable. 7 7 8 Note that the regex matches Original-To but not X-Original-To.8 Note that the regex matches `Original-To` but not `X-Original-To`. 9 9 10 A request to match X-Original-To too should be filed upstream with procmail, unless X-Original-To is a thing we do and not that procmail/postfix does in which case we should switch to Original-To, or unless it's a thing that postfix does in which case we should file a bug with them telling them to switch to Original-To.10 A request to match `X-Original-To` too should be filed upstream with procmail, unless `X-Original-To` is a thing we do and not that procmail/postfix does in which case we should switch to `Original-To`, or unless it's a thing that postfix does in which case we should file a bug with them telling them to switch to `Original-To`.