Quick Gmailer
06 Oct 2011
At work I very rarely use my company-supplied computer, opting to use my personal machine with all my stuff on it. The only drawback to this is that I can't access the internal wiki or print. Drawbacks indeed. Since I typically have a terminal open, I wrote this script to send myself internal links that I might get via e-mail or files I want to visualise on some dead trees. It's very simple but means I don't have to go to Gmail and do it all manually.
It accepts a range of parameters depending on whether you want a subject, body, attachment or mixture. The following examples assumed the script is aliased to 'g' (which the chicks dig)
g 'http://www.some-obscure-internal-link.com'
g ~/Desktop/secret_documents.txt
g 'Some subject' 'Some body text....' /path/to/attachment
g # Read from stdin
Not much to say about it! Check it out at Github