Skip to content

Commit

Permalink
feat: add .msg support
Browse files Browse the repository at this point in the history
  • Loading branch information
elisalimli committed Apr 13, 2024
1 parent de6e65c commit ee85295
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class FileType(Enum):
html = "HTML"
json = "JSON"
eml = "EML"
msg = "MSG"

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

Expand Down

0 comments on commit ee85295

Please sign in to comment.