Scott Schwartz writes:
> Bruno Wolff III <[EMAIL PROTECTED]> writes:
> | No. That address is encoded according to rfc 821.
> | Addresses in the headers are encoded according to rfc 822.
>
> I am not talking about rfc822 headers, only about rfc821 envelopes.
>
> To reiterate: qmail-smtpd strips quotes from RFC821 ENVELOPES (the
> stuff you feed it with RCPT TO), and qmail-inject doesn't (the stuff
> you feed it on the command line). That's inconsistent, right?
Right.
Over the last 7-8 months I have studied, religiously, RFC821, 822,
1891-1894, 2045, and several other E-mail related RFCs, as I was in the
process of writing what right now stands to be about 2.5 megabytes worth of
source code (a lot of that is actually GNU's autobloat, but I won't get
into that right now).
Unless the envelope address refers to a local mailbox, qmail-smtpd has no
business stripping quotes from the local part of the address, in most
cases. It is arguable whether it should do that to the domain portion of
the address, but it really has no business doing that to the local portion.
There may be some point of argument if the quoted portion can be accurately
transcribed as an an RFC822 atom, in which case an argument can be made
that quotes can be stripped. However, stripping quotes unilaterally is a
completely broken behavior.
--
Sam