[exim-dev] [Bug 1055] New: Patch: Update message_linecount a…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Mark Zealey
Dátum:  
Címzett: exim-dev
Új témák: [exim-dev] [Bug 1055] Patch: Update message_linecount after appendfile delivery, [exim-dev] [Bug 1055] Patch: Update message_linecount after appendfile delivery, [exim-dev] [Bug 1055] Patch: Update message_linecount after appendfile delivery
Tárgy: [exim-dev] [Bug 1055] New: Patch: Update message_linecount after appendfile delivery
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1055
           Summary: Patch: Update message_linecount after appendfile
                    delivery
           Product: Exim
           Version: 4.71
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: String expansion
        AssignedTo: nigel@???
        ReportedBy: mark.zealey@???
                CC: exim-dev@???



Created an attachment (id=437)
--> (http://bugs.exim.org/attachment.cgi?id=437)
Patch to provide accurate $message_linecount variable in maildir_tag

In the same way as you have a special case for $message_size in the maildir_tag
expansion (appendfile transport) to create the ,S= tag, the attached patch
provides updates for the $message_linecount to be updated enabling exim to
correctly calculate a ,W= tag for dovecot (to provide a RFC822.SIZE variable
without having to re-read the message). This has been requested before:

http://lists.exim.org/lurker/message/20070321.005729.4d87fd38.en.html
http://www.mail-archive.com/exim-users@exim.org/msg22446.html

and is possible to reasonably accurately approximate. However because of the
variable number of headers that get added within our router section and the
variable number of envelope-to's that get added in the transport, it's
impossible to come up with a correct ${eval: expression in maildir_tag. With
the attached patch, the following is sufficient (assuming use_crlf is NOT set):

maildir_tag = ,S=$message_size,W=${eval:$message_size+$message_linecount+1}

I'm not sure about whether the use_bsmtp case is required; if not it would
simplify the code somewhat.

Mark


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email