Steps to export a folder from command line where folder name contains white spaces: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== | {{BC|Certified}} | ||
__FORCETOC__ | |||
<div class="col-md-12 ibox-content"> | |||
=Export a folder from command line where folder name contains white spaces= | |||
<hr> | <hr> | ||
{{KB|{{ZC}}|{{ZCS 8.8}}|{{ZCS 8.7}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0.x}}|{{ZCS 7.x}}|}} | |||
{{WIP}} | |||
====Problem==== | |||
Folder export does fail when folder name having white spaces and generating "no such item" error. | 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. | 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 | OR | ||
zmmailbox -z -m USERNAME@DOMAIN.COM gru '//?fmt=tgz&query=under:"Communications Officer Recruitment"' > /tmp/test2.zip | zmmailbox -z -m USERNAME@DOMAIN.COM gru '//?fmt=tgz&query=under:"Communications Officer Recruitment"' > /tmp/test2.zip | ||
'''Note:- ''' <br> | '''Note:- ''' <br> | ||
If the query is [ in: ] , then only selected folder will export. <br> | If the query is [ in: ] , then only selected folder will export. <br> | ||
Line 25: | Line 27: | ||
{| class="wikitable" style="background-color:#d0f0c0;" cellpadding="10" | |||
|'''Submitted by''': Heera Singh Koranga | |||
|} | |||
{{Article Footer|ZCS 8.8, 8.7, 8.6, 8.5, 8.0.x, 7.x|2017-08-23}} | |||
Revision as of 06:51, 17 August 2018
Export a folder from command line where folder name contains white spaces
- This article is a Work in Progress, and may be unfinished or missing sections.
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 |