Add date field
This commit is contained in:
parent
e3aaba8483
commit
273200f8a4
3 changed files with 3 additions and 2 deletions
|
@ -173,6 +173,7 @@ class MastodonEmailBridge:
|
|||
msg = MIMEMultipart('alternative')
|
||||
msg['Subject'] = self._str_template(self.config['subjet_template'], data)
|
||||
msg['From'] = sender
|
||||
msg['Date'] = time.strftime('%a, %d %b %Y %H:%M:%S %z')
|
||||
msg['To'] = recipient
|
||||
html_template = self.j2env.get_template("new_post.html.j2")
|
||||
html_source = html_template.render(
|
||||
|
|
|
@ -7,7 +7,7 @@ Homepage = "https://codeberg.org/adelgado/mastodon_email_bridge"
|
|||
|
||||
[project]
|
||||
name = "mastodon_email_bridge"
|
||||
version = "0.0.9"
|
||||
version = "1.0.0"
|
||||
description = "Redirect your Mastodon Home timeline to your email"
|
||||
readme = "README.md"
|
||||
authors = [{ name = "Antonio J. Delgado", email = "ad@susurrando.com" }]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[metadata]
|
||||
name = mastodon_email_bridge
|
||||
version = 0.0.9
|
||||
version = 1.0.0
|
||||
|
||||
[options]
|
||||
packages = mastodon_email_bridge
|
||||
|
|
Loading…
Reference in a new issue