[Project_owners] how to import eml-files to INBOX/copy enigmail-messages?

Paul Tomlin paul at paultomlin.com
Sun Mar 12 16:36:56 EST 2006


Benjamin Stritter wrote:
> How can I copy this message to INBOX? "messenger.copyMessage" looks good
> for that, but I don't know how to use it.

Look at
http://www.mozdev.org/source/browse/quickfile/src/content/quickfile.js?rev=1.10&content-type=text/x-cvsweb-markup

and search for
var msgCopyService

I don't know how to get it to have line numbers :(

Basically

var msgCopyService =
	Components.classes[
		'@mozilla.org/messenger/messagecopyservice;1'
		]
		.getService( Components.interfaces.nsIMsgCopyService );
			
msgCopyService.CopyMessages(
	from, 		// nsIMsgFolder
	msgHdrs, 	// array of nsIMsgHdr - the messages
	to, 		// nsIMsgFolder
	isMove, 	// bool
	this, 		// nsiMsgCopyService
	null, 		// <dunno>
	false		// <erm...>
);

Though I don't know if it'd work for you, where are your messages initially?


More information about the Project_owners mailing list