diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-04-10 16:39:46 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-04-10 16:39:46 +0200 |
commit | f06e7e51f84e9260410108ed527f3c8cbe28fbdd (patch) | |
tree | 0cc9976ab8dbad5225d88658584a161efa07e19b | |
parent | 4d81a32530fa10ded10ae9abe12755f9d6d328ac (diff) |
add Date and Message-ID mail headers on send
-rw-r--r-- | src/jwebmail/translations/de/LC_MESSAGES/messages.po | 26 | ||||
-rw-r--r-- | src/jwebmail/translations/en/LC_MESSAGES/messages.po | 22 | ||||
-rw-r--r-- | src/jwebmail/webmail.py | 3 |
3 files changed, 31 insertions, 20 deletions
diff --git a/src/jwebmail/translations/de/LC_MESSAGES/messages.po b/src/jwebmail/translations/de/LC_MESSAGES/messages.po index 7bc8ef6..8f9ad72 100644 --- a/src/jwebmail/translations/de/LC_MESSAGES/messages.po +++ b/src/jwebmail/translations/de/LC_MESSAGES/messages.po @@ -1,13 +1,13 @@ # German translations for JWebmail. # Copyright (C) 2023 Fehcom -# This file is distributed under the same license as the PROJECT project. +# This file is distributed under the same license as the project. # Jannis M. Hoffmann <jannis@fehcom.de>, 2023. # msgid "" msgstr "" -"Project-Id-Version: 2.2.1\n" +"Project-Id-Version: 2.2.1\n" "Report-Msgid-Bugs-To: jannis@fehcom.de\n" -"POT-Creation-Date: 2024-04-10 14:23+0200\n" +"POT-Creation-Date: 2024-04-10 16:35+0200\n" "PO-Revision-Date: 2023-11-23 12:18+0100\n" "Last-Translator: Jannis Hoffmann <jannis@fehcom.de>\n" "Language: de\n" @@ -42,35 +42,35 @@ msgstr "" msgid "Unsupported MIME type of {mime_type}." msgstr "Nicht unterstützter MIME-Typ {mime_type}." -#: src/jwebmail/webmail.py:36 +#: src/jwebmail/webmail.py:37 msgid "Username" msgstr "Nutzername" -#: src/jwebmail/webmail.py:38 +#: src/jwebmail/webmail.py:39 msgid "Password" msgstr "Passwort" -#: src/jwebmail/webmail.py:73 +#: src/jwebmail/webmail.py:74 msgid "login failed!" msgstr "Login fehlgeschlagen!" -#: src/jwebmail/webmail.py:120 +#: src/jwebmail/webmail.py:121 msgid "displaying <b>{start} - {end}</b> of <b>{total}</b> {record_name}" msgstr "zeige <b>{start} - {end}</b> von <b>{total}</b> {record_name} an" -#: src/jwebmail/webmail.py:204 +#: src/jwebmail/webmail.py:205 msgid "succ_move" msgstr "erfolgreich Verschoben" -#: src/jwebmail/webmail.py:235 +#: src/jwebmail/webmail.py:239 msgid "invalid mimetype" msgstr "unbekannter Mime Typ" -#: src/jwebmail/webmail.py:243 src/jwebmail/webmail.py:263 +#: src/jwebmail/webmail.py:247 src/jwebmail/webmail.py:267 msgid "succ_send" msgstr "Erfolgreich gesendet" -#: src/jwebmail/webmail.py:259 +#: src/jwebmail/webmail.py:263 msgid "error_send" msgstr "Fehler beim senden" @@ -104,6 +104,10 @@ msgstr "%(total_new_mails)s neu" msgid "mailbox size: " msgstr "mailbox größe: " +#: src/jwebmail/templates/_main_table.html:23 +msgid "unknown" +msgstr "unbekannt" + #: src/jwebmail/templates/_top_nav.html:4 msgid "Logout" msgstr "Abmelden" diff --git a/src/jwebmail/translations/en/LC_MESSAGES/messages.po b/src/jwebmail/translations/en/LC_MESSAGES/messages.po index c1ade47..87580a0 100644 --- a/src/jwebmail/translations/en/LC_MESSAGES/messages.po +++ b/src/jwebmail/translations/en/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-04-10 14:23+0200\n" +"POT-Creation-Date: 2024-04-10 16:35+0200\n" "PO-Revision-Date: 2023-12-07 19:04+0100\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language: en\n" @@ -42,35 +42,35 @@ msgstr "" msgid "Unsupported MIME type of {mime_type}." msgstr "" -#: src/jwebmail/webmail.py:36 +#: src/jwebmail/webmail.py:37 msgid "Username" msgstr "" -#: src/jwebmail/webmail.py:38 +#: src/jwebmail/webmail.py:39 msgid "Password" msgstr "" -#: src/jwebmail/webmail.py:73 +#: src/jwebmail/webmail.py:74 msgid "login failed!" msgstr "" -#: src/jwebmail/webmail.py:120 +#: src/jwebmail/webmail.py:121 msgid "displaying <b>{start} - {end}</b> of <b>{total}</b> {record_name}" msgstr "" -#: src/jwebmail/webmail.py:204 +#: src/jwebmail/webmail.py:205 msgid "succ_move" msgstr "" -#: src/jwebmail/webmail.py:235 +#: src/jwebmail/webmail.py:239 msgid "invalid mimetype" msgstr "" -#: src/jwebmail/webmail.py:243 src/jwebmail/webmail.py:263 +#: src/jwebmail/webmail.py:247 src/jwebmail/webmail.py:267 msgid "succ_send" msgstr "" -#: src/jwebmail/webmail.py:259 +#: src/jwebmail/webmail.py:263 msgid "error_send" msgstr "" @@ -104,6 +104,10 @@ msgstr "" msgid "mailbox size: " msgstr "" +#: src/jwebmail/templates/_main_table.html:23 +msgid "unknown" +msgstr "" + #: src/jwebmail/templates/_top_nav.html:4 msgid "Logout" msgstr "" diff --git a/src/jwebmail/webmail.py b/src/jwebmail/webmail.py index 76eff57..8c839d3 100644 --- a/src/jwebmail/webmail.py +++ b/src/jwebmail/webmail.py @@ -1,3 +1,4 @@ +import email.utils import mimetypes from email.message import EmailMessage from io import BytesIO @@ -215,6 +216,8 @@ def sendmail(): mail["From"] = current_user.id mail["To"] = form.send_to.data mail["Subject"] = form.subject.data + mail["Date"] = email.utils.localtime() + mail["Message-ID"] = email.utils.make_msgid() if form.cc.data: mail["Cc"] = form.cc.data |