aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVosjedev <vosje@vosjedev.net>2025-11-21 18:23:50 +0100
committerVosjedev <vosje@vosjedev.net>2025-11-21 18:23:50 +0100
commit2b79b95c22126b39d0abbfa41a87378692e8dfc1 (patch)
tree467c9fb2b14947e19c6d64eb1c9a5cad33fd92f3
parenta1ab1cc12c1c3e1e9505b9abb49d0c343f23d1a5 (diff)
downloadacit-2b79b95c22126b39d0abbfa41a87378692e8dfc1.tar.gz
acit-2b79b95c22126b39d0abbfa41a87378692e8dfc1.tar.bz2
acit-2b79b95c22126b39d0abbfa41a87378692e8dfc1.tar.xz
Use a proper subjectline for secure emails
-rw-r--r--src/acit/imapplugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/acit/imapplugin.py b/src/acit/imapplugin.py
index 9a6e8df..2ceb0a1 100644
--- a/src/acit/imapplugin.py
+++ b/src/acit/imapplugin.py
@@ -511,10 +511,12 @@ class ImapPlugin(plugins.SimplePlugin):
headers={}
self.smtp.format_reply_headers(replyto=self.get_newest_from_mailbox(mailbox,proj,bugid), tosend=headers)
+ bugobj=self.site.getbug(proj,bugid)
+
self.smtp.sendmail(
from_=from_,
to=msg.from_,
- subject="Secure token generated for %s/%d"%(proj,bugid),
+ subject="Re: "+bugobj.subject+" [SECURED]",
save=False,
body="Please reply to this email to use your token, or use the email address:\n "+from_,
extraheaders=headers