[olug] make alpine your default mail program for mailto: links

Adam Haeder adamh at aiminstitute.org
Tue Jun 15 20:42:22 UTC 2010


This should work in any Linux web browser that honors the Gnome 'Preferred 
Email Application' setting.

Create this script and save it somewhere. Mine is 
/home/adamh/scripts/firefox_pine.sh:

#!/bin/sh
ADDR=$(echo $1 | sed s/"mailto:"//g)
alpine $ADDR

Be sure to chmod +x it.

Now go to System -> Preferences -> Preferred Applications
Set "Mail Reader" to "Custom", and in Command put:
/home/adamh/scripts/firefox_pine.sh "%s"

Then check the 'Run in terminal' checkbox.

Now click on a mailto link in Firefox. It's not perfect, I wish it could 
communicate with your currently running copy of pine so you don't have to 
re-login to your SMTP server every time, but it's still pretty useful.

--
Adam Haeder
Vice President of Information Technology
AIM Institute
1905 Harney Street, Suite 700
Omaha, NE 68102
402-345-5025 x115
adamh at aiminstitute.org
www.aiminstitute.org



More information about the OLUG mailing list