mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-09-11 23:03:25 +02:00
* Update filetypes.py Added mbox format * Created new file Added support for mbox files as used by many email services, including Google Takeout's Gmail archive. * Update filetypes.py * Update as_mbox.py
23 lines
619 B
Python
23 lines
619 B
Python
from .convert.as_text import as_text
|
|
from .convert.as_markdown import as_markdown
|
|
from .convert.as_pdf import as_pdf
|
|
from .convert.as_docx import as_docx, as_odt
|
|
from .convert.as_mbox import as_mbox
|
|
|
|
FILETYPES = {
|
|
'.txt': as_text,
|
|
'.md': as_markdown,
|
|
'.pdf': as_pdf,
|
|
'.docx': as_docx,
|
|
'.odt': as_odt,
|
|
'.mbox': as_mbox,
|
|
}
|
|
|
|
ACCEPTED_MIMES = {
|
|
'text/plain': ['.txt', '.md'],
|
|
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': ['.docx'],
|
|
'application/vnd.oasis.opendocument.text': ['.odt'],
|
|
'application/pdf': ['.pdf'],
|
|
'application/mbox': ['.mbox'],
|
|
}
|