[Dovecot] Is it possible to save only some messages compressed to mdbox? (2.1.6)
I'm trying to save some messages as compressed (via zlib plugin) and it doesn't seem to work.
Here's a log line (I'm logging to stderr):
d k 1345467448.705591500 1345467448.705596500 1345467448.974808500 1650 XXXXXXXXXXXXXXXXXXXXXXXXXX@YYY.ruhr-uni-bochum.de local.jost.krieger+hirn@ruhr-uni-bochum.de 10909 80 Extra: -o plugin/zlib_save_level=9 -o plugin/zlib_save=bz2 lda(kriegjcb): Info: msgid=20120820125728.58CC9172B6C@c2-4-7.noc.ruhr-uni-bochum.de: saved mail to Hirn-2012-08 did 0+0+1
This probably doesn't make much sense to anyone except the last line but 1. It is a somewhat complicated qmail/maildrop/dovecot setup, which works for the standard cases. The Extra gets interpolated into the lda command and this works because an incorrect option blows up the delivery.
The mails arrive uncompressed.
So here's the questions:
- Is it possible to have compressed/uncompressed mails mixed in an mdbox?
- Will it work via "-o" in lda delivery?
I tried to find out in the source but found it hard to see which options are pulled in when.
Thanks Jost Krieger
| Helft Spam ausrotten! HTML in Mail ist unhöflich. | | Postmaster, JAPH, manchmal Wahrsager am RZ der RUB | | Wahre Worte sind nicht gefällig, gefällige Worte sind nicht wahr.| | Lao Tse, Tao Te King 81 |
On 20.8.2012, at 16.06, Jost Krieger wrote:
So here's the questions:
- Is it possible to have compressed/uncompressed mails mixed in an mdbox?
Yes. Compression is detected on a per-mail basis.
- Will it work via "-o" in lda delivery?
I tried to find out in the source but found it hard to see which options are pulled in when.
-o can override all settings that are handled by the running process itself, so yes that includes compression stuff.
On Thu, Aug 23, 2012 at 11:08:38PM +0300, Timo Sirainen wrote:
On 20.8.2012, at 16.06, Jost Krieger wrote:
So here's the questions:
- Is it possible to have compressed/uncompressed mails mixed in an mdbox?
Yes. Compression is detected on a per-mail basis.
- Will it work via "-o" in lda delivery?
I tried to find out in the source but found it hard to see which options are pulled in when.
-o can override all settings that are handled by the running process itself, so yes that includes compression stuff.
Thank you for all your help, but I just can't get it to work.
What I have now: For some mailboxes I pt extra parameters in the delivery command (via maildrop):
EXTRACOMPRESS="-o debug_log_path=/tmp/lda-debug-log -o mail_debug=yes -o plugin/zlib_save_level=9 -o plugin/zlib_save=bz2"
These parameters do arrive in lda:
- Logging works.
- If I replace plugin/zlib_save_level=9 with plugin/zlib_save_level=10 I get the correct error message from the zlib plugin.
There are no problems in the logs and the mails arrive safely. There is just no compressed material in my mdbox storage files.
Yours Jost Krieger
| Jost.Krieger+sig@ruhr-uni-bochum.de Please help stamp out spam! | | Postmaster, JAPH, resident answer machine at RUB Comp. Center | | Sincere words are not sweet, sweet words are not sincere. | | Lao Tse, Tao Te King 81 |
participants (2)
-
Jost Krieger
-
Timo Sirainen