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

Fix #33 (implement smart labels as `categorize` action and remove doc…

Open grimm26 opened this issue 2 years ago • 2 comments

…umentation about CATEGORY_* labels that do not place emails into the tab categories.

grimm26 avatar Mar 12 '22 22:03 grimm26

Thanks for the bug report and the branch! I'm sorry for the delayed response.

So either this is a change in behavior on Gmail's side, or this actually never worked in the XML import and has only ever worked through the API. (The CATEGORY_* labels do work via API, at least for my own Gmail accounts.)

Maybe you could help me narrow this down a bit more, so we can write some tests to ensure proper behavior?

  1. If you use the --sync flag instead of the XML upload, do you find that the existing code works for creating category-based filters? If not, then my own Gmail account might have some legacy behavior that others don't.
  2. Have you tested your branch using the --sync flag? The filters.create API only supports adding or removing labels, so I suspect this might break with the branch as-is.

mesozoic avatar Mar 14 '22 23:03 mesozoic

@mesozoic I think this never worked on the XML side and only via API. I haven't been able to test with --sync because I can't get the google authentication to work.

grimm26 avatar Mar 16 '22 18:03 grimm26