Handle tag remove from an email

Interested in talking about Mash-up's? This is the place.
Posts: 2
Joined: Fri Mar 20, 2020 5:04 pm

Handle tag remove from an email

Postby Sylfir » Wed Apr 15, 2020 11:24 am


How I can catch, in a zimlet, the user action that removes manually a tag from an email?

Thank you

User avatar
Zimbra Employee
Zimbra Employee
Posts: 90
Joined: Tue Jun 17, 2014 3:31 am

Re: Handle tg remove from an email

Postby barrydegraaff » Mon May 04, 2020 12:27 pm

You can use the onTagAction event that fires when a message tag is removed:
https://files.zimbra.com/docs/zimlet/zc ... tBase.html

Code: Select all

onTagAction(items, tag, doTag)
This method is called by the Zimlet framework when an email message is tagged.

{ZmMailMsg[]|ZmConv[]} items, an array of items
{ZmTag} tag, the tag
{boolean} doTag, true if the tag is being set; false if the tag is being removed

Please let me know if you have enough info with this!
Barry de Graaff
Admin of Zimbra-Community Github: https://github.com/orgs/Zimbra-Community/
Developer of Zimbra OpenPGP Zimlet, Zimbra ownCloud Zimlet and more.
A Zetalliance Founder http://www.zetalliance.org/

Return to “Zimlets”

Who is online

Users browsing this forum: No registered users and 3 guests