migrating mails between two cyrus servers keeping seen states
Michael Menge
michael.menge at zdv.uni-tuebingen.de
Fri Dec 18 09:12:52 EST 2015
Quoting Marcus Schopen <lists at localguru.de>:
> Am Freitag, den 18.12.2015, 14:09 +0100 schrieb Michael Menge via
> Info-cyrus:
>> Hi,
>>
>>
>> Quoting Marcus Schopen via Info-cyrus <info-cyrus at lists.andrew.cmu.edu>:
>>
>> > Hi,
>> >
>> > I'm planning to move some mailboxes from a cyrus server (2.1.18 - which
>> > is a kind of mail archive) to another one (2.4.17+caldav~beta9-3).
>> > Playing around on a test system with copying a user's mailbox and doing
>> > a following "reconstruct -r" came out with a mailbox without seen states
>> > on read mails on the new system; all mails unread. Normally I move
>> > mailboxes using imapsync to keep states etc., but on a number of really
>> > large mailboxes the initial sync takes days. Any other suggestions than
>> > (slow) imapsync tools?
>> >
>> Befor 2.4.x the seen information was stored in extra files in /var/imap/user
>> Did you copy these files too?
>
> Ah, it's an old Debian system. These files are stored in
> eg. /var/lib/cyrus/user/t/testuser.seen. Where do I have to copy this
> file on the new server to? And there is a testuser.sub in the same dir,
> which contains the subfolders. What about this file?
>
The seen information is now included in the cyrus.* files (i think in
the index file),
but upgrading form an older version with reconstruct should check the
.seen file at
the old location. The location depends on your setting of
configdirectory, fulldirhash
and hashimapspool in impad.conf.
The handling of the sub file has not changed. But you should copy them
to the new server,
if you want to keep the subscription information.
You should check
https://cyrusimap.org/docs/cyrus-imapd/2.4.17/install-upgrade.php
--------------------------------------------------------------------------------
M.Menge Tel.: (49) 7071/29-70316
Universität Tübingen Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung mail:
michael.menge at zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen
More information about the Info-cyrus
mailing list