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

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 07-13-2008, 08:32 PM
Active Member
 
Posts: 27
Default how to save the result of search

Hello:

I have a problem that I want to ask your help;

when I use zmmailbox ,I want to save the result of search to a file;

Like this :

$zmmailbox
> aa admin ******
> sm user1@domain.com
*****************************
> s -t message in:junk
*********

********************************

(* means the content of output)

Now I want to know How can I save the result of " s -t message in:junk ";Or how can I let the result output to a file?

Thank you !
Reply With Quote
  #2 (permalink)  
Old 07-14-2008, 01:01 AM
Special Member
 
Posts: 167
Default

You can do that in one line by running:

Code:
zmmailbox -z -m user1@domain s -t message in:junk
which means you can use standard redirection to send it to a file:

Code:
zmmailbox -z -m user1@domain s -t message in:junk > /tmp/junk-search.txt
Run zmmailbox --help for other command-line switches or see Zmmailbox - Zimbra :: Wiki.
__________________
Craig Rodway » Flickr | Last.fm | Del.icio.us | Twitter
Reply With Quote
  #3 (permalink)  
Old 07-14-2008, 01:12 AM
Active Member
 
Posts: 27
Default

Thank you for your answer ;I know it can save the result ;But I want to save when use my method ;I think another way for this .Thank you very much.
Reply With Quote
  #4 (permalink)  
Old 07-14-2008, 05:55 AM
Zimbra Consultant & Moderator
 
Posts: 20,319
Default

User Migration - Zimbra :: Wiki
__________________
Regards


Bill
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.