On Mon, 2003-09-08 at 12:07 +1200, David Harris wrote: > I'm looking for guidance on the best practice when handling syntactically > invalid message id's in FETCH ENVELOPE responses.
"message id's"? What is it that belongs to the message-id in question? Did you mean "message ids"? :) > I'm *assuming* that the best practice in a situation like this is for me (the > server) to report NIL for the message-id field when the field is not > syntactically valid, but would appreciate feedback from on high. If you do this, then surely you should do the same for invalid Date: headers, invalid addresses in From:/To:/Cc: headers, etc? I don't think that the IMAP server should be munging the mail in any way. If you want to either reject or correct invalid email, you should probably do so once, before putting the mail into the mail store -- not each time the mail in question is viewed. -- dwmw2
