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.1.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_microsoft_outlook_emails-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b73cf8f427b63e8a5908a6332db6d6a1996d167b04831de25a1f57dd6893a314
MD5 ae67265f1bf4a1e29c52fe260cf993f8
BLAKE2b-256 98c96c480049ee2a4d931380972a6cf6cf890f22a0611add2ad15e28da12256b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_microsoft_outlook_emails-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbf9281e18a8d4b2efb0aaa16a8fb9c54cdaf60fada01602f57fd482f60951f7
MD5 d28528214d831999882cdcd7af40d283
BLAKE2b-256 ea6b17ae647e0abefe93ee89b859e5613e8d0652f6c3961b1fd71e6f0380ebab

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