GMail mailto: links in Linux with perl

Posted by hardwarehank, Sat Jul 22 07:44:08 UTC 2006

So, I removed evolution today so it would stop trying to configure itself. Then, I went and found a perl script that would send me to a gmail compose page. Here’s the result:

#!/usr/bin/perl
# Open about:config
# Set the option "network.protocol-handler.external.mailto" to true
# Create the option "network.protocol-handler.app.mailto" and set it
# to ~/bin/mymailer.pl
use strict ;
my $link = $ARGV[0] ;
$link =~ /mailto:(.*)/ ;
exec "firefox \'http://gmail.google.com/gmail?view=cm&fs=1&tearoff=1&to=$1\'";

Works wonderfully! I’m so happy I found this.

Tags:

Comments

  • no avatar available for Amy Shah Amy Shah
    July 25, 2006 @ 03:04 AM
    Hi there, My name is Amy and I am part of a search firm located in Midtown NY. I came across your profile online and I was wondering if you might be able to offer me some help in my search. I am currently working on a senior Ruby on Rails position open in NYC and I’m trying to locate people who might be interested in this position. If you are interested or know anyone who is interested please ask them to send me a copy of their resume. This is a great full time, full benefits opportunity offering a salary ranging from 80K-100K+ in NYC. Please take a look at the link below for more about the position: http://jobs-sap.icims.com/sap_jobs/jobs/candidate/job.jsp?jobid=1681&mode=view A little bit about the company: The company has developed an innovative new platform for interactive video sharing. Their framework is largely based on Ruby on Rails along with other open source technologies. They have received a lot of media attention lately and are doing well. I appreciate any help. Thanks! Amy Shah Sr. Technical Recruiter Shulman Fleming & Partners Office:(646) 285-0500 x214 Cell: (732) 485-1740 Amy@sap8.com

Have your say

A name is required. You may use Markdown in your comments.