aMSN Forums
April 20, 2018, 09:27:47 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Launching a email app insted of a web browser  (Read 26381 times)
Grunty
Newbie

Offline Offline

Posts: 24


View Profile
« 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 Smiley
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
Logged
vivia
Administrator
Super Power User
*****
Offline Offline

Posts: 2464


View Profile
« Reply #1 on: April 13, 2006, 10:10:03 pm »

Thanx a lot !!
Logged
scapor
Newbie

Offline Offline

Posts: 1


View Profile
« Reply #2 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.
Logged
Grunty
Newbie

Offline Offline

Posts: 24


View Profile
« Reply #3 on: April 14, 2006, 04:58:07 pm »

Thank you for making the post a sticky  Cheesy :lol:
Logged
info@centromedia.com
Newbie

Offline Offline

Posts: 6


View Profile
« Reply #4 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
Logged
majinsoftware
Super Power User
**
Offline Offline

Posts: 164


View Profile
« Reply #5 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.
Logged
info@centromedia.com
Newbie

Offline Offline

Posts: 6


View Profile
« Reply #6 on: March 28, 2007, 08:23:34 am »

I tried both, but is does not work.
Logged
majinsoftware
Super Power User
**
Offline Offline

Posts: 164


View Profile
« Reply #7 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.
Logged
info@centromedia.com
Newbie

Offline Offline

Posts: 6


View Profile
« Reply #8 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
Logged
majinsoftware
Super Power User
**
Offline Offline

Posts: 164


View Profile
« Reply #9 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.
Logged
majinsoftware
Super Power User
**
Offline Offline

Posts: 164


View Profile
« Reply #10 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!