Skip to content

Commit

Permalink
.eml file type support (#96)
Browse files Browse the repository at this point in the history
* feat: add .eml support

* feat: add .msg support
  • Loading branch information
elisalimli authored Apr 14, 2024
1 parent bc55a91 commit ee07e96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class FileType(Enum):
xlsx = "XLSX"
html = "HTML"
json = "JSON"
eml = "EML"
msg = "MSG"

def suffix(self) -> str:
suffixes = {
Expand All @@ -26,6 +28,8 @@ def suffix(self) -> str:
"PPTX": ".pptx",
"HTML": ".html",
"JSON": ".json",
"EML": ".eml",
"MSG": ".msg",
}
return suffixes[self.value]

Expand Down

0 comments on commit ee07e96

Please sign in to comment.