Skip to content

The agent engineering platform.

community[patch]: Small Fix in OutlookMessageLoader (Close the Message once Open) (#22744)

Mohammad Mohtashimc3cce98d866a
diff --git a/libs/community/langchain_community/document_loaders/email.py b/libs/community/langchain_community/document_loaders/email.py
index 832593839e..24716c55a9 100644
--- a/libs/community/langchain_community/document_loaders/email.py
+++ b/libs/community/langchain_community/document_loaders/email.py
@@ -116,3 +116,4 @@ class OutlookMessageLoader(BaseLoader):
"date": msg.date,
},
)
+ msg.close()