googGitHub

Gmail drafts

Write drafts with attachments or replies from the terminal, and open messages straight from a Gmail link.

v0.2.2

Create drafts

Write a draft with any number of attachments. The body can come from text, a file or stdin.

$goog mail draft --to teammate@example.com --subject 'Status update' --body @./message.txt --attachment ./report.pdf

Reply drafts

--reply-to creates the draft in the original message's thread.

$goog mail draft --reply-to MESSAGE_ID --body 'Thanks, I will review it today.'

Gmail links

mail read accepts a message link copied from Gmail in the browser.

$goog mail read "https://mail.google.com/mail/u/0/#inbox/MESSAGE_ID"
Downloads and checksums on GitHub