On 2015-09-05 16:25 +0200, Louis-David Mitterrand wrote:

> Hi,
> 
> When this reply-hook is applied the text between parens doesn't appear
> in replies:
> 
> reply-hook '~h((X-Original-)?To\|From):.+(contact\|info)@example.net' \
>       "set hostname=example.net; \
>       my_hdr From: Flavius (Example Support) <[email protected]>"
> 
> If I remove the parens then "Example Support" appears in the header.
> 
> What is going on here?

I think this is mutt's overly strict (pedantic?) interpretation of RFC
2822 (or whatever is the current version), section 3.4 (Address
Specification).  That section says that an address is in one _and only
one_ of two forms:

1. Foo Bar <[email protected]>

2. [email protected] (Foo Bar)

Basically, parentheses are not free form, they are supposed to hold the
real name in case the address proper is not enclosed in angle brackets.

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.

Reply via email to