Bug? xfermailbox seems to be broken but using rename to xfer a mailbox works just fine.

Janne Peltonen janne.peltonen at helsinki.fi
Thu Apr 30 03:55:50 EDT 2009


Hi!

Am I doing something wrong? If I try to do an xfer from one backend to another
on a user, like so,

  xfer user.atest001r m2v3t.mappi.helsinki.fi

I get

Apr 30 10:24:45 m2cn1t m2v1t/imap[3793]: could not dump mailbox in m2v2t.mappi.helsinki.fi (unknown error)
Apr 30 10:24:45 m2cn1t m2v1t/imap[3793]: Could not move mailbox: user.atest001r, dump_mailbox() failed

in my murder frontend log, the command (in cyradm) never returns, and the
mailbox list on the frontend ends gets corrupted, like this:

user.atest001r  1 m2v1t.mappi.helsinki.fi!m2v2t.mappi.helsinki.fi atest001r     lrswipkxtecda   anyone  p

(m2v1t.mappi.helsinki.fi is the murder frontend, the murder backends are
m2v2t.mappi.helsinki.fi and m2v3t.mappi.helsinki.fi, and m2v2t was the original
backend on atest001r).

The mailbox seems to get copied over from one backend to another, but the
contents don't:

[jmmpelto at m2cn1t ~]$ sudo /usr/lib/cyrus-imapd/mbpath -C /etc/imapd.conf.m2v2t.master user.atest001r
/var/spool/imap/m2v2t/a/user/atest001r
[jmmpelto at m2cn1t ~]$ sudo ls -l /var/spool/imap/m2v2t/a/user/atest001r
total 72
-rw------- 1 cyrus mail 6004 Mar 31 16:56 cyrus.cache
-rw------- 1 cyrus mail  182 Mar 31 14:08 cyrus.header
-rw------- 1 cyrus mail 1328 Mar 31 16:56 cyrus.index
-rw------- 1 cyrus mail  573 Mar 31 16:55 1.
-rw------- 1 cyrus mail  573 Mar 31 16:55 10.
-rw------- 1 cyrus mail  574 Mar 31 16:55 11.
-rw------- 1 cyrus mail  573 Mar 31 16:55 12.
-rw------- 1 cyrus mail  574 Mar 31 16:56 13.
-rw------- 1 cyrus mail  573 Mar 31 16:56 14.
-rw------- 1 cyrus mail  573 Mar 31 16:55 2.
-rw------- 1 cyrus mail  573 Mar 31 16:55 3.
-rw------- 1 cyrus mail  573 Mar 31 16:55 4.
-rw------- 1 cyrus mail  573 Mar 31 16:55 5.
-rw------- 1 cyrus mail  573 Mar 31 16:55 6.
-rw------- 1 cyrus mail  573 Mar 31 16:55 7.
-rw------- 1 cyrus mail  573 Mar 31 16:55 8.
-rw------- 1 cyrus mail  573 Mar 31 16:55 9.
[jmmpelto at m2cn1t ~]$ sudo /usr/lib/cyrus-imapd/mbpath -C /etc/imapd.conf.m2v3t.master user.atest001r
/var/spool/imap/m2v3t/a/user/atest001r
[jmmpelto at m2cn1t ~]$ sudo ls -l /var/spool/imap/m2v3t/a/user/atest001r
total 12
-rw------- 1 cyrus mail   4 Apr 30 10:24 cyrus.cache
-rw------- 1 cyrus mail 159 Apr 30 10:24 cyrus.header
-rw------- 1 cyrus mail  96 Apr 30 10:24 cyrus.index

So we end up having a copy of the mailbox on both the original and the new
backend.

If I try to rename a mailbox, everything goes perfectly:

m2v1t.mappi.helsinki.fi> info user.atest002r
{user.atest002r}:
  condstore: false
  duplicatedeliver: false
  lastpop:  
  lastupdate: 31-Mar-2009 16:56:15 +0300
  partition: m2v2t
  server: m2v2t.mappi.helsinki.fi
  sharedseen: false
  size: 8022
m2v1t.mappi.helsinki.fi> rename user.atest002r user.atest002r m2v3t.mappi.helsinki.fi
m2v1t.mappi.helsinki.fi> info user.atest002r
{user.atest002r}:
  condstore: false
  duplicatedeliver: false
  lastpop:  
  lastupdate: 30-Apr-2009 10:31:25 +0300
  partition: m2v3t
  server: m2v3t.mappi.helsinki.fi
  sharedseen: false
  size: 8022

Any ideas? I'm using Cyrus 2.3.13, Simon's RPM revision 4.


--Janne
-- 
Janne Peltonen <janne.peltonen at helsinki.fi> PGP Key ID: 0x9CFAC88B
Please consider membership of the Hospitality Club (http://www.hospitalityclub.org)


More information about the Info-cyrus mailing list