Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-14-2008, 10:31 PM
Junior Member
 
Posts: 6
Question Web Client Empty Trash with sub-folders leaves message files on server

When I right-click on some mail folders containing sub-folders and choose "Delete", and then "Empty Trash", the pointers are deleted from the mail_items table for that account, but the message files remain on disk under the store directory.

Empty Trash works ok for individual items, but there seems to be a problem with it recursing through sub-folders.

Before I raise a bug I wondered if anyone else was aware of this issue, or if there are any maintenance scripts I should be running to take care of orphan message files?

regards
Justin.
Reply With Quote
  #2 (permalink)  
Old 04-14-2008, 11:40 PM
Former Zimbran
 
Posts: 5,606
Default

Zimbra has the notion of Shared messages. So if the message was received by multiple recipients, we only keep one copy and link to it. It doesn't get deleted until all references are removed.
Reply With Quote
  #3 (permalink)  
Old 04-15-2008, 12:08 AM
Junior Member
 
Posts: 6
Default

Yep, I understand that (and it's a pretty clever feature). However in this case the messages belong to just one account.

We noticed it while we were testing migration from our existing mail platform. We'd import an entire account with lots of folders etc., then remove them all via the web client, and repeat the process. We noticed the size of the mail store on disk was growing each time we ran the import, and found that after 5 iterations we had 5 copies of each message on disk (though only one showing up in the client).

I've since reproduced the problem by deleting just a few folders at a time. If the messages are in the root level of the Trash folder, they are removed from disk. If they are in sub-folders under trash, generally they are left behind.

I was thinking maybe the Empty Trash logic treats the removal of a folder differently to individual messages, and doesn't always descend through them removing messages before removing the folder entries themselves.

Cheers
Reply With Quote
  #4 (permalink)  
Old 04-15-2008, 10:10 AM
Zimbra Employee
 
Posts: 1,434
Default

Which version of ZCS are you running?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 04-15-2008, 03:31 PM
Junior Member
 
Posts: 6
Default

Sorry - should have said previously:


Release 5.0.4_GA_2101.RHEL5_64_20080321141727 RHEL5_64 NETWORK edition
Eval licence.
Reply With Quote
  #6 (permalink)  
Old 04-15-2008, 03:37 PM
Former Zimbran
 
Posts: 5,606
Default

Looks like this is for Zimbra Server, and not Zimbra Desktop (end-user fat client). I'm going to move this post to the administrator's forum.

Please file a bug, and include reproducible steps.

Thanks!
Reply With Quote
  #7 (permalink)  
Old 04-28-2008, 09:25 AM
Member
 
Posts: 10
Default

Replying to this message since it seems to be the closest related to our problem.

This also looks to be reported as a bug in report #27505 (Empty Trash does not remove messages from disk if msgs were inside a folder).

Essentially as a result of this issue, we have a great deal of space that is taken up with messages that should have been deleted in the store folder. The messages are no longer in the database, but still taking up space in local storage.

Is there some way to have Zimbra check the store folder for orphaned messages and if it does not find a reference in the database to remove it?

Thanks!

Rob
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.