Skip to main content

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.

Metadata

Release files for llama-index-readers-microsoft-outlook-emails 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-readers-microsoft-outlook-emails 0.4.0
File Size Uploaded
llama_index_readers_microsoft_outlook_emails-0.4.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-readers-microsoft-outlook-emails 0.4.0
File Interpreter ABI Platform
llama_index_readers_microsoft_outlook_emails-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / llama_index_readers_microsoft_outlook_emails-0.4.0.tar.gz

Download URL llama_index_readers_microsoft_outlook_emails-0.4.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
60c268777dfc7e7f042eb7b7ab6fe893cc3947d4548e0bfd6dc0ea88fcb24b5a
BLAKE2b-256 checksum
How to use checksums
8ac9d0900ddf8f8c376437400b5696daa9f249f96ed0dc23339ce733995f97b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_readers_microsoft_outlook_emails-0.4.0-py3-none-any.whl

Download URL llama_index_readers_microsoft_outlook_emails-0.4.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0299554b6c279fc4c9893948729a9010ac7d19f54f48e22a7cf0ea584694f20d
BLAKE2b-256 checksum
How to use checksums
2adc8f075736a97b264ef4feda98d2bd474da74a66cf78329757b87620ba926a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page