[Exim] Re: Exim Maildir RFC 2822 compliant ?

Página Inicial
Delete this message
Reply to this message
Autor: Miquel van Smoorenburg
Data:  
Para: exim-users
Assunto: [Exim] Re: Exim Maildir RFC 2822 compliant ?
In article <1022828394.2200.4.camel@???>,
Nigel Metheringham <Nigel.Metheringham@???> wrote:
>On Fri, 2002-05-31 at 05:45, Tom Samplonius wrote:
>> In fact, it would be nice if maildir POP servers ate the From_ line,
>> just like a mbox POP server would, to ensure that the POP client is given
>> a RFC822/2822 compliant message.
>
>Maybe but thats a hack round a line that should never have been in the
>maildir message anyway. Additionally, if you do this you also then have
>to open up each message file when scanning the maildir so you can check
>for a leading From_ line and reduce the reported message size by that
>line's length..... ugh


You have to do that anyway, since the size you have to report is
the size "on the wire", i.e. with LF converted to CRLF.

A fast way to do this is to store the number of lines in the message
in the header as Lines:, open the message, scan just the headers,
then report the size as CRLF size of the headers + body size + lines_value

That is what my custom maildir pop server does. It's pretty quick
and absolutely accurate.

BTW, other than with IMAP, most if not all POP3 clients don't
really care about the exact size.

Mike.