Paul Kudla already suggested setting fetch intervals and to avoid microsoft clients.

You can debug the issue with tcpdump like this:

# tcpdump -X -s100 -nni lo0 port 143

(replace lo0 for lo, eth0 or the name of your interface)

disable all clients, enable the one you want to debug/see the commands.

me deleting a message and client issuing the command:

14:40:17.386079 127.0.0.1.48376 > 127.0.0.1.143: P 1410:1437(27) ack 177507 win 256 <nop,nop,timestamp 1610013520 2861364932> (DF)
......(REDACTED)
  0030: aa8c f6c4 3131 3120 7569 6420 6d6f 7665  ....111 uid move
  0040: 2034 3732 3920 2254 7261 7368 220d 0a     4729 "Trash"..

14:40:17.486259 127.0.0.1.143 > 127.0.0.1.48376: P 177507:177624(117) ack 1437 win 256 <nop,nop,timestamp 2861364932 1610013520> (DF)
......(REDACTED)
  0030: 5ff6 db50 2a20 4f4b 205b 434f 5059 5549  _..P* OK [COPYUI                                                                                   
  0040: 4420 3136 3830 3237 3234 3630 2034 3732  D 1680272460 472
  0050: 3920 3132 365d 204d 6f76 6564 2055 4944  9 126] Moved UID


Cheers, x9p

On 6/14/23 17:19, Michael Grant wrote:

Yes, I’m the sole person responsible for messing this up.   My Linux machine, my server, I installed it, I configured it, perhaps I caused this....

 

It could be some misbehaving imap client that is causing this, that’s one of the things I’m trying to understand.  I don’t see any errors in the mail log which is where dovecot logs to.  All the clients are as up to date as possible.

 

One way forward that I know of is to remove all the imap clients and start over, adding one by one seeing if it starts breaking again.  I was hoping first to see if I could figure out what’s gone wrong before doing this.

 

From: dovecot@x9p.org
Sent: 14 June 2023 18:05
To: Michael Grant; dovecot@dovecot.org
Subject: Re: imap syncing issues

 

The issue seems to be with the clients (an update maybe?), not the server.

do you have console/root access to dovecot and files?

On 6/14/23 11:17, Michael Grant via dovecot wrote:

I’m having synchronization issues in imap.  I am accessing my mail from several different imap clients: K9 on Android, Windows 11 and 10 mail client, and Android Gmail app.  Both desktop and laptop, tablet, phone.  I know I have more than the usual number of imap connections...

 

Often when I delete a message in one place, it doesn’t get deleted in another.  For example, if I delete a message on K9 then open my laptop, it’s still there in W11 Mail.  But just now, I deleted some messages on my laptop and swiped down on K9 and the message disappeared on K9.  But K9 shows other messages which have been deleted in Windows 11 Mail.  I’ve not yet been able to figure out a pattern.  It’s annoying me.  I have to delete messages in several different places.  Messages not coming back, they’re just not being deleted in one place and that delete operation is not syncing to the others. 

 

Messages seem to be being marked as read properly across devices.  This seems to be an issue with delete only, so far as I’ve noticed.

 

I’ve long been using multiple imap clients, this syncing issue started maybe 6 to 8 months ago.

 

Is there a good way to get debugging info out of dovecot as to what the clients are doing? 

 

Or does anyone have any advise which might help resolve this without resorting to me digging into the imap protocol?

 

Michael Grant



_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-leave@dovecot.org