This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 3c8b448 bump version, make a constant
3c8b448 is described below
commit 3c8b4487afca55541f05c7e1fe98256dcd9ffbe5
Author: Daniel Gruno <[email protected]>
AuthorDate: Fri Nov 12 15:45:56 2021 +0100
bump version, make a constant
---
server/endpoints/compose.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/endpoints/compose.py b/server/endpoints/compose.py
index 52b9e8f..0b49663 100644
--- a/server/endpoints/compose.py
+++ b/server/endpoints/compose.py
@@ -26,6 +26,7 @@ import fnmatch
import typing
import aiohttp.web
+COMPOSER_VERSION = "0.3" # Bump when changing logic
async def process(
server: plugins.server.BaseServer,
@@ -73,7 +74,7 @@ async def process(
msg["to"] = to
msg["subject"] = str(email.header.Header(subject, "utf-8"))
msg["date"] = email.utils.formatdate()
- msg["X-Sender"] = "Apache Pony Mail Foal Composer v/0.2"
+ msg["X-Sender"] = "Apache Pony Mail Foal Composer v/%s" %
COMPOSER_VERSION
msg.set_charset("utf-8")
msg.set_content(body)
await aiosmtplib.send(msg, hostname=mailhost, port=mailport)