Jesse Cablek writes:

Sam Varshavchik wrote:
Jason R. Mastaler writes:

No. Whatever's delivering mail to your maildirs is apparently failing to append the trailing newline character after the last line of the message.


That is right Sam, they aren't appending a newline, but they don't need to:


THE MAILDIR STRUCTURE
        [...]

        Each  file  in new is a newly delivered mail message.  The
        modification time of the file is the delivery date of  the
        message.   The message is delivered without an extra UUCP-
        style From_ line, without any >From quoting,  and  without
        an  extra  blank line at the end.  The message is normally
        in RFC 822 format, starting with a Return-Path line and  a
        Delivered-To  line,  but it could contain arbitrary binary
        data.  It might not even end with a newline.

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.




-------------------------------------------------------
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