On Wed, 2003-09-10 at 00:47, Dilip Menon wrote:
> When I design an IMAP server to accept smtp address what should the length
> be?

Just IMHO: You shouldn't hardcode limits for things which don't really
need limiting. I don't see any point in limiting mail addresses when
reading them, except maybe if you want to do it the "easy way" with C
code. That "easy way" also often becomes quite complex once you make
sure the buffer won't overflow.

I'm also not exactly sure what you mean by SMTP addresses. IMAP doesn't
see "MAIL FROM" or "RCPT TO" directly. There's Return-Path and
Delivered-To which I think contains those, but why do you want to treat
them in a special way? Or do you mean all the addresses that are parsed
into ENVELOPE? I don't think RFC2822 limits address lengths in From, To,
etc. headers (did only a quick look).


Reply via email to