Results 1 to 4 of 4

Thread: zimlet framework notification: onSendMsgSuccess

  1. #1
    roby.tea is offline Active Member
    Join Date
    Aug 2013
    Posts
    31
    Rep Power
    1

    Default zimlet framework notification: onSendMsgSuccess

    Hello All,

    I use "onSendMsgSuccess" method to do some stuff when a message has been succesfully sent.

    But this method is fired also when a draft is saved.

    Is there any way to know if the message that has been "sent" is a "really sent message" or a "saved draft"?

    Thanks
    Roberto

  2. #2
    roby.tea is offline Active Member
    Join Date
    Aug 2013
    Posts
    31
    Rep Power
    1

    Default

    Hello All,

    really noone knows how to get this information?

    Thanks
    Roberto

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

    Default

    Hi,

    From what i see in the source code, the method onSendMsgSuccess have a parameter "msg".
    And i also see that this parameter should have a "isDraft" property.

  4. #4
    roby.tea is offline Active Member
    Join Date
    Aug 2013
    Posts
    31
    Rep Power
    1

    Default

    Hello tdesorbaix,

    I've investigated that hook, but this "msg" parameter has the flag "isDraft" setted to true even when the message has just been sent.
    Please try to:
    1) save a message as draft (this hook is called and the message.isDraft property is true
    2) send this draft (this hook is called again, but the message.isDraft property is still true

    I'm using Zimbra 8.0.5_GA_5839 (build 20130910124038)

    Thanks
    Roberto

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. zimlet - get message id in onSendMsgSuccess method
    By roby.tea in forum Developers
    Replies: 0
    Last Post: 10-28-2013, 03:19 AM
  2. Logout notification for tabbed zimlet
    By skenkin in forum Zimlets
    Replies: 0
    Last Post: 05-03-2010, 10:21 AM
  3. Authentication using Zend Framework
    By marioestrada in forum Developers
    Replies: 3
    Last Post: 11-04-2008, 04: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
  •