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
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/