calendar-assistant
calendar-assistant copied to clipboard
command to call my attention to unread emails from the people I'm about to meet with
As a busy person who's fallen behind on reading email, I want to not ever be surprised in a meeting because there's an email with context that I haven't read yet So that I can prepare my thoughts, the meeting remains focused, and people don't need to rehash the context for me.
Given I have a meeting with Sam
And Sam has just sent an email with context for the meeting
When I run calendar-assistant emails
Then I should get a pointer to the recent, unread emails from Sam
Questions:
- How hard is the necessary API integration with GMail?
- Is there an API endpoint for searching with
from:
qualifiers? - How should I get "pointed at" those emails? Just a URL? Or display them inline in the terminal?
Just a heads up, google is tightening restrictions on apps that request email authorization:
https://www.androidpolice.com/2018/10/08/google-updates-gmail-api-policies-developers-will-require-app-reviews-security-assessments/
Given the way we setup auth right now, this probably isn't a problem - just a heads up because I got a fairly nasty email about a script that working with the emails API.
The Gmail API supports searching for emails using the same syntax as the search bar in gmail.
so you can easily do stuff like: "from: [email protected] is:unread
" and so on
https://support.google.com/mail/answer/7190