1

Okay, so here is my current problem which can be broken down into several parts, and any advice on any part would be greatly appreciated!

  1. Overview of general problem: I have several PST files in which every email contained within the PST files has a tag that I need to remove. The end goal is a PST file minus the tag (the tag is 3 lines of text in each email bracketed on the top and bottom by lines of *).

  2. To solve this, I wanted to be able to manipulate the PSTs in Python.

  3. In order to manipulate in Python, I found out that i could use Outlook Redemption and its MAPI tables (I have not used any MAPI tables before).

  4. Outlook Redemption is deployed in a DLL file, and I have never had to import a DLL file into Python before, so I checked Stack Overflow and got this answer. However, I don't understand these lines:

    # Actually map the call ("HLLAPI(...)") to a Python name. 
    hllApi = hllApiProto (("HLLAPI", hllDll), hllApiParams) 
    

    What should I put in the space denoted by "...", and does he mean anything special by mapping it to a Python name?

Like I said, any help / advice / suggestions / pity would be greatly appreciated.

4

1 回答 1

1

我不使用 Python,但看起来您可以像使用任何其他 COM 对象一样使用 Redemption: 从 Python 修改 Microsoft Outlook 联系人

import win32com.client 
import pywintypes 

session = win32com.client.Dispatch("Redemption.RDOSession") 
...
于 2012-07-27T14:46:18.600 回答