Results 1 to 3 of 3

Thread: Empty mailbox with exception

  1. #1
    glennbtn is offline Loyal Member
    Join Date
    Dec 2009
    Location
    Worthing. UK
    Posts
    94
    Rep Power
    5

    Default Empty mailbox with exception

    Hi All

    I know you can empty the inbox of an account with

    /opt/zimbra/bin/zmprov sm admin@domainname.com emptyFolder inbox

    The question I have is can you empty the said box bar say the last 7 days and how would you do it

    Thanks

    Glenn

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Why don't you export the mail you want to keep then empty the folder and import the saved email? Obviously, take a backup before you do this and make sure you can get the data back into the Inbox before you try to empty it - once you empty the folder the data is gone.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    glennbtn is offline Loyal Member
    Join Date
    Dec 2009
    Location
    Worthing. UK
    Posts
    94
    Rep Power
    5

    Default

    Thanks Bill

    I have a number of servers I wanted to do this this on and was hoping to automate it all with a bash script

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Spam Mailbox is Empty
    By morinic in forum Administrators
    Replies: 0
    Last Post: 03-01-2012, 06:25 PM
  2. Empty all mailbox ?
    By Kidoucorp in forum Administrators
    Replies: 0
    Last Post: 10-06-2010, 08:13 AM
  3. Restoring exported mailbox, tar formatter exception
    By uven in forum Administrators
    Replies: 0
    Last Post: 05-03-2010, 07:39 AM
  4. Replies: 2
    Last Post: 03-28-2010, 11:19 PM
  5. empty mailbox with zmprov
    By dent in forum Administrators
    Replies: 1
    Last Post: 09-19-2006, 03:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •