Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: zimlet to save email on local hard drive

  1. #11
    dpmchris is offline Special Member
    Join Date
    Nov 2007
    Location
    Chicago
    Posts
    105
    Rep Power
    7

    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

  2. #12
    tshelton is offline Starter Member
    Join Date
    Mar 2008
    Location
    Dallas Texas
    Posts
    1
    Rep Power
    7

    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.

  3. #13
    lfasci is offline Trained Alumni
    Join Date
    Jul 2006
    Location
    Pisa
    Posts
    134
    Rep Power
    8

    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.

  4. #14
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    365
    Rep Power
    8

    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 :
    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 ;

  5. #15
    lfasci is offline Trained Alumni
    Join Date
    Jul 2006
    Location
    Pisa
    Posts
    134
    Rep Power
    8

    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

  6. #16
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    365
    Rep Power
    8

    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 09:25 AM.

  7. #17
    lfasci is offline Trained Alumni
    Join Date
    Jul 2006
    Location
    Pisa
    Posts
    134
    Rep Power
    8

    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

  8. #18
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    365
    Rep Power
    8

    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

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  3. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  4. upgrade to 4.0.3 antispam does'nt work
    By lucanannipieri in forum Administrators
    Replies: 14
    Last Post: 11-07-2006, 03:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •