Hi Jay,

I'm only an occasional reader of this list so just catching up!

I think I solved a similar problem in this thread in 2025:
https://cyrus.topicbox.com/groups/info/Tb45482804665ba7a-M99e4f9cfdb42f44adc4d95e5

I'm not sure if you're still trying to solve this problem but let me know if it's of any use. I'm happy to help where I can.



On 2026-06-30 21:25, Jay Sekora wrote:
On Tue, Jun 30, 2026 at 03:06:19PM -0400, Bron Gondwana via Info wrote:
Ahh, for her own mailboxes, the seen state isn't stored in the seen
database, it's stored in the system flags inside cyrus.index.

Ah! That's what I was confused about, and that makes this process a LOT
easier than I feared!

That's a little more painful to read unless you know the cyrus.index format.

Yeah, but it avoids (I hope) the entire problem of needing to
 parse/convert the database format!  I created a new empty folder for
the
restore, rsync'ed the restored contents (including the cyrus.* files),
 and "reconstruct"'ed the folder!  I don't have an easy way to test, but
if
 the owner's seen/unseen state (like other flags but unlike other
people's
seen/unseen state for the same folder) is actually in cyrus.index, then
 "reconstruct" should have picked all that information up for her from
the
 cyrus.index file restored from tape along with the messages!  That's
what
I'd hope but I sent myself down a rabbit hole thinking *everybody's*
seen/unseen state (not just non-owners) was stored outside the folder
directory itself.

(We'd gotten bitten by that when we migrated from the previous server,
but we did that by using "imapsync", and running it as the "cyrus"
user rather than the user whose mail was being migrated, which was
my fatal mistake.  Would have been a lot better to just migrate the
folder-tree disk structure but there was a *lot* of database corruption
on the old server.  So anyway I was conflating a couple of unrelated
problems I'd been bitten by.)

Thanks!

Jay


--
[email protected]
http://www.ashurst.eu.org/
http://www.gonumber.com/andyjpb
0x7EBA75FF

------------------------------------------
Cyrus: Info
Permalink: 
https://cyrus.topicbox.com/groups/info/T643419685ae5113c-M0ecf6f42653567d0c372897b
Delivery options: https://cyrus.topicbox.com/groups/info/subscription

Reply via email to