[plug] mozilla - attach file from command line

Cameron Patrick cameron at patrick.wattle.id.au
Fri Jul 25 17:00:42 WST 2003


On Fri, Jul 25, 2003 at 04:26:16PM +0800, Craig Ringer wrote:
| XRemoteService.cpp ( 
| http://lxr.mozilla.org/seamonkey/source/xpfe/components/xremote/src/XRemoteService.cpp 
| ) ... but I can't for the life of me figure out how to actually get it to 
| pass an attachment. Any chance I can call upon somebody to whom C++ is not 
| semi-gibberish to decode how to pass an attachment? It is suggested in the 
| comments that it's possible...

Well I can parse C++ but am not exactly familiar with Mozilla's
internals.  But from looking at the call to OpenChromeWindow it looks as
though the variable "arg" is being passed into a black box somewhere -
probably buried deep in Moz's Javascript.  "arg" appears to come from
whatever you tack onto "composemessage" separated by a comma and
eventually be fed as arguments into a Javascript function (see
nsWindowWatcher.cpp:452).

I'm not sure which JS function it goes to though :(

Cameron.



More information about the plug mailing list