diff --git a/api/apps/api_app.py b/api/apps/api_app.py index 017cf49d7..8b11d5623 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)