[Dovecot] Converting old emails to compressed format
Hello,
I know this question has already been asked, but I would really like a solution here as I tried all I could find on the wiki or mail archives I am now running dovecot 2.2.12 Compression works fine for new mails, so zlib works Mails are currently stored using dbox
So I tried for testing dsync -D -v mirror -u user -m Archives dbox:~/temp dsync -o "plugin/zlib_save=xz" -D -v mirror -u user -m Archives dbox:~/temp dsync -o "plugin/zlib_save=" -D -v mirror -u user -m Archives dbox:~/temp dsync -o "plugin/zlib_save=" -D -v mirror -u user -m Archives maildir:~/temp dsync -o "plugin/zlib_save=xz" -D -v mirror -u user -m Archives maildir:~/temp
And also converting again those maildir messages to dbox (just in case it wouldn't work from dbox format) And also with backup instead of mirror
None of this actually works, mails are indeed copied, but not compressed
So I am wondering if there is a way to compress those mails?
Thank you
Hi,
On Fri, Feb 28, 2014 at 12:18 AM, Renaud Allard <renaud@allard.it> wrote:
I know this question has already been asked, but I would really like a solution here as I tried all I could find on the wiki or mail archives I am now running dovecot 2.2.12 Compression works fine for new mails, so zlib works Mails are currently stored using dbox
So I tried for testing dsync -D -v mirror -u user -m Archives dbox:~/temp dsync -o "plugin/zlib_save=xz" -D -v mirror -u user -m Archives dbox:~/temp dsync -o "plugin/zlib_save=" -D -v mirror -u user -m Archives dbox:~/temp dsync -o "plugin/zlib_save=" -D -v mirror -u user -m Archives maildir:~/temp dsync -o "plugin/zlib_save=xz" -D -v mirror -u user -m Archives maildir:~/temp
And also converting again those maildir messages to dbox (just in case it wouldn't work from dbox format) And also with backup instead of mirror
None of this actually works, mails are indeed copied, but not compressed
So I am wondering if there is a way to compress those mails?
I'm now facing the same issue with 2.2.13. zlib is working for new mails but as opposed to some information I found dsync (backup) does not convert old mails to compressed. For example this post suggests that it should happen: http://thr3ads.net/dovecot/2013/07/2663810-dsync-backup-mails-compressed and also some Dovecot book also states to convert the mailbox just use dsync backup after zlib is enabled. Still I'm not able to make it work.
Any hints?
Thanks, Wolfgang
Hello Wolfgang,
On 29.07.2014 16:58, Wolfgang Rosenauer wrote:
I'm now facing the same issue with 2.2.13. zlib is working for new mails but as opposed to some information I found dsync (backup) does not convert old mails to compressed. For example this post suggests that it should happen: http://thr3ads.net/dovecot/2013/07/2663810-dsync-backup-mails-compressed and also some Dovecot book also states to convert the mailbox just use dsync backup after zlib is enabled. Still I'm not able to make it work.
You have to set the compression type with the zlib_save option.
i.e.: "-o plugin/zlib_save=gz"
Regards
Christian
Hi Christian,
On Tue, Jul 29, 2014 at 5:13 PM, Christian Rohmann <crohmann@netcologne.de> wrote:
You have to set the compression type with the zlib_save option.
i.e.: "-o plugin/zlib_save=gz"
been there: dsync -o plugin/zlib_save=gz backup -u testy maildir:/srv/dovecot/testy/maildir.new
doesn't make a difference unfortunately. My mailboxes are in maildir format and besides enabling zlib I do not change the format. My testmailbox has only one message but this still is uncompressed after dsync.
Where is Peer who wrote in his book that this should just work?
Thanks, Wolfgang
Am 29.07.2014 um 17:22 schrieb Wolfgang Rosenauer:
Hi Christian,
On Tue, Jul 29, 2014 at 5:13 PM, Christian Rohmann <crohmann@netcologne.de> wrote:
You have to set the compression type with the zlib_save option.
i.e.: "-o plugin/zlib_save=gz"
been there: dsync -o plugin/zlib_save=gz backup -u testy maildir:/srv/dovecot/testy/maildir.new
doesn't make a difference unfortunately. My mailboxes are in maildir format and besides enabling zlib I do not change the format. My testmailbox has only one message but this still is uncompressed after dsync.
Where is Peer who wrote in his book that this should just work?
Thanks, Wolfgang
perhaps its a version bug, is see, i have to test it my own for verify
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
On 29 Jul 2014, at 18:22, Wolfgang Rosenauer <wrosenauer@gmail.com> wrote:
Hi Christian,
On Tue, Jul 29, 2014 at 5:13 PM, Christian Rohmann <crohmann@netcologne.de> wrote:
You have to set the compression type with the zlib_save option.
i.e.: "-o plugin/zlib_save=gz"
been there: dsync -o plugin/zlib_save=gz backup -u testy maildir:/srv/dovecot/testy/maildir.new
doesn't make a difference unfortunately. My mailboxes are in maildir format and besides enabling zlib I do not change the format. My testmailbox has only one message but this still is uncompressed after dsync.
Where is Peer who wrote in his book that this should just work?
Maybe it's trying to copy the mails by hard linking instead of physically copying the data. See if -o maildir_copy_with_hardlinks=no helps?
On Fri, Aug 1, 2014 at 4:13 PM, Timo Sirainen <tss@iki.fi> wrote:
On 29 Jul 2014, at 18:22, Wolfgang Rosenauer <wrosenauer@gmail.com> wrote:
been there: dsync -o plugin/zlib_save=gz backup -u testy maildir:/srv/dovecot/testy/maildir.new
doesn't make a difference unfortunately. My mailboxes are in maildir format and besides enabling zlib I do not change the format. My testmailbox has only one message but this still is uncompressed after dsync.
Maybe it's trying to copy the mails by hard linking instead of physically copying the data. See if -o maildir_copy_with_hardlinks=no helps?
That's it indeed. I haven't thought about hardlinks but with that option the mails actually get compressed.
Thanks a lot, Wolfgang
Am 29.07.2014 um 17:13 schrieb Christian Rohmann:
Hello Wolfgang,
On 29.07.2014 16:58, Wolfgang Rosenauer wrote:
I'm now facing the same issue with 2.2.13. zlib is working for new mails but as opposed to some information I found dsync (backup) does not convert old mails to compressed. For example this post suggests that it should happen: http://thr3ads.net/dovecot/2013/07/2663810-dsync-backup-mails-compressed and also some Dovecot book also states to convert the mailbox just use dsync backup after zlib is enabled. Still I'm not able to make it work.
You have to set the compression type with the zlib_save option.
i.e.: "-o plugin/zlib_save=gz"
Regards
Christian
thx for info i missed that
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Am 29.07.2014 um 16:58 schrieb Wolfgang Rosenauer:
I'm now facing the same issue with 2.2.13. zlib is working for new mails but as opposed to some information I found dsync (backup) does not convert old mails to compressed.
i guess this is by design, perhaps a "-force" should be introduced
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
participants (5)
-
Christian Rohmann
-
Renaud Allard
-
Robert Schetterer
-
Timo Sirainen
-
Wolfgang Rosenauer