djc / tokio-imap

Tokio-based IMAP implementation
Apache License 2.0
123 stars 42 forks source link

[Question] Difference between Sender and From from Envelope #127

Closed TornaxO7 closed 3 years ago

TornaxO7 commented 3 years ago

As the title says, your Envelope struct includes the fields: from and sender but what's their difference?

Also what does adl mean?

djc commented 3 years ago

I added some documentation about the difference between from and sender. In general, you should defer to the appropriate RFC -- in this case, mostly 3501 (IMAP), though the finer details for this stuff actually live in 2822.

I looked up a little bit what adl is actually used for, but couldn't quickly find any examples. I think this was part of RFC 822 and is part of the "obsolete" syntax specified in RFC 2822. You can probably mostly ignore it.

In general, this crate implements a parser for IMAP, but I don't see it as my responsibility to replicate documentation for all of its semantics in my spare time.

TornaxO7 commented 3 years ago

In general, this crate implements a parser for IMAP, but I don't see it as my responsibility to replicate documentation for all of its semantics in my spare time.

Yes, you're right. But still thank you that you spent some time to look it up for me :)! I'll read through the RFC then.