MailMe is a super short ruby script that uses pony
to send yourself a file from the computer you're on.
git clone https://gist.github.com/cb0ca98e1b27342a6720.git ~/mailme
gem install pony
cd ~/mailme
ln -s $PWD/mailme /usr/local/bin/
The mailme
script is stored in the file ~/mailme/mailme
, and symlinked to your /usr/local/bin/
. After restarting your terminal, the command mailme
will be available.
mailme FILENAME.TXT
- The "me" is gleaned from your
git config --global user.email
- The file that is sent is provided as the first argument to the command.
- Warning: mail sent from the local computer via
pony
is often caught in a spam filter, make sure the message actually arrives in your inbox.
The user interface I really want is
mailme FILENAME
.I can imagine rewriting this to use
mail
and remove the ruby dependency and that'd be great! But I've got a stumbling point.OS X doesn't come with the command line utility
mutt
(aMIME
utility needed to do attachments withmail
).pony
brings in a ruby MIME package and uses it in conjunction withmail
. Right now I suspect the ruby dependency is more lightweight than one would be onmutt
.