Hi,
How I can catch, in a zimlet, the user action that removes manually a tag from an email?
Thank you
Handle tag remove from an email
- barrydegraaff
- Zimbra Employee
- Posts: 242
- Joined: Tue Jun 17, 2014 3:31 am
- Contact:
Re: Handle tg remove from an email
You can use the onTagAction event that fires when a message tag is removed:
https://files.zimbra.com/docs/zimlet/zc ... tBase.html
Please let me know if you have enough info with this!
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
--
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/
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/
- barrydegraaff
- Zimbra Employee
- Posts: 242
- Joined: Tue Jun 17, 2014 3:31 am
- Contact:
Re: Handle tag remove from an email
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/
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/