On Mon, Sep 12, 2022 at 02:28:43PM +0200, Bastian wrote:
> On 12Sep22 14:24+0200, Bastian wrote:
> > Would it be feasible to also let the alternates scan the mail headers 
> > and find the header 'To-Envelope'?
> 
> Sorry, the header is labled Envelope-to:

I agree having some kind of ability to guess here might be a useful
feature for those using $alternates, $reverse_name, etc.

One issue is that I don't believe there is a standard for this per
rfc2076 etc.

You will see X-Apparently-To, `X-Envelope-To`, etc (or nothing)
depending on the MTA and other circumstances (for example, some versions
of some MTAs can't reliably assign this in the case where messages may
be BCCd to multiple recipients). Maybe someone could make an option to
include a header (set to null by default) whose value is examined for
help in determining what email the message was addressed to?

the procmailrc(5) man page (if you look for TO and TO_) has an
interesting list of the regex that it uses internally for more or less
this purpose.

w

Reply via email to