Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 187572 Details for
Bug 265299
=mail-client/mozilla-thunderbird-2.0* has problems with commandline attachments
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Thunderbird attachment patch
tb-attachment.patch (text/plain), 1.31 KB, created by
Glenn Sommer
on 2009-04-07 12:30:54 UTC
(
hide
)
Description:
Thunderbird attachment patch
Filename:
MIME Type:
Creator:
Glenn Sommer
Created:
2009-04-07 12:30:54 UTC
Size:
1.31 KB
patch
obsolete
>--- MsgComposeCommands.js.orig 2008-03-01 06:30:38.000000000 +0100 >+++ MsgComposeCommands.js 2009-04-01 10:11:27.000000000 +0200 >@@ -1253,10 +1253,23 @@ > { > var attachmentList = args.attachment.split(","); > var attachment; >+ var localFile = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); >+ var ioService = Components.classes["@mozilla.org/network/io-service;1"] >+ ioService = ioService.getService(Components.interfaces.nsIIOService); >+ var fileHandler = ioService.getProtocolHandler("file").QueryInterface(Components.interfaces.nsIFileProtocolHandler); > for (var i = 0; i < attachmentList.length; i ++) > { >+ var attachmentStr = attachmentList[i]; > attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment); >- attachment.url = attachmentList[i]; >+ if (attachmentStr.substr(0, 7) == "file://") >+ { >+ attachment.url = attachmentStr; >+ } >+ else >+ { >+ localFile.initWithPath(attachmentList[i]); >+ attachment.url = fileHandler.getURLSpecFromFile(localFile);; >+ } > composeFields.addAttachment(attachment); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265299
: 187572