mozilla mailto links that work with mutt on a remote server

markjugg on 2004-05-21T12:44:31

I've wanted a solution for this for years.

I use mutt to read email in a remote terminal window. I'd still like to be able to click on an e-mail link in a browser and send an e-mail directly. Sure, I could copy/paste it. However, one application I use also usually passes a subject and body through the link.

That would be a pain in the ass to copy and paste.

Here's my solution: I'm using the mozex plugin for Mozilla on my Linux desktop.

With that installed, I can set the mailer command of my choice. I use this:

xterm -e ssh -t mark@myserver mutt 'mailto:%A?subject=%S&cc=%C&body=%B'

For icing, I share SSH keys with the server. With ssh-agent in play, I don't even have to enter a password. Mutt just pops right up.

Very nice.

But there's just one drawback. The link I want to follow comes through a submit button rather than an anchor tag, and that doesn't appear to be supported yet. Sigh.

Oh well. The other feature of mozex that makes it worthwhile for me is that it allows me to edit textareas in the text editor my choice, making it super comfy to make journal entries like this.

Happy Friday!


Testing mozex

cog on 2004-05-24T16:43:21

Wow... this is really nice :-) I'm actually editing this entry with vim :-)
(and that's good, 'cause this way I have spell checking enabled)

But it still is a little bit weird... After editing the file, the text area
only gets updated when I click on it with the mouse... :-| And that's not
really clever, because I'm also allowed to write on it, but after clicking on
it with the mouse I loose all the changes I made on the page and get the ones
I did on vim :-|

Oh well, but don't let that stop you :-) Just edit and click, I guess... :-)

Thanks, Mark :-)

Re:Testing mozex

cog on 2004-05-24T16:54:55

(and that's good, 'cause this way I have spell checking enabled)

and Perl, too :-)