diff options
Diffstat (limited to 'mu4web/main.py')
-rw-r--r-- | mu4web/main.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mu4web/main.py b/mu4web/main.py index c945e7c..e6b1092 100644 --- a/mu4web/main.py +++ b/mu4web/main.py @@ -313,6 +313,9 @@ def search_page(q: str, by: Optional[str], direction: str) -> str: main_body = [search_field(q)] + # TODO pagination + # Mu handles the search without problem, but python is slow to + # build the table, and the browser has problem rendering it if q: main_body.append(search_result(q, by, direction)) @@ -419,6 +422,8 @@ def attachement_response(attachement: EmailMessage): response = flask.Response() response.charset = attachement.get_content_charset() response.mimetype = attachement.get_content_type() + # does get_content do stuff depending on content-type? + # Check how to explicitly get the raw bytes. response.set_data(attachement.get_content()) return response |