Menu

#672 mapi.BinFromHex does not accept python3 'str' argument

v1.0 (example)
open
nobody
mapi (1)
5
2014-06-10
2014-06-10
No

mapi.BinFromHex fails to convert a hex string id retrieved from the outlook object model.
Sample code:

from future import print_function
from win32com.client import Dispatch, constants
from win32com.mapi import mapi

ol = Dispatch('Outlook.Application')
inbox = ol.Session.GetDefaultFolder(constants.olFolderInbox)
sid = inbox.Parent.StoreID
mapi.BinFromHex(sid)

yields a

ValueError: FBinFromHex failed - input data is invalid

This happens with build 219 and pyhton 3.4.1

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.