Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Bug fix - email processing could be run now from API (#2613)

adam-kobusb16f16e19e77
diff --git a/api/apps/api_app.py b/api/apps/api_app.py
index 017cf49d7d..8b11d56238 100644
--- a/api/apps/api_app.py
+++ b/api/apps/api_app.py
@@ -454,6 +454,8 @@ def upload():
doc["parser_id"] = ParserType.AUDIO.value
if re.search(r"\.(ppt|pptx|pages)$", filename):
doc["parser_id"] = ParserType.PRESENTATION.value
+ if re.search(r"\.(eml)$", filename):
+ doc["parser_id"] = ParserType.EMAIL.value
doc_result = DocumentService.insert(doc)
FileService.add_file_from_kb(doc, kb_folder["id"], kb.tenant_id)