diff options
| author | Vosjedev <vosje@vosjedev.net> | 2025-11-21 18:23:50 +0100 |
|---|---|---|
| committer | Vosjedev <vosje@vosjedev.net> | 2025-11-21 18:23:50 +0100 |
| commit | 2b79b95c22126b39d0abbfa41a87378692e8dfc1 (patch) | |
| tree | 467c9fb2b14947e19c6d64eb1c9a5cad33fd92f3 | |
| parent | a1ab1cc12c1c3e1e9505b9abb49d0c343f23d1a5 (diff) | |
| download | acit-2b79b95c22126b39d0abbfa41a87378692e8dfc1.tar.gz acit-2b79b95c22126b39d0abbfa41a87378692e8dfc1.tar.bz2 acit-2b79b95c22126b39d0abbfa41a87378692e8dfc1.tar.xz | |
Use a proper subjectline for secure emails
| -rw-r--r-- | src/acit/imapplugin.py | 4 |
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 |
