Results 1 to 2 of 2

Thread: Zimlet Email Reminder in Zimbra 8

Hybrid View

  1. #1
    Join Date
    Feb 2014
    Location
    Russia, Saint-Peterburg
    Posts
    8
    Rep Power
    1

    Default Zimlet Email Reminder in Zimbra 8

    Hi
    Who can help to update this zimlet for Zimbra 8?

    gallery.zimbra.com

    I like idea to how make reminder.

    The system error when try resp:

    EmailReminderZimlet.prototype._createEmailFollowup Folder =
    function() {
    var soapDoc = AjxSoapDoc.create("CreateFolderRequest", "urn:zimbraMail");
    var folderNode = soapDoc.set("folder");
    folderNode.setAttribute("name", EmailReminderZimlet.CALENDAR_EMAIL_REMINDERS);
    folderNode.setAttribute("l", appCtxt.getFolderTree().root.id);
    folderNode.setAttribute("view", EmailReminderZimlet.VIEW_CALENDAR);
    var command = new ZmCsfeCommand();
    var resp = command.invoke({soapDoc: soapDoc});
    var id = resp.Body.CreateFolderResponse.folder[0].id;
    if (!id) {
    var errMsg = AjxMessageFormat.format(this.getMessage("EmailRemi nder_error_createcalendar"), EmailReminderZimlet.CALENDAR_EMAIL_REMINDERS);
    throw new AjxException(errMsg, AjxException.INTERNAL_ERROR, "createEmailFollowupFolder");
    }
    this.emailFollowupFolderId = id;

    soapDoc = AjxSoapDoc.create("FolderActionRequest", "urn:zimbraMail");
    var actionNode = soapDoc.set("action");
    actionNode.setAttribute("op", "color");
    actionNode.setAttribute("id", id);
    actionNode.setAttribute("color", "5");
    command = new ZmCsfeCommand();
    resp = command.invoke({soapDoc: soapDoc});
    this._justCreatedCalendarFolder = true;
    };

  2. #2
    Join Date
    Feb 2014
    Location
    Russia, Saint-Peterburg
    Posts
    8
    Rep Power
    1

    Default

    After some day I return to resolve this problem. Very Thanks Zimbra 7.2 and posixaccount + samba - Page 3

    Need change in js file
    /**
    * Gets the follow-up folder ID.
    *
    */
    EmailReminderZimlet.prototype._getEmailFollowupFol derId =
    function() {
    this._justCreatedCalendarFolder = false;
    var soapDoc = AjxSoapDoc.create("GetFolderRequest", "urn:zimbraMail");
    var folderNode = soapDoc.set("folder");
    folderNode.setAttribute("l", appCtxt.getFolderTree().root.id);
    var command = new ZmCsfeCommand();
    var params = new Object();
    params.noAuthToken = true;
    params.soapDoc = soapDoc;
    var top = command.invoke(params).Body.GetFolderResponse.fold er[0];

    var folders = top.folder;
    if (folders) {
    for (var i = 0; i < folders.length; i++) {
    var f = folders[i];
    if (f && f.name == EmailReminderZimlet.CALENDAR_EMAIL_REMINDERS && f.view == EmailReminderZimlet.VIEW_CALENDAR) {
    this.emailFollowupFolderId = f.id;
    return;
    }
    }
    }

    // there is no such folder, so create one.
    this._createEmailFollowupFolder(top.id);
    };

    /**
    * Creates the follow-up folder.
    *
    */
    EmailReminderZimlet.prototype._createEmailFollowup Folder =
    function() {
    var soapDoc = AjxSoapDoc.create("CreateFolderRequest", "urn:zimbraMail");
    var folderNode = soapDoc.set("folder");
    folderNode.setAttribute("name", EmailReminderZimlet.CALENDAR_EMAIL_REMINDERS);
    folderNode.setAttribute("l", appCtxt.getFolderTree().root.id);
    folderNode.setAttribute("view", EmailReminderZimlet.VIEW_CALENDAR);
    var command = new ZmCsfeCommand();
    var params = new Object();
    params.noAuthToken = true;
    params.soapDoc = soapDoc;
    var resp = command.invoke(params);
    var id = resp.Body.CreateFolderResponse.folder[0].id;
    if (!id) {
    var errMsg = AjxMessageFormat.format(this.getMessage("EmailRemi nder_error_createcalendar"), EmailReminderZimlet.CALENDAR_EMAIL_REMINDERS);
    throw new AjxException(errMsg, AjxException.INTERNAL_ERROR, "createEmailFollowupFolder");
    }
    this.emailFollowupFolderId = id;

    soapDoc = AjxSoapDoc.create("FolderActionRequest", "urn:zimbraMail");
    var actionNode = soapDoc.set("action");
    actionNode.setAttribute("op", "color");
    actionNode.setAttribute("id", id);
    actionNode.setAttribute("color", "5");
    command = new ZmCsfeCommand();
    var params = new Object();
    params.noAuthToken = true;
    params.soapDoc = soapDoc;
    resp = command.invoke(params);
    this._justCreatedCalendarFolder = true;
    };

    Now work in Web on Zimbra 8

Similar Threads

  1. Email Reminder don't work with Zimbra 8
    By bobu in forum Zimlets
    Replies: 3
    Last Post: 03-05-2013, 07:14 AM
  2. Zimlet: Email Reminder compatible for version 7?
    By Gliese in forum General Questions
    Replies: 0
    Last Post: 12-31-2012, 05:33 AM
  3. Replies: 0
    Last Post: 02-19-2011, 03:27 PM
  4. Replies: 7
    Last Post: 11-30-2010, 09:14 PM
  5. Email Reminder zimlet
    By ajd in forum General Questions
    Replies: 9
    Last Post: 04-19-2009, 09:44 PM

Posting Permissions

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