[dev] Git imp not expunging moved messages
Chuck Hagenbuch
chuck at horde.org
Thu Jan 15 02:08:40 UTC 2009
I have git-imp basically running now. However, messages moved to
another mailbox (either through drag-n-drop, or when deleting a
message + using a trash folder) aren't being expunged.
I traced this down into Imap_Client trying to get back up to speed on
this code, before giving up. Here's a debug trace of what happens when
I delete a message. It does get copied to my trash folder, just not
expunged from my inbox.
S (1231984739.1414): * OK Dovecot ready.
C (1231984739.1417): [SASL-IR AUTHENTICATE Command]
S (1231984739.1502): 1 OK Logged in.
C (1231984739.168): 2 SELECT "INBOX"
S (1231984739.1688): * FLAGS (\Answered \Flagged \Deleted \Seen \Draft
NotJunk $NotJunk JunkRecorded $Junk Junk NonJunk $Forwarded)
S (1231984739.1693): * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted
\Seen \Draft NotJunk $NotJunk JunkRecorded $Junk Junk NonJunk
$Forwarded \*)] Flags permitted.
S (1231984739.1697): * 5 EXISTS
S (1231984739.1698): * 0 RECENT
S (1231984739.1699): * OK [UIDVALIDITY 1096329616] UIDs valid
S (1231984739.17): * OK [UIDNEXT 383845] Predicted next UID
S (1231984739.1701): 2 OK [READ-WRITE] Select completed.
C (1231984739.1965): 3 UID COPY 383844 "Trash"
S (1231984739.206): 3 OK Copy completed.
C (1231984739.2062): 4 UID STORE 383844 +FLAGS.SILENT (\deleted)
S (1231984739.208): 4 OK Store completed.
C (1231984739.2106): 5 UID SEARCH CHARSET US-ASCII DELETED NOT UID 383844
S (1231984739.2111): * SEARCH
S (1231984739.2113): 5 OK Search completed.
C (1231984739.2115): 6 UID STORE 1:* -FLAGS.SILENT (\deleted)
S (1231984739.2124): 6 OK Store completed.
C (1231984739.2127): 7 UID SORT (ARRIVAL) US-ASCII ALL
S (1231984739.2132): * SORT 383772 383771 383776 383843 383844
S (1231984739.2135): 7 OK Sort completed.
C (1231984739.2136): 8 EXPUNGE
S (1231984739.214): 8 OK Expunge completed.
C (1231984739.2166): 9 SEARCH CHARSET US-ASCII UNSEEN
S (1231984739.217): * SEARCH
S (1231984739.2172): 9 OK Search completed.
C (1231984739.2238): 10 LOGOUT
S (1231984739.2256): * BYE Logging out
S (1231984739.2268): 10 OK Logout completed.
Actually, now that I look at the log more closely, this looks like a
potential problem:
C (1231984739.2115): 6 UID STORE 1:* -FLAGS.SILENT (\deleted)
Because of the 1:*, isn't that resetting the deleted flag on the
message (UID 383844 in this case) that ought to be getting expunged?
-chuck
More information about the dev
mailing list