• Bug#265844: mozilla-thunderbird: clicking on mailto on webpage does not

    From Jaap Haitsma@1:229/2 to All on Sun Aug 15 12:40:09 2004
    From: [email protected]

    Package: mozilla-thunderbird
    Version: 0.7.3-1
    Severity: normal

    Hi,

    If thunderbird is already open and I click on a link in firefox, it
    tries to launch another thunderbird which results in profile dialog.

    It would be nice if you check in the script if Thunderbird is already
    running and then do a -remote call.

    If thunderbird is not running it launches the compose window. I
    personally would prefer that it launched first launched the thunderbird main window and then the compose window. Quite often I have to lookup
    something before I send the mail

    I still have a script which I used sometime ago (before switching to
    Debian). You can find that script here http://ftp.haitsma.org/mozilla-scripts/thunderbird

    Cheers,

    Jaap

    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.6-1-686
    Locale: LANG=en_US, LC_CTYPE=en_US

    Versions of packages mozilla-thunderbird depends on:
    ii libatk1.0-0 1.6.1-3 The ATK accessibility toolkit
    ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries an ii libfontconfig1 2.2.3-1 generic font configuration library ii libfreetype6 2.1.7-2.2 FreeType 2 font engine, shared lib ii libgcc1 1:3.4.1-5 GCC support library
    ii libglib2.0-0 2.4.5-2 The GLib library of C routines
    ii libgtk2.0-0 2.4.4-2 The GTK+ graphical user interface ii libpango1.0-0 1.4.1-1 Layout and rendering of internatio ii libstdc++5 1:3.3.4-7 The GNU Standard C++ Library v3
    ii libx11-6 4.3.0.dfsg.1-6 X Window System protocol client li ii libxext6 4.3.0.dfsg.1-6 X Window System miscellaneous exte ii libxft2 2.1.2-6 FreeType-based font drawing librar ii libxp6 4.3.0.dfsg.1-6 X Window System printing extension ii libxrender1 0.8.3-7 X Rendering Extension client libra ii libxt6 4.3.0.dfsg.1-6 X Toolkit Intrinsics
    ii xlibs 4.3.0.dfsg.1-6 X Window System client libraries m ii zlib1g 1:1.2.1.1-5 compression library - runtime

    -- no debconf information


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Alexander Sack@1:229/2 to All on Sun Aug 15 13:20:04 2004
    From: [email protected]

    If thunderbird is already open and I click on a link in firefox, it
    tries to launch another thunderbird which results in profile dialog.



    Hmm, that's strange ... for me it works like this:

    mozilla-thunderbird -compose mailto:[email protected]
    works

    the second one:
    mozilla-thunderbird -compose mailto:[email protected]

    works too!

    So what are you doing wrong? Maybe your link is somehow special?

    It would be nice if you check in the script if Thunderbird is already
    running and then do a -remote call.



    I already do!! Take a look at the mozilla-thunderbird script. I check
    for the
    lock being existing. If that is there I will do a remote call.

    I choose to do it that way, because the remote ping command takes quite
    a while
    to come back if no instance is running ... this would defer the start unnecessarily.

    Nevertheless, the idea to always open the Inbox and then the compose
    window is a good option IMHO

    Nevertheless this change will not be uploaded for sarge, since I don't
    want to introduce any changes anymore. Would be too dangerous!


    I still have a script which I used sometime ago (before switching to
    Debian). You can find that script here >http://ftp.haitsma.org/mozilla-scripts/thunderbird



    Thx, I will suggest that script ... please keep it online till I close
    this bug some day :) ... or attach it to this bug!

    --
    GPG messages preferred. | .''`. ** Debian GNU/Linux **
    Alexander Sack | : :' : The universal
    [email protected] | `. `' Operating System
    http://www.jwsdot.com/ | `- http://www.debian.org/



    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Jaap Haitsma@1:229/2 to Alexander Sack on Sun Aug 15 14:40:07 2004
    From: [email protected]

    This is a multi-part message in MIME format.
    Alexander Sack wrote:

    If thunderbird is already open and I click on a link in firefox, it
    tries to launch another thunderbird which results in profile dialog.



    Hmm, that's strange ... for me it works like this:

    mozilla-thunderbird -compose mailto:[email protected]
    works

    the second one:
    mozilla-thunderbird -compose mailto:[email protected]

    works too!

    That works also for me. I found the problem I set my preferred mail
    reader in the Preferred apps to mozilla-thunderbird %s if I change that
    to mozilla-thunderbird -compose %s it works. IMHO it's a bug that I have
    to add -compose to that string, because other apps might use that
    setting to just fire up thunderbird. So the script should just parse the command line and if it sees a mailto add the -compose itself. (That's
    what my script does)

    It would also be nice if Thunderbird can be added to the list of
    preferred mail reader apps. Don't know if that should be filed here or
    in the gnome control center.

    Attached the script for you.


    Jaap



    So what are you doing wrong? Maybe your link is somehow special?

    It would be nice if you check in the script if Thunderbird is already
    running and then do a -remote call.



    I already do!! Take a look at the mozilla-thunderbird script. I check
    for the
    lock being existing. If that is there I will do a remote call.

    I choose to do it that way, because the remote ping command takes quite
    a while
    to come back if no instance is running ... this would defer the start unnecessarily.

    Nevertheless, the idea to always open the Inbox and then the compose
    window is a good option IMHO

    Nevertheless this change will not be uploaded for sarge, since I don't
    want to introduce any changes anymore. Would be too dangerous!


    I still have a script which I used sometime ago (before switching to
    Debian). You can find that script here
    http://ftp.haitsma.org/mozilla-scripts/thunderbird



    Thx, I will suggest that script ... please keep it online till I close
    this bug some day :) ... or attach it to this bug!



    #!/bin/bash
    #set -x # Uncomment "set -x" for debugging

    export MOZILLA_FIVE_HOME="/usr/lib/thunderbird"

    #check if command line arguments have the form "mailto:[email protected]?subject=something"
    #if that's true put "[email protected]?subject=something" in MAILTO address
    MAILTO=`echo $@ | awk 'BEGIN{FS=":"} $1 ~ /mailto/ {print $2}'`

    THUNDERBIRD_PATH="/usr/lib/thunderbird"

    if [ -z "`ps x | grep \"[0-9] ${THUNDERBIRD_PATH}/thunderbird-bin\"`" ]; then
    # No thunderbird running
    ${THUNDERBIRD_PATH}/thunderbird $@
    else
    # thunderbird running - raise window
    ${THUNDERBIRD_PATH}/thunderbird -remote "xfeDoCommand(openInbox)"
    fi

    if [ -n "$MAILTO" ]; then
    ${THUNDERBIRD_PATH}/thunderbird -remote "mailto($MAILTO)"
    fi

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Alexander Sack@1:229/2 to All on Sun Aug 15 15:10:07 2004
    From: [email protected]


    That works also for me. I found the problem I set my preferred mail
    reader in the Preferred apps to mozilla-thunderbird %s if I change
    that to mozilla-thunderbird -compose %s it works. IMHO it's a bug that
    I have to add -compose to that string, because other apps might use
    that setting to just fire up thunderbird. So the script should just
    parse the command line and if it sees a mailto add the -compose
    itself. (That's what my script does)

    There is currently no standard for mail reader commands in debian.
    Unless that is done, I won't change that behaviour until there is
    something like a standard for a x-mail-composer/reader alternative
    command (like x-www-browser). Until then I will stick to -compose,
    because upstream uses it to compose mail. and it prints that on --help.

    It would also be nice if Thunderbird can be added to the list of
    preferred mail reader apps. Don't know if that should be filed here or
    in the gnome control center.

    I already filed that one at gnome-control-center (including a patch),
    but the old maintainer (marillat) didn't like that idea.
    Maybe you can find that bug in the archive and can refer to it, when
    posting a new wishlist bug.
    Maybe you want to refer to this bug too.

    If you have luck, the new maintainers will do it manually. IMHO, the
    best solution would still be, to add a standardized x-mail-composer
    command to the alternatives system and add that one to the
    control-center only! Good luck

    Attached the script for you.

    Thx

    --
    GPG messages preferred. | .''`. ** Debian GNU/Linux **
    Alexander Sack | : :' : The universal
    [email protected] | `. `' Operating System
    http://www.jwsdot.com/ | `- http://www.debian.org/



    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Jaap Haitsma@1:229/2 to Alexander Sack on Sun Aug 15 16:50:06 2004
    From: [email protected]

    Alexander Sack wrote:


    That works also for me. I found the problem I set my preferred mail
    reader in the Preferred apps to mozilla-thunderbird %s if I change
    that to mozilla-thunderbird -compose %s it works. IMHO it's a bug that
    I have to add -compose to that string, because other apps might use
    that setting to just fire up thunderbird. So the script should just
    parse the command line and if it sees a mailto add the -compose
    itself. (That's what my script does)

    There is currently no standard for mail reader commands in debian.
    Unless that is done, I won't change that behaviour until there is
    something like a standard for a x-mail-composer/reader alternative
    command (like x-www-browser). Until then I will stick to -compose,
    because upstream uses it to compose mail. and it prints that on --help.

    You can just check if the first thing on the command line is mailto: if
    it is you prepend -compose if it isn't you do nothing. So you keep the
    same behaviour as upstream, only you have a nice extra feature ;-)



    It would also be nice if Thunderbird can be added to the list of
    preferred mail reader apps. Don't know if that should be filed here or
    in the gnome control center.

    I already filed that one at gnome-control-center (including a patch),
    but the old maintainer (marillat) didn't like that idea.
    Maybe you can find that bug in the archive and can refer to it, when
    posting a new wishlist bug.
    Maybe you want to refer to this bug too.

    If you have luck, the new maintainers will do it manually. IMHO, the
    best solution would still be, to add a standardized x-mail-composer
    command to the alternatives system and add that one to the
    control-center only! Good luck

    I'll give it a try

    Jaap


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)