Charlie Brady <[EMAIL PROTECTED]> wrote: > It helps, I think, to remember that there are three different > address objects, which are all related: > > - a To:/From: header address > - a rcpt to:/mail from: address > - an envelope address.
Actually, I wouldn't say the header addresses are related to the RCPT/MAIL addresses. They're often completely different. But maybe you mean the format is related. The envelope addresses, however, are exactly the same as what's inside the angle brackets in the SMTP argument, unless I'm missing something. RFC 822 isn't really relevant, then, since it's about headers in the message itself. The addresses in the SMTP dialog don't have any phrases or comments. So maybe the real problem is that we're using Mail::Address for something other than RFC 822 addresses. Is there something more appropriate to use? A related problem is that Qpsmtpd::SMTP.pm uses Mail::Address ->parse() on the MAIL FROM and RCPT TO arguments, which isn't really appropriate, since the method is designed for parsing 'From:' and 'To:' header lines. That's one reason it's not handling addresses containing spaces correctly. -- Keith C. Ivey <[EMAIL PROTECTED]> Washington, DC
