views:

269

answers:

2

Has anyone ever handled a drag drop of emails from thunderbird? any references links code?

I want to be able to drag emails from thunderbird to my application?

A: 

It looks like it isn't possible. Although I can't seem to find any actual documentation, here is what my experimentation has found so far.

Thunderbird provides drop data with the following MIME types, when tested against an IMAP server:

  • text/x-moz-message - UTF-16 encoded URL that looks like imap-message://user@server/FOLDER#ID
  • text/x-moz-url - UTF-16 encoded URL that looks like imap://user@server:port/fetch%3EUID%3E/FOLDER%3EID
  • text/uri-list - ASCII (?) URL that looks like imap://user@host:port/fetch%3EUID%3E/FOLDER%3EID"
  • _NETSCAPE_URL - ASCII (?) URL that looks like imap://user@host:port/fetch%3EUID%3E/FOLDER%3EID
  • application/x-moz-file-promise-url - UTF-16 encoded URL that looks like imap://user@host:port/fetch%3EUID%3E/FOLDER%3EID?fileName=SUBJECT.eml
  • application/x-moz-file-promise - Empty
Adam Batkin
A: 

Windows seems to be able to create a file with extension .eml if I drop the mail over the desktop.. so windows CAN convert a thunderbird mail into a file...

How we can do it in our c# application?

Mauro Destro