Hello Lars,

On 2025-03-28 17:07, Lars Kotthoff <[email protected]> writes:

>  have you made any progress on this? I'm also interested in a
>  solution.

Unfortunately I’ve had to let this project languish for a while, so I
have nothing to report.

> I looked into the mbsync state, and it seems that if you have it create the 
> state files in the respective directories with
> SyncState *
> in the definition of the channel and then rsync the files with something like
> rsync -qav --include='*/' --include='.mbsyncstate' --include='.uidvalidity' 
> --exclude '.notmuch' --exclude='*' <server>:.mail/ .mail/
> it should work... apart from muchsync not synchronizing file names.
>
> I've had a go at that and patched the muchsync source to do that at 
> https://github.com/larskotthoff/muchsync/
> I've tested it with the notmuch mailing list archives and it worked fine for 
> the 
> ~35k mails. With the exception of one mail file, which for reasons that I 
> don't 
> understand yet was synced with a different file name. This is for a message 
> ID 
> that has 3 corresponding files; the other 2 file names were synced without 
> problem.
>
> I haven't tested this "in production" yet. I've reached out to David, but 
> haven't heard anything back yet. There are almost certainly ramifications of 
> these changes that I haven't considered, but if somebody is feeling 
> adventurous 
> and would like to give this a shot, I'd be grateful for any feedback.

This is an interesting approach. I won’t have much time in the near
future, but I’m keeping a bookmark to your message. Thank you for the
suggestion!

Alan

Attachment: signature.asc
Description: PGP signature

_______________________________________________
notmuch mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to