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

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
  #11 (permalink)  
Old 04-08-2008, 03:25 PM
Special Member
 
Posts: 104
Default To answer your previous question...

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
Reply With Quote
  #12 (permalink)  
Old 04-09-2008, 02:50 PM
Starter Member
 
Posts: 1
Default EML is in the works

Frank Harrison is working on making this save in EML format. Since we only use Firefox that will be the first priority.
Reply With Quote
  #13 (permalink)  
Old 05-20-2008, 02:01 AM
Project Contributor
 
Posts: 127
Default

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.
__________________
http://www.seacom.it
Reply With Quote
  #14 (permalink)  
Old 05-20-2008, 09:28 AM
Zimlet Guru & Moderator
 
Posts: 265
Default

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 :
Quote:
The exported file name, due to a ZCS bug, is always items.zip.
This is not a bug, it is just implemented this way for now in the zip formatter :
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");
-Correct me if I'm wrong but you could use a more simple REST URL in your js file :
Intead of :
Code:
var bckRestUrl = "/zimbra/user/" + user + "/?fmt=zip&query=in:(" + this.buildBackupString(folderPath) + "\)";
You could use :
Code:
var bckRestUrl = "service/home/~/?fmt=zip&id=" + obj.id ;
Reply With Quote
  #15 (permalink)  
Old 05-20-2008, 09:42 AM
Project Contributor
 
Posts: 127
Default

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 :
Code:
var bckRestUrl = "service/home/~/?fmt=zip&id=" + obj.id ;
[/QUOTE]

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
__________________
http://www.seacom.it
Reply With Quote
  #16 (permalink)  
Old 05-20-2008, 10:19 AM
Zimlet Guru & Moderator
 
Posts: 265
Default

Voted for the bug!

One more thing about your code :
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');
You should add the Chats folder.

Last edited by tdesorbaix; 05-20-2008 at 10:25 AM..
Reply With Quote
  #17 (permalink)  
Old 05-20-2008, 10:35 AM
Project Contributor
 
Posts: 127
Default

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
__________________
http://www.seacom.it
Reply With Quote
  #18 (permalink)  
Old 05-21-2008, 01:26 AM
Zimlet Guru & Moderator
 
Posts: 265
Default

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