Hi,

  After something Allie said to me today, I decided to take a little
  exploring of the IMAP handling in the latest releases/betas. Folder
  maintenance doesn't do exactly what it says it's doing in regards to
  IMAP. It seems to only be cleaning up the local cached emails, and
  not the server.  I deduced this as follows:

    1. Ran folder maintenance on my whole mail base.  It reports it
       saved X bytes of space.
    2. Closed TB, started it up using /IMAPTRACE
    3. Selected one folder I know I'd deleted multiple emails from
    4. Selected Folder, Purge+Compress
    5. Checked /IMAPTRACE log files... and I see this:

C: S00196 EXPUNGE
S: * 1 EXPUNGE
S: * 11 EXPUNGE
S: * 15 EXPUNGE
S: * 20 EXPUNGE
S: * 20 EXPUNGE
S: * 20 EXPUNGE
S: * 25 EXPUNGE
S: * 26 EXPUNGE
S: * 25 EXISTS
S: * 0 RECENT
S: S00196 OK EXPUNGE completed

  Hang on... how could it expunge that many emails, when I ran folder
  maintenance, and it said it'd already done that for me?

    6. Deleted an email
    7. Ran folder maintenance right after again (selecting the
       compress, and purge options in case that wasn't clear)

C: W00205 UID COPY 32 "INBOX.Trash"
S: W00205 OK [COPYUID 1036787960 32 42869] COPY completed.
C: O00206 STATUS "INBOX.Trash" (UNSEEN RECENT MESSAGES UIDVALIDITY UIDNEXT)
C: V00207 UID STORE 32 +FLAGS.SILENT (\Seen \Deleted)
S: * STATUS "INBOX.Trash" (MESSAGES 206 RECENT 0 UIDNEXT 42870 UIDVALIDITY 1036787960 
UNSEEN 1)
S: O00206 OK STATUS Completed.
C: O00208 STATUS "INBOX.Undernet.Help" (UNSEEN RECENT MESSAGES UIDVALIDITY UIDNEXT)
S: V00207 OK STORE completed.
S: * STATUS "INBOX.Undernet.Help" (MESSAGES 25 RECENT 0 UIDNEXT 34 UIDVALIDITY 
1041480648 UNSEEN 0)
S: O00208 OK STATUS Completed.
C: A00209 NOOP
S: A00209 OK NOOP completed
C: C00210 LOGOUT
C: C00211 LOGOUT
S: * BYE Courier-IMAP server shutting down

  Well... there's two issues here, it sets the \Seen status on the
  email BEFORE it moves it, so if it was \UnSeen, then it'll appear in
  the trash that way, irregardless of the option "Mark deleted
  messages as read" (this behaviour differs from POP3 folders).

  Well I had left it a good 2 mins after the folder maintenance window
  said it was done before I closed TB. Yet no expunge details...
  hrm... bug? This might also be why TB keeps seeing old mail when I
  delete some other stuff, because it refetches the deleted mails.
  Anybody able to confirm this kind of behaviour?

-- 
Jonathan Angliss
([EMAIL PROTECTED])

Only XT users know that January 1, 1980 was a Tuesday.

Attachment: pgp00000.pgp
Description: PGP signature

________________________________________________________
 Current beta is 2.03 Beta/24 | "Using TBBETA" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to