antispam plugin pipe backend error when moving multiple emails

2015-11-08 Thread Stéphane Cottin
Hi,

I've got some trouble with the dovecot antispam plugin and the pipe backend.

I'm using dovecot 2.2.18 with maildirs and zlib compression enabled.

When moving 2 or more emails at once from the Junk folder to another one, I 
always have the following error : "Failed to copy to temporary file"

In the server logs : 

imap(v...@vvv.vvv): Error: 
read(zlib(/data/Maildir/.test/tmp/1446974366.M123890P936.vvv)) failed: Cached 
message size smaller than expected (13553 < 13562, box=test, UID=0)

The same operation with one email at a time, on the same emails, works as 
expected.

Stéphane

Dsync problems

2015-11-08 Thread Frank de Bot (lists)
Hi,

I'm setting up a migration between 2 dovecot servers 2.1.12 to 2.2.19 .
I've ran into some issues with dsync.

I use the following command for syncing:

doveadm -o mail_fsync=never -o imapc_host=%remote% -o
imapc_master_user=master -o imapc_password=%masterpw% -o
imapc_features="rfc822.size fetch-headers" -o mail_prefetch_count=20 -o
imapc_user=%user% backup -1 -R -u %user% imapc:

I execute a full sync first and when the mailserver are being migrated
it only would have to do incremental. The first is run is without problems.
But I find the following problem:

- Flags on current mails aren't updated. If I set message to unread, the
sync won't pick them up.
- On the origin dovecot server I had removed some messages and purged
the inbox. Those message are now in the Trash and are created again and
again when I sync

Is this normal behaviour? It renders it pretty much useless since data
consistency isn't guaranteed.


Regards,

Frank de Bot