Mailing photos from Picasa 3 in Thunderbird 3

Currently if you want to mail photos from Picasa 3 in Thunderbird 3 fails due to this bug .

Workaround for this problem

Open terminal and run the following commands

$ cd /usr/bin

$gksudo gedit picasa-hook-email.sh

Copy and paste the script below into the editor, and edit (if neccessary) the "PATH_TO_TBIRD=" line to the command that normally launches Thunderbird. (If you have a desktop launcher for Thunderbird then open it with kwrite and look at the "exec=" line.)

#!/bin/sh
# picasa-hook-email.sh
# Edit the next line
PATH_TO_TBIRD=thunderbird
emailstr=$(echo "$1″|sed ‘s/mailto:?/to=,/'|\
sed ‘s/&cc=/,cc=/'|sed ‘s/&bcc=/,bcc=/'|sed "s/&body=/,body=\'/"|\
sed "s/&attach=/\',attachment=\'file:\/\//"|sed ‘s/&attach=/,file:\/\//g')"‘"
$PATH_TO_TBIRD -compose "$emailstr"
#End of picasa-hook-email.sh

Save and exit the file

Or You can download this script from here

Now you need to change the permissions to the script

$chmod 755 /usr/bin/picasa-hook-email.sh

Now you need to close your thunderbird and open it again you should be able to mail photos from Picasa 3 in Thunderbird 3

Thanks to Josh Stump for this tip

Sponsored Link

Incoming search terms:

Related posts

13 thoughts on “Mailing photos from Picasa 3 in Thunderbird 3

  1. I created the script and have it working, but shouldn’t the picture I want to send be already attached in the e-mail?

    [Reply]

  2. I apologize for the previous comment! This script works perfectly with Tbird 3.0.1.0 and Picasa 3.0.0; My mistake was to use the command in the Tbird launcher (thunderbird $u) instead of the simple “thunderbird” in the first line. Thanks!

    [Reply]

  3. Can someone copy the working scriptfile and post it here. I can´t seem to get it working, using Picasa 3.8 and Mint 9,

    [Reply]

  4. I wrote this script back in 2010 for use in Mandriva with Picasa 3.00 (Build 57.4402,0) and the early versions of Thunderbird 3

    Here is the original article:-
    http://forum.mandriva.com/en/viewtopic.php?f=92&t=124148&hilit=picasa

    It would have been good to see some credit here :(

    The instructions posted here are not very clear, and possibly explain some of the problems.

    1. The script must be saved to /usr/bin
    2. It must be made executable
    3. The PATH_TO_TBIRD= must hold the command that runs Thunderbird.

    I just tested it again in Mageia 2 with Thunderbird Daily build and my original Picasa version and it works perfectly.

    I have not tested with any later versions of Picasa as the one I have does all I need ;)

    I hope that helps,

    Barry

    [Reply]

  5. Now second month of trying to solve this. Have put exact script into picasa-hook-email.sh and copied file to /usr/bin, /opt/google and all folders containing picasa. Have also tried changing “PATH_TO_TBIRD” to “thunderbird %u”, etc. Am using Mint 14 on Acer laptop – funny thing is I beat it last year on PC running Ubuntu, but can’t remember how!

    [Reply]

  6. Watch out for bad single quotes when copy/pasting that script…a number of them are incorrect…fix that and the script should work fine.

    [Reply]

Leave a comment

Your email address will not be published. Required fields are marked *