Handle tag remove from an email

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

Handle tag remove from an email

Post by Sylfir »

Hi,

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

Thank you
User avatar
barrydegraaff
Zimbra Employee
Zimbra Employee
Posts: 242
Joined: Tue Jun 17, 2014 3:31 am
Contact:

Re: Handle tg remove from an email

Post by barrydegraaff »

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.

Parameters:
{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
Email: barry.degraaff [at] synacor [dot] com
Admin of Zimbra-Community Github: https://github.com/orgs/Zimbra-Community/ and the
Zimlet Gallery https://gallery.zetalliance.org/extend/
User avatar
barrydegraaff
Zimbra Employee
Zimbra Employee
Posts: 242
Joined: Tue Jun 17, 2014 3:31 am
Contact:

Re: Handle tag remove from an email

Post by barrydegraaff »

For Zimbra 9 there is an example Zimlet that deals with tags https://github.com/Zimbra/zimbra-zimlet-tags
--
Barry de Graaff
Email: barry.degraaff [at] synacor [dot] com
Admin of Zimbra-Community Github: https://github.com/orgs/Zimbra-Community/ and the
Zimlet Gallery https://gallery.zetalliance.org/extend/
Post Reply