Results 1 to 2 of 2

Thread: Move entire contents of one folder to another

  1. #1
    zvi
    zvi is offline Active Member
    Join Date
    Oct 2007
    Posts
    25
    Rep Power
    7

    Default Move entire contents of one folder to another

    How can I move the entire contents of one email folder to another existing email folder. I know I can drag and drop 100 at a time but how can I automate it for the whole folder contents?

    Thanks

    Zvi

  2. #2
    alexkelly is offline Trained Alumni
    Join Date
    Oct 2007
    Location
    Columbus, OH
    Posts
    70
    Rep Power
    7

    Default

    If you are asking from a user perspective, I think that moving by group is pretty much the only way to do it. From an administrative/console side, you have some scripting options you can do with zmmailbox and zmmboxsearch.

    You can dump the contents of a folder to a directory with something like:
    zmmboxsearch -m username@domain.tld -q "in:foldername" -d /tmp/username
    and then loop through that directory, importing each file into the new folder with something like:
    for x in '/tmp/username/*'
    do
    zmmailbox -z -m username@domain.tld am "/Zimbra/Destination Folder" $x
    done
    And finally remove the old folder with
    zmmailbox -z -m usernaem@domain.tld df "/Path/To/Original Folder"

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Can no longer start desktop
    By foobaz in forum General Questions
    Replies: 12
    Last Post: 04-02-2010, 04:06 PM
  2. Connector finds folders and items however does not import them
    By berkeb in forum Zimbra Connector for Outlook
    Replies: 3
    Last Post: 03-11-2010, 06:44 AM
  3. .pst migration issues
    By jimklein in forum Migration
    Replies: 13
    Last Post: 02-16-2009, 01:55 AM
  4. Error when Using Outlook PST Importer
    By chh in forum Zimbra Connector for Outlook
    Replies: 1
    Last Post: 01-19-2009, 05:20 AM
  5. Replies: 3
    Last Post: 08-11-2007, 12:40 PM

Posting Permissions

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