gmail-yaml-filters icon indicating copy to clipboard operation
gmail-yaml-filters copied to clipboard

smartlabels

Open grimm26 opened this issue 2 years ago • 2 comments

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.

grimm26 avatar Feb 13 '22 21:02 grimm26

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 avatar Mar 15 '22 06:03 mesozoic

@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.

grimm26 avatar Mar 15 '22 14:03 grimm26