Microsoft outlook emails
OutlookEmailReader #
Bases: BasePydanticReader
Outlook Emails Reader using Microsoft Graph API.
Reads emails from a given Outlook mailbox and indexes the subject and body.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
client_id
|
str
|
The Application ID for the app registered in Microsoft Azure. |
required |
client_secret
|
str
|
The application secret for the app registered in Azure. |
required |
tenant_id
|
str
|
Unique identifier of the Azure Active Directory Instance. |
required |
user_email
|
str
|
Email address of the user whose emails need to be fetched. |
required |
folder
|
Optional[str]
|
The email folder to fetch emails from. Defaults to "Inbox". |
'Inbox'
|
num_mails
|
int
|
Number of emails to retrieve. Defaults to 10. |
10
|
Source code in llama-index-integrations/readers/llama-index-readers-microsoft-outlook-emails/llama_index/readers/microsoft_outlook_emails/base.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
load_data #
load_data() -> List[str]
Loads emails as texts containing subject and body.
Source code in llama-index-integrations/readers/llama-index-readers-microsoft-outlook-emails/llama_index/readers/microsoft_outlook_emails/base.py
79 80 81 82 83 84 85 86 87 |
|