Bug 2236 - messed up folder structure after deleting imapcache
Summary: messed up folder structure after deleting imapcache
Status: RESOLVED WORKSFORME
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Folders/IMAP (show other bugs)
Version: 3.7.7
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2010-07-28 01:53 UTC by kardan
Modified: 2013-04-18 12:43 UTC (History)
0 users

See Also:


Attachments

Description kardan 2010-07-28 01:53:09 UTC
Due to a fs problem parts of my .claws-mail/imapcache (nothings else) have been destroyed. So I decided to remove the whole imapcache which I assumed to be save, expecting claws to just rebuild it. I can assure, that the following is not due to ongoing fs problems.

Steps
1. delete imapcache
2. Rebuild folder tree (this step seemed necessary after result of 1)
3. move subfolders (that appear as folders) to the right folders (necessary after the result of 1+2)

Expected Result
1. claws refills the cache without changing the folder tree
2. Recreate the correct folder tree
3. subfolders are moved only, if there is no subfolder with that name already

account
`-INBOX
 `-Sent
 `-Drafts
 `-Queue
 `-Trash
 `-A
  `-A1
  `-A2
 `-B
  `-B1
  `-B2
 `-C
  `-C1
  `-C2
  `-C3
   `-C3a
   `-C3b
   `-C3c
 `-...

Actual Result
1.
- the 2nd imap account is listed twice
- in the 1st imap account the INBOX appears twice
- the 1st INBOX contains the previous folder structure with some subfolders missing (B1). (subfolder means second level below INBOX)
- Drafts, Sent, Queue, Trash are only in the 2nd INBOX
- 2nd INBOX: some main folders are missing (A) or contain no subfolders (B). Even a subfolder is missing (C3) and its subsubfolders are in C.
- some subfolders appear now as folders of the 2nd INBOX _and_ (mostly but not completely) as subfolders in the first INBOX at the right place (C1-3).
- the content of both occurences are equal, emptying one, empties the other as well.

account1
`-INBOX
 `-A
  `-A1
  `-A2
 `-B
  `-B2
 `-C
  `-C1
  `-C2
  `-C3
   `-C3a
   `-C3b
   `-C3c
 `-...
`-INBOX
 `-Sent
 `-Drafts
 `-Queue
 `-Trash
 `-C2
 `-B1
 `-B2
 `-B
 `-C
   `-C3a
   `-C1
   `-C3b
   `-C3c
account2
account2
...

2. the 1st and 2nd INBOX get toggled

account1
`-INBOX
 `-Sent
 `-Drafts
 `-Queue
 `-Trash
 `-C2
 `-B1
 `-B2
 `-B
 `-C
   `-C3a
   `-C1
   `-C3b
   `-C3c
`-INBOX
 `-A
  `-A1
  `-A2
 `-B
  `-B2
 `-C
  `-C1
  `-C2
  `-C3
   `-C3a
   `-C3b
   `-C3c
 `-...
account2
account2
...

3. folders contain two occurances of a subfolder (C2), deleting any of them has no effect on the clone.

account1
`-INBOX
 `-Sent
 `-Drafts
 `-Queue
 `-Trash
 `-B
 `-C
   `-C3a
   `-C1
   `-C3b
   `-C3c
`-INBOX
 `-A
  `-A1
  `-A2
 `-B
  `-B1
  `-B2
  `-B2
 `-C
  `-C1
  `-C2
  `-C2
  `-C3
   `-C3a
   `-C3b
   `-C3c
 `-...
account2
account2
...

BTW the imapcache folder structure looks exactly like expected - no mixed (sub) folders etc., while .claws-mail/folderlist.xml represents the mess described above.

If you need to inspect any file, make a beep.
Comment 1 kardan 2010-08-05 13:15:28 UTC
i need to correct 3):

if a directory is deleted, the second existance keeps accessible until claws is restarted or the folder structure is reread from the server.

This way I lost a lot folders as I expected the doubles can be removed savely, which is not the case.

Note You need to log in before you can comment on or make changes to this bug.