Changes between Initial Version and Version 2 of Ticket #217


Ignore:
Timestamp:
Aug 29, 2011, 2:39:35 PM (13 years ago)
Author:
andersk
Comment:

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:
     1Our FAQ says that you should look at the `X-Original-To` header. procmail has this nice `^TO_` header field:
    22
    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.
    44
    55Meanwhile, 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 $1 variable.
     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.
    77
    8 Note that the regex matches Original-To but not X-Original-To.
     8Note that the regex matches `Original-To` but not `X-Original-To`.
    99
    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.
     10A 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`.