You're right, I should have included my config in the original message. Sorry.
Here it is: ==================== IMAPAccount O365 Host 127.0.0.1 #I use davmail to connect to my work O365 server and so I connect to a service running locally Port 1143 User someuser PassCmd "someGPGcommand" SSLType None AuthMechs Login #PipelineDepth 1 Timeout 0 SyncState * Sync All Expunge Both IMAPStore O365-remote Account O365 PathDelimiter / MaildirStore O365-local Path ~/Maildir/O365/ Inbox ~/Maildir/O365/INBOX SubFolders Verbatim Channel O365-trash Master :O365-remote:"Deleted Items" Slave :O365-local:"Trash" Channel O365-inbox Master :O365-remote:"INBOX" Slave :O365-local:"INBOX" Channel O365-drafts Master :O365-remote:"Drafts" Slave :O365-local:"Drafts" Channel O365-sent Master :O365-remote:"Sent" Slave :O365-local:"Sent" Create Slave Channel O365-archive Master :O365-remote:"Archive" Slave :O365-local:"Archive" Create Slave Channel O365-all Master :O365-remote: Slave :O365-local: Patterns INBOX Archive Drafts Sent Junk Sent Trash Create Slave ==================== When I run mbsync, I typically run it against the "O365-all" channel noted above. If I need to only sync up the archive after making changes to the .mbsyncstate file under Archive as described in my original message, I run mbsync against the "O365-archive" channel only to pull down messages that may have been lost. I explicitly specify Patters in my "O365-all" channel because I have plenty of other maildirs both locally and on the server side that I no longer wish to sync against. I've had this config in place for at least a year if not longer and it has worked for the most part. The only issue being the occasional loss of messages locally and the need to re-sync I'm unable to reproduce the actual instance when messages disappear locally. I just know this happens and I notice it in my client (I use emacs + mu4e ) when, for example, I'm trying to search for an older email exchange and either don't find it at all or only find a few messages from an email thread I'm trying to locate. The messages I'm looking for are always available via O365 web in these instances, so I know they are there on the server side. I also see the total email count of my maildirs drop significantly when this happens. At which point, I change the MaxPulledUid value in the state file and re-sync to get my messages back down locally so I can view the emails via my preferred client. Thanks. On Tue, Feb 11, 2020 at 4:06 PM Oswald Buddenhagen < oswald.buddenha...@gmx.de> wrote: > On Tue, Feb 11, 2020 at 12:37:46PM -0500, Andy W wrote: > >Every few weeks, I notice that messages in my Archive > >maildir have been removed locally. > > > with the information you provided there is no way to tell what goes > wrong, and your messing around in the state file without understanding > the underlying issue sounds like a recipe for disaster. > > for starters i'd need to see your config file. if there is nothing > obviously wrong with it, i'd need to see the -D output of an actual run > that makes messages disappear. > > > _______________________________________________ > isync-devel mailing list > isync-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/isync-devel >
_______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel