Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265299 - =mail-client/mozilla-thunderbird-2.0* has problems with commandline attachments
Summary: =mail-client/mozilla-thunderbird-2.0* has problems with commandline attachments
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard: PATCH
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-07 12:29 UTC by Glenn Sommer
Modified: 2009-12-24 13:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Thunderbird attachment patch (tb-attachment.patch,1.31 KB, patch)
2009-04-07 12:30 UTC, Glenn Sommer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Glenn Sommer 2009-04-07 12:29:53 UTC
Currently Thunderbird 2.0.0.X has known issues with attaching files from the
command-line.

I reported this issue upstream - and it's fixed in the latest Thunderbird
3.0b4.

Currently Thunderbird does not handle filesnames with special chars very
well... 
An example:
thunderbird --compose "attachment=file:///home/gsomer/my test file with odd
chars like æ ø å.txt"
This will result in Thunderbird opening the "write" window correctly... You can
even open the attachment by double-clicking on it.
But when sending the e-mail - thunderbird fails.

I've backported the patch from 3.0b4 to Thunderbird 2.0.0.21 - and successfully
patched my own Thunderbird.

I would suggest testing my patch - and applying it to the current Thunderbird
package!

With this patch the syntax is now:
attachment='file:///[URL ENCODED PATH]'
or
attachment='/complete path/to my/file'

Reproducible: Always
Comment 1 Glenn Sommer 2009-04-07 12:30:54 UTC
Created attachment 187572 [details, diff]
Thunderbird attachment patch

This patch makes Thunderbird able to use special chars in filenames - when attaching using commandline.
It also makes thunderbird able to understand URL encoded filenames.

Note. the syntax should now be: attachment='file:///[URL ENCODED PATH]'
or attachment='/complete path/to/file'
Comment 2 Glenn Sommer 2009-05-20 14:25:21 UTC
Comment on attachment 187572 [details, diff]
Thunderbird attachment patch

File to patch: chrome:messenger.jar:content/messenger/messengercomposer/MsgComposeCommand.js
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-10-20 15:17:34 UTC
Upstream bug in URL
Comment 4 Jory A. Pratt gentoo-dev 2009-12-24 13:55:55 UTC
Thunderbird-3 is in the tree, we are working to get it ready for stable, and should be there sooner then a revision bump for 2.x branch.