Skip to content

Instantly share code, notes, and snippets.

@barn
Created April 9, 2013 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barn/5345701 to your computer and use it in GitHub Desktop.
Save barn/5345701 to your computer and use it in GitHub Desktop.
Use this in mutt a like so: macro index <esc>g "<enter-command>unset wait_key<enter>|load_me_in_gmail.sh\n" macro pager <esc>g "<enter-command>unset wait_key<enter>|load_me_in_gmail.sh\n" and now ESC-g will load a search in your "web browser" pointing at the message you had highlighted. (Can you jump straight to it?)
#!/bin/sh
#
# I think this will take STDIN and do magic with it.
open "https://mail.google.com/mail/u/0/#search/rfc822msgid:$( awk 'tolower($0) ~ /^message-id: / {print $2}' | tr -d '[><]')%20in:anywhere" & >/dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment