MBOX-Line: From brong at fastmail.fm  Fri Oct 25 18:10:18 2013
To: imap-protocol@u.washington.edu
From: Bron Gondwana <brong@fastmail.fm>
Date: Fri Jun  8 12:34:51 2018
Subject: [Imap-protocol] Mac OS 10.9 particularly buggy implementation of
	IMAP
Message-ID: <1382749818.11252.38686053.54FA9CC9@webmail.messagingengine.com>

Is anyone else seeing particularly bad IMAP behaviour from the new Mac OS?  Here's a lovely one from a user who keeps copying messages into the Junk Mail folder over and over:

<1382743710<4<1382743710<4.18 SELECT "INBOX.Junk Mail" (CONDSTORE)
>1382743711>* OK [CLOSED] Ok
* 79 EXISTS
* 0 RECENT
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen $X-ME-Annot-2 $IsMailingList $IsNotification $HasAttachment $HasTD $Junk $NotJunk $X
-ME-Annot-1 JunkRecorded hasatt Junk $MailFlagBit1 $MailFlagBit2 NotJunk hasnoatt hasnotd Forwarded $Forwarded)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $X-ME-Annot-2 $IsMailingList $IsNotification $HasAttachment $HasTD $Jun
k $NotJunk $X-ME-Annot-1 JunkRecorded hasatt Junk $MailFlagBit1 $MailFlagBit2 NotJunk hasnoatt hasnotd Forwarded $Forwarded \*)] Ok
* OK [UNSEEN 1] Ok
* OK [UIDVALIDITY 1318456612] Ok
* OK [UIDNEXT 3361070] Ok
* OK [HIGHESTMODSEQ 213636] Ok
* OK [URLMECH INTERNAL] Ok
* OK [ANNOTATIONS 65536] Ok
44.18 OK [READ-WRITE] Completed
<1382743711<4<1382743711<5.18 FETCH 1:* (FLAGS UID MODSEQ) (CHANGEDSINCE 213634)
>1382743711>45.18 OK Completed (0.000 sec)
<1382743713<4<1382743713<6.18 IDLE
>1382743713>+ idling
<1382743713<D<1382743713<ONE
>1382743713>46.18 OK Completed
<1382743713<4<1382743713<7.18 CHECK
>1382743713>47.18 OK Completed
<1382743713<4<1382743713<8.18 UID COPY 3360991:3361069 "INBOX.Junk Mail"
>1382743714>* 158 EXISTS
* 79 RECENT
48.18 OK [COPYUID 1318456612 3360991:3361069 3361070:3361148] Completed

They've had 2 million messages in that mailbox over the past couple of week, using pre-release and then released 10.9.

(there's another interesting pattern, it appears to send the 'D' of 'DONE' in a separate packet when finishing IDLE... no idea why.  I've never seen DONE split over two reads before)

We've also had users reporting regular bugs in the interface, like turning off "store sent items on server" not working, and the "\Archive" folder not appearing in the GUI, but that's not IMAP protocol territory.

...

I've also seen this lovely pattern on Mail.app sessions while debugging today:

<1382690260<229.12 UID STORE 588201 +FLAGS.SILENT ($Junk Junk JunkRecorded)
>1382690260>229.12 OK Completed
<1382690260<230.12 UID STORE 588201 -FLAGS.SILENT ($NotJunk NotJunk)
>1382690260>230.12 OK Completed
<1382690260<231.12 UID EXPUNGE 588201
>1382690260>231.12 OK Completed
<1382690260<232.12 UID STORE 588201 +FLAGS.SILENT (\Deleted)
>1382690260>232.12 OK Completed

Unsurprisingly, this doesn't actually lead to the message being expunged.

Bron.

-- 
  Bron Gondwana
  brong@fastmail.fm

