Robert Burrell Donkin ha scritto:
> i've revised the MailAdapter API so that the responsibility for
> parsing the addresses is push to the adapter. however, Envelope
> extends Address.
> 
> i wondered whether this the API needs altering so that getEnvelopes
> returns addresses but i'm struggling to understand the envelope test
> in http://www.rfc-editor.org/rfc/rfc3028.txt.
> 
> anyone care to take a look and offer an opinion?
> 
> - robert

Disclaimer: I never read the Sieve specification and I don't have any
specific knowledge.

Reading the rfc paragraph about the envelope test I think that Envelope
is something more than an address.

For an SMTP environment envelope is composed by a "from" (the address
used in the MAIL FROM command) and a "to" (the address used in the RCPT
TO command and that caused the delivery to this specific user).

Maybe a method getEnvelopeAttributes should return a map {
  "from" => Address-instance,
  "to" => Address-instance
}

It is not clear:
1) what "to" should check in case of alias expansion/local forwarding
(the original smtp recipient or the rewritten recipient?).
2) is anything else but "from" and "to" allowed?
3) if 2 is true are multiple values for an identical envelope-part allowed?

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to