send email with attachement from openoffice through thunderbird fails: "unable to open the temporary file"

Bug #201655 reported by Christopher Hübner
6
Affects Status Importance Assigned to Milestone
Mozilla Thunderbird
Invalid
Medium
mozilla-thunderbird (Ubuntu)
Invalid
Low
Unassigned

Bug Description

After a few tests, it seems that thunderbird won't send an attachment using the OpenOffice UNO-Service com.sun.star.system.SimpleCommandMail when there is an non-ASCII charakter (german umlaut) in the path of the attachment location.
Using the built-in OO-function "send email as pdf" everthing works fine (as the attachement is saved in /tmp without any special characters).
Surprisingly thunderbird has no problem with files in folders with special characters that are attached to manual created emails (not using openoffice).

open a file with an Umlaut öäüÖÄÜ (like the file in comment
https://bugs.launchpad.net/ubuntu/+source/mozilla-thunderbird/+bug/201655/comments/10

in OOo File -> Send -> document as email (with thunderbird/icedove in Extras -> Options -> Internet -> email )

You will get a new message windows from thunderbird/icedove

Enter a recipient and press send.

results: get error message 'Sending message failed. Temporary file /tmp/sv1g1.tmp/sv1g3.tmp/filename ä.pdf could not be opened. Check your settings for "Temporary folder".'

expected results: It sends email.

Revision history for this message
Chris Cheney (ccheney) wrote :

What version of Ubuntu and openoffice.org are you using? Also does it work if you try sending using openoffice to evolution?

Thanks,

Chris Cheney

Changed in openoffice.org:
status: New → Incomplete
Revision history for this message
Christopher Hübner (huebnerc) wrote :

I am using Ubuntu 7.10 Gutsy Gibbon, OpenOffice 2.3.0 and Thunderbird 2.0.0.12.
And it works when I use Evolution instead of Thunderbird. Evolution has no problems with 'äöüß'.

Chris Cheney (ccheney)
Changed in openoffice.org:
status: Incomplete → New
Revision history for this message
Chris Cheney (ccheney) wrote :

How do you send the email attachment using the UNO-Service? Is it a special document that uses it or a script of some type? Can you include the file that attempts to send using this method? I have not used this UNO-Service method of sending emails before so I don't know how it works.

Thanks,

Chris Cheney

Changed in openoffice.org:
status: New → Incomplete
Revision history for this message
Christopher Hübner (huebnerc) wrote :

in OO-Basic:

sUrl = ConvertToUrl( "home/user/data.pdf" )
oMailer = createUnoService("com.sun.star.system.SimpleCommandMail")
oMailClient = oMailer.querySimpleMailClient()
oMessage = oMailClient.createSimpleMailMessage()
oMessage.setRecipient( "<email address hidden>" )
oMessage.setSubject( "Subject" )
oMessage.setAttachement( Array(sUrl) )
oMailClient.sendSimpleMailMessage( oMessage, 1 )

Chris Cheney (ccheney)
Changed in openoffice.org:
status: Incomplete → New
Revision history for this message
webograph (webograph) wrote :

i think this needs careful checking; for me, it failed even for "send email as pdf" with a file containint whitespace and umlauts.

system is up-to-date hardy, mua is thunderbird as well.

error message is (translated from german, so probably not byte-perfect): 'Sending message failed. Temporary file /tmp/sv1g1.tmp/sv1g3.tmp/filename ä.pdf could not be opened. Check your settings for "Temporary folder".'
saving the message to an imap folder fails likewise.

Revision history for this message
Chris Cheney (ccheney) wrote :

So is the program that is showing the error message Thunderbird?

Chris

Changed in openoffice.org:
status: New → Incomplete
Revision history for this message
Christopher Hübner (huebnerc) wrote :

I just tested it with the actual Hardy (8.04) Release. The bug doesn't exist anymore. :-)

Revision history for this message
Christopher Hübner (huebnerc) wrote :

Ups ... I should check to the end. When I (at last) really try to send it (clicking the send button) the error message appears. And yes, it is an error message from thunderbird.

Chris Cheney (ccheney)
Changed in openoffice.org:
status: Incomplete → New
Revision history for this message
John Vivirito (gnomefreak) wrote : Re: [Bug 201655] Re: send email with attachement from openoffice through thunderbird fails: "unable to open the temporary file"

Chris Cheney wrote:
> ** Changed in: mozilla-thunderbird (Ubuntu)
> Sourcepackagename: openoffice.org => mozilla-thunderbird
> Status: Incomplete => New
>
>
Can you please give me a few example attachments. I am unable to
reproduce this with my OO.o docs. What version of Ubuntu, Thunderbird,
and OO.o are you using? To find out please run the following commands.
apt-cache policy thunderbird
apt-cache policy openoffice.org
lsb_release -a

 status incomplete

--
Sincerely Yours,
    John Vivirito

https://launchpad.net/~gnomefreak
https://wiki.ubuntu.com/JohnVivirito
Linux User# 414246

Changed in mozilla-thunderbird:
status: New → Incomplete
Revision history for this message
In , Noël Köthe (noel) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008071420 Iceweasel/3.0.1 (Debian-3.0.1-1)
Build Identifier:

Hello,

thunderbird has a problem with Umlaute "öäüßÖÄÜ" in filenames when sending them from OpenOffice.
Doing the same steps with a plain ASCII named file it works without problems.

Reproducible: Always

Steps to Reproduce:
1. OpenOffice.org 2.4 -> Extras -> Options -> Internet -> E-Mail -> Enter thunderbird or "/usr/bin/thunderbird" -> OK
2. start/edit/open any file you want and save it with an Umlaut in the filename ex "ä.odt" (or .doc)
3. in OOo -> File -> Send -> Document as email
4. Thunderbird opens a new email with the attachment "ä.odt"
5. Enter Recipient and then send
Actual Results:
You will get the error:

"Sending message failed. Temporary file /tmp/sv1g1.tmp/sv1g3.tmp/filename ä.odt could not be opened. Check your settings for "Temporary folder".

Expected Results:
the email will be send like files with just ASCII characters.

I tested evolution to check if its a problem of OOo and with evolution as mailer there is no problem (just "evolution" without any option) with Umlaut filenames of attachments.
Adding and sending Umlaut filenames directly with Thunderbird has no problems.

The file Thunderbird wants to send from the temporary directory is there, readable and correct.

Revision history for this message
Noël Köthe (noel) wrote :

open a file with an Umlaut öäüÖÄÜ (like the attached one)

in OOo File -> Send -> document as email (with thunderbird/icedove in Extras -> Options -> Internet -> email )

You will get a new message windows from thunderbird/icedove

Enter a recipient and press send.

Revision history for this message
Noël Köthe (noel) wrote :

I just entered a mozilla bugreport because I have the problem an Debian lenny with OOo 2.4 and Thunderbird/Icedove 2.0.0.14:

https://bugzilla.mozilla.org/show_bug.cgi?id=447606

Revision history for this message
In , Noël Köthe (noel) wrote :

Created attachment 330915
simple file with an Umlaut in the name

Just in case you need a file with an Umlaut

Revision history for this message
In , Tokoe (tokoe) wrote :

Hej,

the problem is in mailnews/compose/src/nsMsgSend.cpp:AddCompFieldLocalAttachments(), where
the NS_ConvertUTF8toUTF16 returns an empty string, since the passed in URL
is not really an UTF8 encoded url.

No mozilla developer could tell me how to fix that though at the moment :(

Ciao,
Tobias

Revision history for this message
John Vivirito (gnomefreak) wrote :

What is the oo.o application that you are using? woth word processor?

Revision history for this message
John Vivirito (gnomefreak) wrote :

Do you have the correct locale packages for Umlaut öäüÖÄÜ? sorry im not sure of the lang but it looks like german.

Revision history for this message
In , Mkmelin+mozilla (mkmelin+mozilla) wrote :

Did you try with thunderbird trunk? I think bug 332110 fixed this.

Revision history for this message
In , Tokoe (tokoe) wrote :

Hej Magnus,

yes, it is fixed in trunk, but not in 1.8 branch, therefor I tried to create
a patch for the branch. To my surprise I came to the same patch as suggested
in 332110 :)

So any chance to get that patch in 1.8 branch?

Ciao,
Tobias

Revision history for this message
John Vivirito (gnomefreak) wrote :

I am able to confirm this as Ubuntu Mozilla Team. Changing status to confirmed and going to move process to duplicate bug.

description: updated
Revision history for this message
John Vivirito (gnomefreak) wrote :

updated description to add procedure, and results information.
added upstream bug to this bug.
Marked as confirmed since i was able to reproduce this bug.

just to add i have this attachment i was trying to send in $HOME/Documents/
not in temporary folder

Changed in mozilla-thunderbird:
importance: Undecided → Low
status: Incomplete → Confirmed
Revision history for this message
John Vivirito (gnomefreak) wrote :

Lets wait and see what upstream says about this.

description: updated
Changed in thunderbird:
status: Unknown → New
Revision history for this message
In , Mkmelin+mozilla (mkmelin+mozilla) wrote :

Not likely, especially given bug 332110 comment 11 (that bug will definitely not get ported over). Either way, bug 332110 would be the place to discuss porting the patch, not here.

*** This bug has been marked as a duplicate of bug 332110 ***

Changed in thunderbird:
status: New → Invalid
Revision history for this message
John Vivirito (gnomefreak) wrote :

Upstream stated this is fixed in 1.9 branch but not in 1.8 and most likely will not be fixed in 1.8 branch closing bug for now please refer to upstream bug for more details.

Changed in mozilla-thunderbird:
status: Confirmed → Invalid
Changed in thunderbird:
importance: Unknown → Medium
status: Invalid → Unknown
Changed in thunderbird:
status: Unknown → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.