Opened 12 years ago

Last modified 12 years ago

#217 new enhancement

procmail's ^TO expansion does not include X-Original-To

Reported by: geofft Owned by:
Priority: minor Milestone:
Component: mail Keywords:

Description (last modified by andersk)

Our FAQ says that you should look at the X-Original-To header. procmail has this nice ^TO_ header field:

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.

Meanwhile, we document:

You can access the tag on a message from your procmailrc file by parsing the X-Original-To header or as the $1 variable.

Note that the regex matches Original-To but not X-Original-To.

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.

Change History (2)

comment:1 Changed 12 years ago by geofft

  • Component changed from web to mail

comment:2 Changed 12 years ago by andersk

  • Description modified (diff)
  • Priority changed from normal to minor
  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.