Sorry I didn't actually answer you previous question. The emails I tried had no accents infact most of them were subject: 'Test' with message body "Test".
Thanks again,
Chris
Sorry I didn't actually answer you previous question. The emails I tried had no accents infact most of them were subject: 'Test' with message body "Test".
Thanks again,
Chris
Frank Harrison is working on making this save in EML format. Since we only use Firefox that will be the first priority.
You can download a zimlet for mail and folder backup from
:: Seacom blog > Zimbra :: the zimlet is imlet Folder Backup
More instructions in the zip file.
Good job.
It is just a bit sad that it doesn't handle multiple emails and conversation.
I know, it is because REST API don't handle it yet.
Just 2 things that i noticed :
-In your readme.txt :
This is not a bug, it is just implemented this way for now in the zip formatter :The exported file name, due to a ZCS bug, is always items.zip.
-Correct me if I'm wrong but you could use a more simple REST URL in your js file :Code:// TODO: get name from folder/search/query/etc String filename = context.hasPart() ? "attachments.zip" : "items.zip"; String cd = Part.ATTACHMENT + "; filename=" + HttpUtil.encodeFilename(context.req, filename); context.resp.addHeader("Content-Disposition", cd.toString()); context.resp.setContentType("application/x-zip-compressed");
Intead of :
You could use :Code:var bckRestUrl = "/zimbra/user/" + user + "/?fmt=zip&query=in:(" + this.buildBackupString(folderPath) + "\)";
Code:var bckRestUrl = "service/home/~/?fmt=zip&id=" + obj.id ;
For the file name I oened a bug becaus it's useful tho have the zip
file name equal to the folder name
Bug 11907 - Rest export file name
You could use :
[/QUOTE]Code:var bckRestUrl = "service/home/~/?fmt=zip&id=" + obj.id ;
I created this function for ZCS 4.x and recursive export did not work
on this release.
I will try if it works in zcs 5.x.
Thank you
Voted for the bug!
One more thing about your code:
You should add the Chats folder.Code:// MAP the translated folder name with the ZCS nanme var transInbox = ZmMsg.inbox; var transTrash = ZmMsg.trash; var transJunk = ZmMsg.junk; var transSent = ZmMsg.sent; var transDrafts = ZmMsg.drafts; // Now I replace translated labels to avoid 404 errors var folderPath = obj.path; folderPath = folderPath.replace(transInbox,'Inbox'); folderPath = folderPath.replace(transTrash,'Trash'); folderPath = folderPath.replace(transJunk,'Junk'); folderPath = folderPath.replace(transSent,'Sent'); folderPath = folderPath.replace(transDrafts,'Drafts');
Last edited by tdesorbaix; 05-20-2008 at 09:25 AM.
You can drag and drop subfolders, and in the the url for italian you will see 'In arrivo' instead of 'Inbox' and this cause a 404 error so I take the label for the folder using var transInbox = ZmMsg.inbox; and replace it, this way it works for all languages.
Ok I'll wait a bi for other suggestions and then I will add chats.
Thank you for vote and suggestions, if you like you can vote for this bug
Bug 21818 - Error 404 exporting contact after translation too because is similar to the on for wich I added the code.
Bye
you didn't vote yourself for the 21818.
Another bug that should be interresting for us :
Bugzilla Bug 15161 - add a 'recursive' option for REST .zip fetch
There are currently 1 users browsing this thread. (0 members and 1 guests)