Steps to export a folder from command line where folder name contains white spaces: Difference between revisions

(Created page with "=== <h1>Steps_to_export_a_folder_from_command_line_where_folder_name_contains_white_spaces </h1> === <hr> <br> <h2>Problem:- </h2> Folder export does fail when folder name...")
 
No edit summary
Line 1: Line 1:
=== <h1>Steps_to_export_a_folder_from_command_line_where_folder_name_contains_white_spaces </h1> ===
=== <h1>Export a folder from command line where folder name contains white spaces</h1> ===
<hr>
<hr>
<br>
<br>
Line 19: Line 19:
</pre>
</pre>
   
   
'''Note:- '''  
'''Note:- ''' <br>
If the query is [ in: ] , then only selected folder will export.  
If the query is [ in: ] , then only selected folder will export. <br>
If the query is [ under: ] , then selected folder and sub-folders will export.
If the query is [ under: ] , then selected folder and sub-folders will export.
Submitted by:  Heera Singh Koranga

Revision as of 10:09, 21 August 2017

Export a folder from command line where folder name contains white spaces




Problem:-

Folder export does fail when folder name having white spaces and generating "no such item" error.

$ zmmailbox -z -m USERNAME@DOMAIN.COM gru '//Communications Officer Recruitment?fmt=zip' > /tmp/test.zip    
ERROR: service.FAILURE (system failure: GET from https://MAIL.DOMAIN.COM/home/USERNAME@DOMAIN.COM//Communications%20Officer%20Recruitment?fmt=zip failed, status=404.  no such item)    


Solution:-

Here are the commands to export a folder which has white space in name.

zmmailbox -z -m USERNAME@DOMAIN.COM gru '//?fmt=tgz&query=in:"Communications Officer Recruitment"' > /tmp/test1.zip     
OR   
zmmailbox -z -m USERNAME@DOMAIN.COM gru '//?fmt=tgz&query=under:"Communications Officer Recruitment"' > /tmp/test2.zip     

Note:-
If the query is [ in: ] , then only selected folder will export.
If the query is [ under: ] , then selected folder and sub-folders will export.



Submitted by: Heera Singh Koranga

Jump to: navigation, search