plain.email 0.9.1__tar.gz → 0.10.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,3 +11,8 @@ plain*/tests/.plain
11
11
 
12
12
  # Ottobot
13
13
  .aider*
14
+
15
+ /llms-full.txt
16
+
17
+ # Plain temp dirs
18
+ .plain
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.email
3
- Version: 0.9.1
3
+ Version: 0.10.1
4
4
  Summary: Email sending for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -3,9 +3,9 @@
3
3
  import smtplib
4
4
  import ssl
5
5
  import threading
6
+ from functools import cached_property
6
7
 
7
8
  from plain.runtime import settings
8
- from plain.utils.functional import cached_property
9
9
 
10
10
  from ..backends.base import BaseEmailBackend
11
11
  from ..message import sanitize_address
@@ -568,10 +568,10 @@ class TemplateEmail(EmailMultiAlternatives):
568
568
  return ""
569
569
 
570
570
  def get_plain_template_name(self):
571
- return f"mail/{self.template}.txt"
571
+ return f"email/{self.template}.txt"
572
572
 
573
573
  def get_html_template_name(self):
574
- return f"mail/{self.template}.html"
574
+ return f"email/{self.template}.html"
575
575
 
576
576
  def get_subject_template_name(self):
577
- return f"mail/{self.template}.subject.txt"
577
+ return f"email/{self.template}.subject.txt"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "plain.email"
3
- version = "0.9.1"
3
+ version = "0.10.1"
4
4
  description = "Email sending for Plain."
5
5
  authors = [{name = "Dave Gaeddert", email = "dave.gaeddert@dropseed.dev"}]
6
6
  license = "BSD-3-Clause"
File without changes
File without changes