sending images from picasa with thunderbird
May 8th, 2008
Tags: debian, picasa
Using thunderbird to sending images from picasa does not work per default. A little script is needed.
1. Create this file
CODE:
-
/opt/picasa/bin/picasa-hook-email.sh
2. paste this code into the file and store it
CODE:
-
#!/bin/bash
-
-
# Thunderbird may fail on some systems because of Picasa's
-
$LD_LIBRARY_PATH
-
unset LD_LIBRARY_PATH
-
# Find the Thunderbird executable
-
THUNDERBIRD=$(which icedove 2> /dev/null)
-
if [ -z "$THUNDERBIRD" ] ; then
-
THUNDERBIRD=$(which thunderbird 2> /dev/null)
-
fi
-
if [ -z "$THUNDERBIRD" ] ; then
-
exit 1
-
fi
-
ARG=$(echo "$1" | sed 's/^mailto:?//' | sed 's/%/%25/g' | sed 's/,/%2C/g')
-
CONTENT=$(echo "$ARG" | sed 's/\&attach=.*//' | sed 's/\&/,/g')
-
ATTACH=$(echo "$1" | sed 's/\&attach=/\n\nfile:\/\//g' |awk '/^file:/ { printf "%s,",$0 }')
-
-
NEWARG="${CONTENT},attachment='${ATTACH}'"
-
-
echo "$ARG"> /tmp/xpicasa.tmp
-
-
"$THUNDERBIRD" -compose "$NEWARG"
3. give this script execution permission
CODE:
-
chmod 755 /opt/picasa/bin/picasa-hook-email.sh
4. and restart firefox
Sponsored Links







June 9th, 2008 at 1:02 pm
I have applied this to my system as indicated and it still doesn’t work. It works OK with Gmail but not Thunderbird.
Any suggestions?
Thanks
Allen
June 9th, 2008 at 3:26 pm
Hi Allen.
I justed fixed an error in the script shown on this page. Please try again with the new version and let me know if the error persists.
August 30th, 2009 at 11:18 am
thanks this it works great in Debian lenny
August 31st, 2009 at 1:44 am
And in squeeze as this is the release I am using :)