Open Bug 509643 Opened 11 years ago Updated 1 year ago

Email generated from Picasa 2 & 3 and F-Spot for sending image fail to attach image (attachment='fileurl,fileurl2' doesn't work)

Categories

(Thunderbird :: OS Integration, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: maggieh, Unassigned, NeedInfo)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090803 Fedora/3.5.2-2.fc11 Firefox/3.5.2
Build Identifier: Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2

An email generated from all locations within Picasa 2 & 3 mention the image details in all cases but the image fails to attach. Thunderbird has no error message. F-spot error: Message Compose "An error occurred while creating a message compose window. Please try again"
Same result if Thunderbird is running or not.


Reproducible: Always

Steps to Reproduce:
1. Select Thunderbird as Preferred Mail Reader (Fedora 11 >System>Preferences Preferred Applications>Mail Reader>Thunderbird
2. Open Picasa 2 or 3.
3. Select image from folder and then at Photo Tray
4. The click Email
Actual Results:  
You have been sent 1 picture.

image87.jpg

These pictures were sent with Picasa, from Google.
Try it out here: http://picasa.google.com/

But there is no image attched

Expected Results:  
image87.jpg should have been attched

This feature worked fine in the previous version of Thunderbird - and has become unavailable as a result of upgrading from Fedora 10 to Fedora 11.

This feature is essential if sending an image to a dial-up service as it limits the size of the image file to something reasonable for it to handle.

This feature works fine with Evolution 2.26.3 - as long as it already running. If Evolution is not running an error message is generated "You cannot attach the file .......... to this message. No such file or directory
Anything in Tools -> Error console ?
Component: General → OS Integration
QA Contact: general → os-integration
At least F-spot use wrong command to attach files, eg.:

thunderbird-bin -compose subject=my photos,attachment=',file:///tmp/tmp499242b8.tmp/img_8765.jpg,file:///tmp/tmp499242b8.tmp/img_8763.jpg'

Please note comma after "attachment=". I just filled correspondent bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=591452
From a private email : 

Error: [Exception... "'JavaScript component does not have a method named: "handleEvent"' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "<unknown>"  data: no]
> thunderbird-bin -compose subject=my

You/it shouldn't call thunderbird-bin directly. It should call "thunderbird"
(In reply to comment #4)
> > thunderbird-bin -compose subject=my
> 
> You/it shouldn't call thunderbird-bin directly. It should call "thunderbird"

It is not calling thunderbird directly, I believe. This command and its parameters I got by using 'ps ax'.
Hm, comma separating attachments like that doesn't seem to work (not in tb2 either). Only the first one gets through. I wonder if bug 454064 might help.
(In reply to comment #6)
> Hm, comma separating attachments like that doesn't seem to work (not in tb2
> either). 

Hmm, it works for me. It is important to use right quotation as shown at:
http://kb.mozillazine.org/Command_line_arguments_%28Thunderbird%29
URL: NA
(In reply to comment #7)
> (In reply to comment #6)
> > Hm, comma separating attachments like that doesn't seem to work (not in tb2
> > either). 
> 
> Hmm, it works for me. It is important to use right quotation as shown at:
> http://kb.mozillazine.org/Command_line_arguments_%28Thunderbird%29

So you had misconfigured something right ?

John B. does any of the discussion above helps for your case ?
Unsure re help. Are you suggesting I re-install Picasa correctly?

I'm a newbee to Linux. I was expecting a mod to be made to Thunderbird.

John B
Whiteboard: [support]
I didn't retest tb2, but at least in tb3 nightlies comma separating attachments do not work (file:// urls and normal paths behave the same)

./thunderbird -compose subject=photos,attachment="/home/magnus/tmp/unsubscribe.txt,/home/magnus/tmp/unsubscribe2.txt"
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Email generated from Picasa 2 & 3 and F-Spot for sending image fail to attach image → Email generated from Picasa 2 & 3 and F-Spot for sending image fail to attach image (attachment='fileurl,fileurl2' doesn't work)
Whiteboard: [support]
Duplicate of this bug: 532733
(In reply to comment #10)

Try the following:

> ./thunderbird -compose
> subject=photos,attachment="'/home/magnus/tmp/unsubscribe.txt,/home/magnus/tmp/unsubscribe2.txt'"
Thx, that works!
Can anyone provide the *original* command line with which Picasa is calling Thunderbird? According to bug 532733, it worked with Thunderbird 2.0 but no longer with 3.0, thus some format other than comment #10 must be used or it wouldn't work with 2.0 either.
Well, this is what it passes to picasa-hook-email.sh when it is used:-
mailto:?subject=2 pictures for you&cc=&bcc=&body=You have been sent 2 pictures.

DCP_2559.JPG
DCP_2560.JPG

These pictures were sent with Picasa, from Google.
Try it out here: http://picasa.google.com/&attach=/home/baz/.google/picasa/3.0/dosdevices/c:/Documents and Settings/baz/Local Settings/Application Data/Google/Picasa2/temp/email/temp_3/DCP_2559.JPG&attach=/home/baz/.google/picasa/3.0/dosdevices/c:/Documents and Settings/baz/Local Settings/Application Data/Google/Picasa2/temp/email/temp_3/DCP_2560.JPG

However passing this straight on to TB2 with
mozilla-thunderbird -compose "$1"
strips all line feeds in the subject and no attachments are added.
Picasa maybe sends a different string to TB directly.

Still see this issue?

Severity: major → normal
Flags: needinfo?(zen25000)
Flags: needinfo?(maggieh)
You need to log in before you can comment on or make changes to this bug.