Gmail Categories Support

I get a lot of emails. The only issue I have with Mailspring is not supporting Gmail Categories

I’m torn between Mailspring and Ploymail. Polymail doesn’t have plugin support and Mailspring is hard to use due to large number of emails I get.

Please add category support. this is very important to many users and probably one of most important reasons people go back go Gmail web client.


(Originally posted by hadifarnoud on GitHub.)

(Original post had 6 upvotes and 3 hearts.)

Hey! Thanks for reporting this - unfortunately Gmail doesn’t provide an API for it’s tabs / categories (Promotions, etc.) It’d definitely be a nice feature to have - I sometimes go back to the Gmail UI to quickly clear all of my “Promotions” tab, but we’ll have to wait for them to expose it via IMAP.

EDIT: I see Polymail supports them - will check this out a bit and see what they’re doing :wink:


(Originally posted by bengotow on GitHub.)

I’ve been trying to crack this problem for a little while now, but I just can’t seem to get the understanding of the program in order to fix it myself.

I think you might find this useful for implementing the gmail tabs/categories system.


(Originally posted by mononen on GitHub.)

The above link explains that they are simply an extension to the IMAP standard, and implemented with similar API to IMAP folders. Should be possible to add to Mailspring and I would certainly love to see it supported.


(Originally posted by leebickmtu on GitHub.)

you can set up a filter in gmail settings that attaches the label.
If the email matches category:primary you can set the filter to attach the label “primary”. Then create the label in mailspring and it works perfectly.
It also works for category:updates, category:social and so on


(Originally posted by omaregb on GitHub.)

Airmail is able to do this, so it is possible. It looks for Category = Promotions or Category = Social, for example, to recreate those folders in the Mac client. I don’t know which API or field they are getting those from, but they are definitely available from Gmail via IMAP somehow.


(Originally posted by BryanWall on GitHub.)