gmail-yaml-filters
gmail-yaml-filters copied to clipboard
smartlabels
In the gmail filter UI, when I specify that a filter categorize something as "social", the resulting XML is:
<apps:property name='smartLabelToApply' value='^smartlabel_social'/>
gmail-yaml-filters wants to do:
<apps:property name="label" value="CATEGORY_SOCIAL"/>
And when used literally creates a label called CATEGORY_SOCIAL and does not place the email in the social tab. Seems that the smartlabel syntax is the appropriate one.
Thanks for the bug report! It's super frustrating that CATEGORY_SOCIAL, etc. is the correct way to create these filters through the API but doesn't work when creating filters via XML. Pull requests still welcome if they can support both of these modes of operation.
I'll admit that I don't use the XML workflow very often and I've even toyed with the idea of dropping support for it in 1.0 (to focus exclusively on managing filters via the API). It's helpful to know that someone out there still uses it.
@mesozoic I realized that it must be the difference of using the API and just using the XML output. I can't get the API auth to work, so I just use the XML :). I'll work on a PR that can handle both.