[python-win32] Drag and Drop from Outlook

Mark Hammond mhammond at skippinet.com.au
Tue Mar 13 14:28:02 CET 2007


> >    I am trying to make my application accepting drag and drop emails
> >from Outlook. I was told on the wxPython mailing list to try to use
> >win32com, but actually I have no idea which clipboard data format an
> >Outlook email has. I have tried to set up a custom drop target for
> >that:
> >
> >class MyDropTarget(wx.PyDropTarget):
> >    def __init__(self):
> >        wx.PyDropTarget.__init__(self)
> >
> >        self.data = wx.CustomDataObject("Outlook Express Messages")
> >        self.SetDataObject(self.data)
> >
> >But my app doesn't recongnize it with the identifier "Outlook Express
> >Messages".
...

> again as I told you on the wxpython ml I think it is not that
> easy. You
> have to use Extended Mapi to do that. At least Dmitry
> Streblechenko, the
> developer of OutlookSpy(really nice tool which uses a lot of mapi
> functions) confirms that. See:
> http://www.pcreview.co.uk/forums/thread-1854594.php

There also appears to be some confusion re 'Outlook' and 'Outlook Express',
which are quite different beasts.  If it really is 'Outlook Express', then
I'm afraid neither win32com nor the OutlookSpy reference above are going to
be any help.  I'm not aware of any Python tools that will help with Outlook
express (or indeed any free tools at all!)

FWIW, the win32clipboard module should let you get the clipboard data as a
binary blob (and win32com.mapi does wrap extended mapi), but I'm not sure
that will help you either.

Good luck,

Mark



More information about the Python-win32 mailing list