gauteh / lieer

Fast email-fetching and sending and two-way tag synchronization between notmuch and GMail
http://lieer.gaute.vetsj.com
Other
494 stars 60 forks source link

How do I only pull messages matching a label? #236

Open listx opened 1 year ago

listx commented 1 year ago

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?

gauteh commented 1 year ago

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 1 year ago

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.