Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this crate support to talk a Outlook with the current version of windows-rs #1605

Closed
Celthi opened this issue Mar 16, 2022 · 2 comments
Closed
Labels
question Further information is requested

Comments

@Celthi
Copy link

Celthi commented Mar 16, 2022

Hi, I scanned the example and some issues about COM, but I can not figure out if this crate can support talking with Outlook using COM.
Specifically, I would like to migrate the following python script to Rust.

The script will act upon any new email received by the Outlook program.

import win32com.client
import pythoncom




class EmailHandler:
    def OnNewMailEx(self, receivedItemsIDs):
        # RecrivedItemIDs is a collection of mail IDs separated by a ",".
        # You know, sometimes more than 1 mail is received at the same moment.
       pass

outlook = win32com.client.DispatchWithEvents(
    "Outlook.Application", EmailHandler)
@kennykerr kennykerr added the question Further information is requested label Mar 16, 2022
@kennykerr
Copy link
Collaborator

The windows crate is based on the metadata for the Windows API, which does not include Office APIs. If you could source the metadata for the Office APIs, you could use it with the windows crate (#1518) but I don't know whether that's available.

@Celthi
Copy link
Author

Celthi commented Mar 17, 2022

Thanks for the explanation! @kennykerr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants