Results 1 to 10 of 10

Thread: Messages is checked before sending outside!

  1. #1
    Join Date
    Mar 2007
    Posts
    85
    Rep Power
    8

    Default Messages is checked before sending outside!

    Dear Experts,
    We're using zimbra mail for our system. There's a problem we'd like to discuss with everyone. That is how to check messages before sending to the customers.
    when a user send an email, this email must be checked for the contents by the manager. The manager will send the messages for the customer after checking the content of message is ok. Does Zimbra offer any feature for this?

    Thanks for regard,

  2. #2
    Join Date
    Aug 2011
    Posts
    32
    Rep Power
    4

    Default

    We are also looking for the solution for the same. Let me know if you found solution
    Zimbra Version 8.0.1_G.A._5438 (build 20121105164416) running on ubuntu 10.04 x64

  3. #3
    Join Date
    May 2012
    Posts
    8
    Rep Power
    3

    Default

    I think you will need to extend send button listener for that.

  4. #4
    Join Date
    Aug 2011
    Posts
    32
    Rep Power
    4

    Default

    Have you tried to implement this? How do we extend send button listener??
    Zimbra Version 8.0.1_G.A._5438 (build 20121105164416) running on ubuntu 10.04 x64

  5. #5
    Join Date
    May 2012
    Posts
    8
    Rep Power
    3

    Default

    Well its a zimlet, how could I post it here. and this forum is not allowed me post any email address.

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by Jignesh_Zim View Post
    Well its a zimlet, how could I post it here. and this forum is not allowed me post any email address.
    People can contact you via a PM or email settings on your profile. There's also nothing stopping you post a link to your code in this thread - just host the code somewhere else.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    Join Date
    May 2012
    Posts
    8
    Rep Power
    3

    Default

    Here is just emaple, you can develop zimlet your own
    com_zimbra_test1.prototype.init = function() {
    //call this immediately after login to set new listner for SPAM button
    this.replaceMailToolbarBtnListener(ZmId.OP_SPAM, new AjxListener(this, this._newSelectionListener));
    };

    //Replace ALL listeners that are registered for SELECTION event with the new listner
    com_zimbra_test1.prototype.replaceMailToolbarBtnLi stener = function(btnName, newListner) {
    var controller = null;
    var btn = null;
    //keep track of all the views for which we have already set a new listner
    if (this._viewHasNewListner == undefined) {
    this._viewHasNewListner = [];
    }

    var viewId = appCtxt.getAppViewMgr().getCurrentViewId();
    if (viewId != ZmId.VIEW_CONVLIST && viewId != ZmId.VIEW_CONV && viewId != ZmId.VIEW_TRAD && viewId == ZmId.VIEW_MSG) {
    return;
    }
    if (this._viewHasNewListner[viewId]) {//already has listener
    return;
    }

    if (viewId == ZmId.VIEW_CONVLIST) {
    controller = AjxDispatcher.run("GetConvListController");
    btn = controller._toolbar.CLV.getButton(btnName);
    } else if (viewId == ZmId.VIEW_CONV) {
    controller = AjxDispatcher.run("GetConvController");
    btn = controller._toolbar.CV.getButton(btnName);
    } else if (viewId == ZmId.VIEW_TRAD) {
    controller = AjxDispatcher.run("GetTradController");
    btn = controller._toolbar.TV.getButton(btnName);
    } else if (viewId == ZmId.VIEW_MSG) {
    controller = AjxDispatcher.run("GetMsgController");
    btn = controller._toolbar.MSG.getButton(btnName);
    }
    this._viewHasNewListner[viewId] = true;
    btn.removeSelectionListeners();//remove all earlier listners
    btn.addSelectionListener(newListner);
    };


    //onShowView is called everytime a view is changed. It adds listners when user changes views(as they appear)
    com_zimbra_test1.prototype.onShowView = function(viewId, isNewView) {
    if (viewId == ZmId.VIEW_CONVLIST || viewId == ZmId.VIEW_CONV || viewId == ZmId.VIEW_TRAD || viewId == ZmId.VIEW_MSG) {
    this.replaceMailToolbarBtnListener(ZmId.OP_SPAM, new AjxListener(this, this._newSelectionListener));
    }
    };

    //New listener
    com_zimbra_test1.prototype._newSelectionListener = function(obj) {
    alert("Do Something Else Here!");
    };

  8. #8
    Join Date
    Aug 2011
    Posts
    32
    Rep Power
    4

    Default

    Quote Originally Posted by Jignesh_Zim View Post
    Well its a zimlet, how could I post it here. and this forum is not allowed me post any email address.
    Check my private message.
    Zimbra Version 8.0.1_G.A._5438 (build 20121105164416) running on ubuntu 10.04 x64

  9. #9
    Join Date
    May 2012
    Posts
    8
    Rep Power
    3

    Default

    Have you got the zimlet?

  10. #10
    Join Date
    Aug 2011
    Posts
    32
    Rep Power
    4

    Default

    Quote Originally Posted by Jignesh_Zim View Post
    Have you got the zimlet?
    Got the Zimlet and works okay till Message Box. We will need to develop it further. Will update you.

    Thanks for your help.
    Zimbra Version 8.0.1_G.A._5438 (build 20121105164416) running on ubuntu 10.04 x64

Similar Threads

  1. [SOLVED] Re-creating the spam training e-mail account
    By richard-hdd in forum Administrators
    Replies: 21
    Last Post: 03-20-2012, 07:34 AM
  2. Slow Sending Messages with Zimbra?
    By Diranged in forum Administrators
    Replies: 5
    Last Post: 08-22-2010, 01:51 AM
  3. Trouble Sending mail - All Messages deferred!
    By SiteDiscovery in forum Administrators
    Replies: 7
    Last Post: 09-03-2009, 04:52 AM
  4. Replies: 3
    Last Post: 07-19-2007, 02:00 AM
  5. Spam assassain not traiing properly!
    By Mike T in forum Administrators
    Replies: 1
    Last Post: 10-09-2006, 01:34 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
  •