On Wed, Jul 1, 2020 at 9:03 PM Oswald Buddenhagen <oswald.buddenha...@gmx.de>
wrote:

> On Sun, Jun 14, 2020 at 09:24:52AM +0530, Aneesh Kumar wrote:
> >I have a config where marking files read via thunderbird directly on
> >the IMAP server doesn't get reflected once I run mbsy[n]c.
> >
> a quick attempt to reproduce this was unsuccessful.
> which version of mbsync are you running?
>
> i'd probably start with the -D output of the working and non-working
> configuration.
>

Ok, i tried to recreate this again and I can't. Now I am wondering whether
this could be a mail indexer bug.
So my setup has got my INBOX and mailing list mails in two different
folders. ie, I could have mails with
the same message-id in two different folders. So if indexer picked the
mailing list file for indexing, marking the mail
on my private email which I received with the same message-id won't get
reflected I guess. Because the indexer
is now looking at a different Maildir location for indexing the read flag.

I am still not sure what made the below config change work.

Sync PullNew PullFlags PullRenew PushFlags PushRenew
Expunge Both


> >Without the Expunge the read/unread flags are not synched from the
> >master to slave. The reverse works though.
> >
> have you tested what the respective effects of one-sided expunges are?
>
> have you tried whether there is a difference between specifying the
> options in the config file and on the command line?
>
> >I am wondering whether the OPEN_FLAG should be set outside EXPUNGE too?
> >
> did you actually try that? did it work?
>


I didn't try this.


>
> On Sun, Jun 14, 2020 at 12:40:48PM +0200, Oswald Buddenhagen wrote:
> >i'm not entirely sure yet (i wrote this code a long time ago, and the
> >logic is quite convoluted ...), but i think in the OPEN_SETFLAGS branch
> >it should do OPEN_OLD|OPEN_FLAGS.
> >
> turns out that this is wrong - maildir_set_msg_flags() will work just
> fine without OPEN_FLAGS. there is in fact a bug, but it's unlikely to
> actually affect anyone (despite trying, it wouldn't actually set flags
> on messages which don't have a :2, part yet - which in practice appear
> to be exactly none).
>


Sorry for the noise. I will come back with more testing and update if I
observe this again. I have now moved my config back to
Expunge None and not specifying  Sync config line.

-aneesh
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to