Forum général.général Firefox && Thunderbird: comment les marier ???

Posté par  .
Étiquettes :
0
21
sept.
2004
Bonjour,

Je cherche a faire que les URL que je clickouze dans Thunderbird 0.8 ouvre une nouvelle tab dans mon Firefox RC1 et inversément, quand je clickouze sur une adresse email dans Firefox.

Dans mon $HOMe/bin, j'ai deux scripts: browser.sh, pour lancer FF à partir de TB et mailto.sh qui fait l'inverse. J'ai référencé browser.sh dans
~/.thunderbird/default/XXXXX/user.pref: user_pref("network.protocol-handler.app.http", "/home/hideo/bin/browser.sh");

Et mailto.sh dans:
~/.mozilla/firefox/default.h5u/user.js
user_pref("network.protocol-handler.app.mailto", "/home/hideo/bin/mailto.sh");

Mais rien n'a faire je galère ...
> thunderbird &
/mnt/storage/thunderbird/mozilla-bin: Error: Failed to send command: 500 command not parsable: http://www.betavote.com/(...)

Et Firefox veux chaque fois m'ouvrir un nouveau TB au lieu d'utiliser l'ancien ...

Mes scripts sont les suivants:

# browser.sh
#!/bin/sh
export BROWSER_HOME="/mnt/storage/firefox"
url="$1"
if [ "x$url" = "x" ]
then
url="about:blank"
fi
if $BROWSER_HOME/mozilla-xremote-client openURL\("$url"\)
then
exit 0
fi
exec $BROWSER_HOME/firefox "$url"

# mailto.sh
#!/bin/sh
export tb=/mnt/storage/thunderbird/thunderbird
$tb -remote "mailto($1?subject=$2)" || exec $tb -P default -compose mailto:$1?subject=$2


J'espère que d'autres on trouvé la soluce, je suis sec :-////

Merci d'avance en tt cas ...
  • # Script que j'utilise avec Thunderbird et Opera

    Posté par  . Évalué à 4.

    Opera utilise la ligne de commande suivante :
    thunderbirdmail mailto:[%t]?cc=[%c]&subject=[%s]&body=[%b]

    Et thunderbirdmail correspond au script suivant (trouvé je ne sais plus où) :

    #!/bin/sh
    ## Variables
    THUNDERBIRD="/usr/bin/thunderbird"
    PARAM="";

    # Check if command line arguments have the form "mailto:somebody@somewhere.com?subject=something"
    # if that's true put "somebody@somewhere.com?subject=something" in MAILTO address
    MAILTO=`echo $@ | awk -F\: '$1 ~ /mailto/ {print $2}'`

    # force %d-%m%-Y dateformat
    export LC_TIME=fr_FR;

    # Check if Thunderbird is running. (Ugly hack, remote options doesn't work)
    TBNUM=`ps -A | grep -c thunderbird-bin`;

    if [ $TBNUM -eq 0 ]; then
    # No running Thunderbird instance: fire up a new copy of the email client.
    if [ -z $MAILTO ]; then
    # No email address, just run Thunderbird
    exec $THUNDERBIRD &
    else
    # Run Thunderbird and open a compose window with the address $1 in the To: field
    exec $THUNDERBIRD -mail "mailto:$MAILTO" &
    fi
    else
    if [ -z $MAILTO ]; then
    # No email address: open inbox.
    PARAM="xfeDoCommand(openInbox)";
    else
    # Start new compose window with the address $1 in the To: field
    PARAM="mailto($MAILTO)";
    fi

    # Open new compose window, or inbox in an already running Thunderbird instance.
    exec $THUNDERBIRD -remote "$PARAM" &
    fi

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.