From: Sam Varshavchik <[EMAIL PROTECTED]>
Notice the very last line there, /It might not even end with a newline/

Correct. The contents of the file may be just a subset of the output from /dev/random. As this document states, it might even be random binary data, which, of course, will not have a trailing newline.


However, 'M' in "IMAP" stands for "message", not "random binary content." If you intend to serve maildir contents over IMAP, the contents of the maildir does, indeed, have to look like an E-mail message. And, as we all know, Internet E-mail consists of line of texts with trailing newlines.

- meaning the delivery can have no new line, so it's up to Courier-IMAP to still display the full message. If it's not, then it's denying the user their full message, making it an unreliable IMAP server.

I cannot control someone dumping random crap into a maildir. I do check that mail content uploaded via IMAP APPEND will have a trailing newline character, and I will add it if it is not present. Well-formed Internet E-mail will always have a trailing newline.


All other cases are handled according to the GIGO principle.

I need this line, as sometimes I save a draft of a document with just 1 URL to pick up later - and it shows up as a blank message when I check it via IMAP - essentially a lost message.

How are you saving the draft? This should not happen if you save the draft via IMAP.


What are you doing to correct this?

As soon as I believe that something needs to be corrected.

I don't think you would normally get this kind of behavior with SMTP, but couldn't you end up having trouble if you're using some other means of message injection such as QMTP, uucp, or agents that write directly to the Maildir, etc.? I know that the courier mail system doesn't cause this kind of problem, but quite a few people are using just courier-imap in combination with something else (qmail in my case). Isn't it important to stick to the Maildir spec for interoperability? Perhaps an easy fix would be to add a bit of sanitizing code that would append a newline to messages that lack one? (I'm not a developer so feel free to flame if that's a dumb idea)


Chris Berry
[EMAIL PROTECTED]
Systems Administrator
JM Associates

"Linux and I have a love/hate relationship. I hate its complexity until I figure out how something works, then I love its power."

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to