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

Thread: Zimlet to Pre-Process Email

  1. #11
    Join Date
    Aug 2013
    Posts
    31
    Rep Power
    2

    Default

    Hello

    are there any news about this request?

    Will there be functionality available that will prevent the message from being sent until a certain condition has been met? I can see this being a great way to develop a more efficient content filter for school use, which will prevent students from sending out messages containing swear words.

    Eg. instead of "Do you wish to continue - Yes/No" - could the Zimlet say, for example, "Cannot continue due to Error X - OK".
    Last edited by webman; 04-02-2009 at 10:54 AM.

  2. #12
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    Yes, this was implemented a long time ago.

    Check ZmZimletBase.js for the "emailErrorCheck" hook.

  3. #13
    Join Date
    Aug 2013
    Posts
    31
    Rep Power
    2

    Default

    Hello tdesorbaix,

    I'm referring to the last question: g. instead of "Do you wish to continue - Yes/No" - could the Zimlet say, for example, "Cannot continue due to Error X - OK".

    I've investigated the code and seems we can't prevent the message to be sent, but we can only answer to the user if he wants to continue or not.
    I would like to totally stop the message if some conditions are not met, maybe warning the user "your message has not been sent because bla bla bla".

    Thanks
    Roberto

  4. #14
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    There is no simple solution if you use the function as it is.
    But it still give you a hook(listener), and you can do everything you want afterward.
    So you can implement the function in your zimlet to always return no errors, and manage the errors and dialog boxes with the zimlet instead of using the code available in zimbra.
    The way to stop the process from sending the mail should be in the function executed when you click on "No" when asked if you want to continue, so you should look at ZmComposeView.prototype._errViaZimletCancelCallbac k

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Can't seem to get global in BES
    By sdemeyer in forum Zimbra Connector for BlackBerry
    Replies: 12
    Last Post: 03-19-2008, 09:22 AM
  3. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 08: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
  •