gauteh/lieer

How do I only pull messages matching a label?

listx opened this issue · 14 comments

listx commented

I want to use lieer to sync only those messages that have already been filtered by Gmail to a particular label. E.g., I have a git label which is the only group of emails I'm interested in synching with lieer. Is this feasible?

Not at the moment, but something based on changing query: https://github.com/gauteh/lieer/blob/master/lieer/remote.py#L85 and probably the query here https://github.com/gauteh/lieer/blob/master/lieer/gmailieer.py#L333 .. but there's a danger that gmailieer somewhere will think that all those messages that don't match the query are deleted locally. Maybe that won't be an issue.

listx commented

but there's a danger that gmailieer somewhere will think that all those messages that don't match the query are deleted locally. Maybe that won't be an issue.

Correct --- I would only be pulling those emails that match the git remote label, so I wouldn't care if any non-matching local messages are deleted.