Skip to content

outlook

outlook

Outlook / Microsoft 365 connector — reads email via IMAP with app password.

Thin subclass of GmailIMAPConnector that defaults to the Outlook IMAP host and relabels documents with source='outlook'.

Setup: enable 2FA on your Microsoft account, then generate an app password at https://account.microsoft.com/security

Classes

OutlookConnector

OutlookConnector(email_address: str = '', app_password: str = '', credentials_path: str = '', *, max_messages: int = 500)

Bases: GmailIMAPConnector

Outlook connector using IMAP + app password.

Source code in src/openjarvis/connectors/outlook.py
def __init__(
    self,
    email_address: str = "",
    app_password: str = "",
    credentials_path: str = "",
    *,
    max_messages: int = 500,
) -> None:
    super().__init__(
        email_address,
        app_password,
        credentials_path or _DEFAULT_CREDENTIALS_PATH,
        max_messages=max_messages,
    )