mirror of
https://github.com/Mailu/Mailu.git
synced 2025-05-27 22:57:38 +02:00
fix Email class
This commit is contained in:
parent
0031f262cc
commit
ad1b036f20
@ -371,8 +371,8 @@ class Email(object):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def __declare_last__(cls):
|
def __declare_last__(cls):
|
||||||
# gets called after mappings are completed
|
# gets called after mappings are completed
|
||||||
sqlalchemy.event.listen(User.localpart, 'set', cls._update_localpart, propagate=True)
|
sqlalchemy.event.listen(cls.localpart, 'set', cls._update_localpart, propagate=True)
|
||||||
sqlalchemy.event.listen(User.domain_name, 'set', cls._update_domain_name, propagate=True)
|
sqlalchemy.event.listen(cls.domain_name, 'set', cls._update_domain_name, propagate=True)
|
||||||
|
|
||||||
def sendmail(self, subject, body):
|
def sendmail(self, subject, body):
|
||||||
""" send an email to the address """
|
""" send an email to the address """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user