Re: [Exim] Exim Maildir RFC 2822 compliant ?

Top Page
Delete this message
Reply to this message
Author: Mark Hynes
Date:  
To: maillist
CC: exim list
Subject: Re: [Exim] Exim Maildir RFC 2822 compliant ?
On May 30, maillist wrote:
> Hi List,
>
> Recently I have installed exim 3.36 with maildir support. Now, I have similar
> problem (colon missing after From) as described at:
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;Q306838
>
>
> my exim transport looks like:
>
> virtual_localdelivery:
> driver = appendfile
> directory = /email/spool/$domain/$local_part/Maildir/
> maildir_format = yes
> delivery_date_add
> envelope_to_add
> return_path_add
> user = mail
> mode = 0660
>
>
>
> From list@??? Thu May 30 17:11:26 2002
> Return-path: <list@???>
> Envelope-to: user@???
> Delivery-date: Thu, 30 May 2002 17:11:26 +0100
> Received: from web9706.mail.yahoo.com ([216.136.129.241])
> by mail.mydomain.com with smtp (Exim 3.36 #1)
> id 17DSWL-0002BW-00
> for user@???; Thu, 30 May 2002 17:11:26 +0100
> Message-ID: <20020530161436.85344.qmail@???>
> Received: from [202.9.128.7] by web9706.mail.yahoo.com via HTTP; Thu, 30 May
> 2002 09:14:36 PDT
> Date: Thu, 30 May 2002 09:14:36 -0700 (PDT)
> From: list <list@???>
> Reply-To: list@???
> Subject: test
> To: user@???
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii


The "From " line is added by the 'prefix' option of the appendfile
transport. By default it's set to the above, presumably because that's
what mbox uses as a message delimiter. Using maildir, you don't want
it - add the following options to your transport:

prefix = ""
suffix = ""
check_string = ""

('suffix' defaults to a blank line at the end of a message, which again
as you're using a file-per-message format you don't want, and check_string
defaults to escaping any lines that start with "From " - needed by mbox
format)

From http://www.exim.org/exim-html-3.30/doc/html/spec_15.html#IDX1157 :
----
prefix (appendfile)
Type: string, expanded
Default: see below

The string specified here is expanded and output at the start of every message. The default is

prefix = "From ${if def:return_path{$return_path}{MAILER-DAEMON}}\
${tod_bsdinbox}\n"

This line can be suppressed by setting

prefix =

and this is usually necessary when doing batch SMTP deliveries, or delivering into individual files or MBX-format mailboxes.
----

Hope this helps,
Mark.

--
| Mark Hynes           mark.hynes@??? |
| Systems Developer   http://www.uk.easynet.net/ |
| Easynet Ltd   --   a part of Easynet Group plc |