[Dovecot] maildir format

DINH Viêt Hoà dinh.viet.hoa at free.fr
Wed May 3 14:37:49 EEST 2006


On 03 May 2006, at 12:25, Timo Sirainen wrote:

> On Wed, 2006-05-03 at 03:17 +0200, DINH Viêt Hoà wrote:
>>      Hello Timo and other dovecot-dev or users,
>>
>>    It looks like Dovecot accepts (with APPEND command) messages that
>> begins
>> with 'From[SPACE]' line, which are not valid from RFC 2822 point of
>> view.
>> Additionnally, Dovecot will store them as they are APPENDed, I mean
>> with the starting 'From[SPACE]' line, which generates a bad Maildir
>> format.
>
> The alternative would be to fail the operation completely. I don't see
> that as very good idea.
>
>> 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.
>
> Here the "could contain arbitrary binary data" looks to me like there
> aren't really any restrictions as to what the message could contain,
> including a From-line at the beginning :).
>

You could combine both :
accepting mails with 'From[SPACE]' and stripping this line while  
storing the mail.
(And by the way, I should accept Maildir messages with 'From[SPACE]'  
at the beginning ;) )

-- 
DINH Viêt Hoà



More information about the dovecot mailing list