1. Open your favorite text editor and enter the following code:
#!/bin/sh
gmailargs=`echo $1
sed 's/mailto:/to=/'
sed 's/\?subject=/\&su;=/'
\
sed 's/\?cc=/\&cc;=/'
sed 's/\?bcc=/\&bcc;=/'
sed 's/\?body=/\&body;=/'`
firefox -remote "openurl(https://mail.google.com/mail?view=cm&$gmailargs, new-tab )"
2. Save it in the file to you home directory and give it a .sh extension, for example /.mailto.sh
3. Set the default mail reader for the system in System > Prefrences > Preferred Applications. Under Mail Reader choose Custom, in the Command field, type the path to your script, adding a %s argument. For example, with suggested filename, the command should look like /.mailto.sh %s
No comments:
Post a Comment
Thank You for your Comments, We will read and response you soon...