<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br><br><div><div id="SkyDrivePlaceholder"></div><br>> Oh, if you've already moved the mailbox and the seen file hasn't<br>> been moved yet... yeah, that's messy :(<br>> <br>> The main problem is that the seen file is indexed by UNIQUEID<br>> rather than mailbox name, otherwise you could just copy-paste<br>> the sequence out and run<br>> <br>> TAG UID STORE <paste> +Flags \Seen<br>> <br>> via IMAP after selecting each folder.<br>> <br>> But I suspect you have hundreds of these folders? You can get<br>> the UNIQUEID from the cyrus.header file to script it. You can<br>> use cyr_dbtool from the new cyrus to dump the file and then<br>> use perl or something to munge the data. NOTE: you need to be<br>> able to log in to imap as the user themselves, otherwise you'll<br>> be setting the wrong seen flags.<br>> <br>> Possible cheap-n-nasty workaround is to use an admin connection<br>> and switch each mailbox to sharedseen, apply the flags, then<br>> switch it back.<br><br>To be clear, here is my scenario;<br><br>I have 8000 user accounts, 40+Gigs of email on a 2.1.17 server. They all seem to be using .seen files stored in /var/lib/imap/user/u/user.seen files. The mailspool is in /var/spool/imap/u/user/user<br><br>If I copy the contents of /var/lib/imap/user/[a-z]/* and /var/spool/imap/[a-z]/* to a new server, create accounts beforehand on the new server, then reconstruct -r -f each account, on a 2.3.16 installation this works. I continue to read the .seen files as I am learning that this mecanism was still present in 2.3.x<br><br>If I do this on a 2.4.13 server, however, the seen data is lost.<br><br>Perhaps I have to upgrade to 2.3 first and then to 2.4?<br><br>Ron<br></div>                                            </div></body>
</html>