aMSN Forums

aMSN Support => General => Topic started by: Grunty on April 13, 2006, 09:40:59 pm



Title: Launching a email app insted of a web browser
Post by: Grunty on April 13, 2006, 09:40:59 pm
<Linux>
I got my hotmail set up in Mozilla Thunderbird using the Webmail extention.
I wanted amsn to launch thunderbird for email and Firefox for links.
So i created the script below which should work on most linux computers save the script as "linksamsn.sh"

Code:

#!/bin/sh
############## Written by Daniel Searle ##############
############## (C) Daniel Searle 2006 ################

if [ -z "$1" ]; then # make sure its not blank
              exit #exit the program
fi
USERNAME=$(whoami) #get the users name

if [ $1 = "-firsttime" ]; then #is it the first run?
echo $2 > "/home/$USERNAME/.amsn/hotmaillink.txt" # save the email link
exit     #exit obvious?
fi

emaillink=$( cat "/home/$USERNAME/.amsn/hotmaillink.txt" )
if [ $1 = $emaillink ]; then
#is it theemail link?
thunderbird # launch thunderbird
else
firefox $1 #launch firefox
fi


save this to your home directory then copy it to '/usr/bin/'
(logged in as root)
using the command:
Code:

cp ./linkamsn.sh /usr/bin

To make the file executable use this command:
Code:

chmod +x /usr/bin/linkamsn.sh


In amsn go to Tools-> Prefrences
then the others tab
edit the browser text to:
Code:

linkamsn.sh -firsttime $url

Click ok
Then click on the email link (it wont do anything) so just click on it once
Then go back to your Tools -> Prefrences -> Other
Then edit the browser text to:
Code:

linkamsn.sh $url

Click ok
and all should be fine :)
if you find any errors/bugs or you need some help with this script contact me from this thread.

hope this helped anyone who was wondering how to do this :wink:

Grunty


Title: Launching a email app insted of a web browser
Post by: vivia on April 13, 2006, 10:10:03 pm
Thanx a lot !!


Title: hotmail fetching with gotmail
Post by: scapor on April 13, 2006, 10:34:17 pm
There also a nice commandline tool called "gotmail" which can fetch mails from a hotmail account to mbox files.  This way you can view your hotmail account in any desktop email-app like evolution or kmail and have 'm put in the same foldersas your other mail.  you can have amsn run gotmail and open your e-mail app afterwards when you click the hotmail links too.


Title: Launching a email app insted of a web browser
Post by: Grunty on April 14, 2006, 04:58:07 pm
Thank you for making the post a sticky  :D :lol:


Title: Launching a email app insted of a web browser
Post by: info@centromedia.com on March 28, 2007, 08:07:34 am
I still couldn't find a solution, no man's answering in this forum, no documentation exists.

Here's the list of what I tried

C:\Programmi\Mozilla Thunderbird\thunderbird.exe
C:\Programmi\Mozilla Thunderbird\thunderbird.exe -compose "to='$recipient'"
thunderbird -compose "to='$recipient'"
thunderbird.exe -compose "to='$recipient'"
C:\Programmi\Mozilla Thunderbird\thunderbird.exe $recipient
$recipient

nothing's working here :-(


CAN YOUR SCRIPT BE ADAPTED FOR MS-WINDOWS


Title: Launching a email app insted of a web browser
Post by: majinsoftware on March 28, 2007, 08:15:35 am
try

"C:\\Programmi\\Mozilla Thunderbird\\thunderbird.exe"


Also be nice if you would delete all the same posts over the rest of the board, you only needed to ask once and wait for a answer.


Title: Launching a email app insted of a web browser
Post by: info@centromedia.com on March 28, 2007, 08:23:34 am
I tried both, but is does not work.


Title: Launching a email app insted of a web browser
Post by: majinsoftware on March 28, 2007, 08:31:16 am
just edited my post and it should work like that, thats how it works on my amsn with the pop3 plugin.


Title: Launching a email app insted of a web browser
Post by: info@centromedia.com on March 28, 2007, 08:44:27 am
why should I need the pop3 plugin ? I want only to send emails through thunderbird and not ckeck it inside AMSN


Title: Launching a email app insted of a web browser
Post by: majinsoftware on March 28, 2007, 08:51:39 am
well what i use is pop3 so then i can check and if i want to send is just click the little mail icon and it opens up thunderbird.


Title: Launching a email app insted of a web browser
Post by: majinsoftware on March 28, 2007, 09:11:58 am
here you go then if you are useing the amsn options thing for sending emails



"C:\\Programmi\\Mozilla Thunderbird\\thunderbird.exe" -compose "mailto:$recipient"

due to bug in thunderbird 1.5 the -compose doesn't work the normal way.