Peter J. Holzer <[EMAIL PROTECTED]> wrote: > On 2004-04-14 19:41:10 -0400, Keith C. Ivey wrote:
> > since the addresses in the MAIL and RCPT parameters are not > > RFC 822 addresses (they don't have angle brackets and name and > > comments and such). > > Actually, they do have angle brackets, and the brackets are > required, while they are optional in RFC 822. You're right, of course, but I was thinking of the address in this case as being just the thing inside the angle brackets. > > Maybe they should be a Qpsmtpd::Address object, > > Yup. > > > and there could be a local() method to indicate whether the > > address is local. > > Hmm. How do you determine that? Do we need a new hook for that? Unfortunately it's probably different for different servers, but it would be nice if there were a way to make such a method. Currently there are several plugins that go through essentially identical procedures, looping through the rcpthosts and morercpthosts and comparing them to the host part of the recipient (or sometimes sender) address. The code needs to be consolidated somehow. Maybe that ties in with your question about sharing code between plugins. -- Keith C. Ivey <[EMAIL PROTECTED]> Washington, DC