Re: [exim] Get original message_size before transport_filter

Góra strony
Delete this message
Reply to this message
Autor: Jeremy Harris
Data:  
Dla: exim-users
Temat: Re: [exim] Get original message_size before transport_filter
On 22/12/14 00:03, Robert Blayzor wrote:
> I have the following transport I'm using to try to work with message compression on Maildir store.
>
> All seems to work ok, things get compressed, but Maildir file gets the size (S=) POST filter.
>
> While it's compressed on disk, the uncompressed version is used on the mail client/MUA side.
>
>
> maildir_tag = ,S=$message_size,W=${eval:$message_size + $message_linecount + 1}
> transport_filter = /usr/bin/xz
>
>
>
> Is there a way to get the $message_size BEFORE the transport_filter?


Copy it to a per-message variable in your data ACL

> Transport filter seems to modify the size to the actual new size


Yes, the documentation even points this out specifically.
--
Cheers,
Jeremy