Hello all,

I'm having some trouble with duplicated emails using mbsync. The relevant mailserver is MicroSoft Exchange with IMAP/SMTP disabled, so I'm using davmail [1] to access the server. I then run mbsync on localhost to obtain the messages through davmail.

This works fine, but after moving messages out of the inbox (e.g. to the trash or an archive folder) messages periodically are duplicated. Every time mbsync is run, the message is reduplicated. Deleting the message ends the problem (i.e. it doesn't propagate to other messages).

The only error message I get is 'Warning: lost track of X pushed message(s)' or '... Y pulled message(s)', depending. Running `mbsync --debug-sync mailbox` has these lines:

   reading sync state /path/to/mail/.mbsyncstate ...
     entry ...
     ...
     entry (0,210,0,FAIL)
     ...
   Opening master box path/to/mail...
   Opening slave box path/to/mail...
   Loading master...
   Loading slave...
   slave: NN messages, 0 recent
   matching messages on slave against sync records
   master: NN messages, 0 recent
   matching messages on master against sync records
   Synchronizing...
   synchronizing old entries
   pair ...
   pair (0,210)
     no master
   ...
   synchronizing new entries
   new message 210 on slave
     -> pair(0,210) exists
     -> updated flags to 8
   synchronizing flags
   propagating new messages
   pushing message 210, TUID Bk3yWiKeg8Sw
   finding just copied messages on master
   expunging slave
   matching just copied messages on master
     pair(0,210): lookup master, TUID Bk3yWiKeg8Sw
     -> TUID lost
   expunging master
   purging obsolete entries
   max expired uid on master is now 0

Any idea what I can do to solve this?

Thanks!

[1]: http://davmail.sourceforge.net/

--
Kyle Barbour                                     Never mind the balrogs.
k...@kylebarbour.org                      |PGP| EA14 063D 969C 1DAA 5F97
(415) 238-9953                            |GPG| 8B00 2188 6871 A960 E276
Rochester, NY                                    https://kylebarbour.org

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to