Skip to main content

llama-index readers microsoft_outlook_emails integration

Project description

Microsoft Outlook Email Reader

pip install llama-index-readers-microsoft-outlook-emails

The loader retrieves emails from an Outlook mailbox and indexes the subject and body of the emails.

Prerequisites

App Authentication using Microsoft Entra ID (formerly Azure AD)

  1. You need to create an App Registration in Microsoft Entra ID. Refer here
  2. API Permissions for the created app:
    1. Microsoft Graph --> Application Permissions --> Mail.Read (Grant Admin Consent)

More info on Microsoft Graph APIs - Refer here

Usage

To use this loader, client_id, client_secret, and tenant_id of the registered app in Microsoft Azure Portal are required.

This loader fetches emails from a specified folder in an Outlook mailbox.

from llama_index.readers.outlook_emails import OutlookEmailReader

loader = OutlookEmailReader(
    client_id="<Client ID of the app>",
    client_secret="<Client Secret of the app>",
    tenant_id="<Tenant ID of the Microsoft Azure Directory>",
    user_email="<User Email Address>",
    folder="Inbox",
    num_mails=10,
)

documents = loader.load_data()

The loader retrieves the subject and body of the emails from the specified folder in Outlook.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_readers_microsoft_outlook_emails-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_microsoft_outlook_emails-0.2.0.tar.gz
Algorithm Hash digest
SHA256 381da319a164fb7853605ac1aa720d809aa50361293ac0634ce4e173b5974e1f
MD5 57d9c7d3db9671fe7efbeebdf041db0c
BLAKE2b-256 1610a524127f2fb4c7656895aac58b8b3332db817c7aa1674c9055800ec51dca

See more details on using hashes here.

File details

Details for the file llama_index_readers_microsoft_outlook_emails-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_microsoft_outlook_emails-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 282fbd156acaad27e8240ae2b27c264d718c76537f5a471bac219c2d6a62a72c
MD5 c940337a0fe10b5dbd937232aa35228a
BLAKE2b-256 e3b3a4a02be8af95bc8b44d860a56449f0c60bbb6afa210026cd582e6c106abb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page