forked from mirror/django-mailbox
During reply update from_email only if not set
This commit is contained in:
parent
793f92cfcf
commit
24138d1dc7
1 changed files with 5 additions and 4 deletions
|
|
@ -498,6 +498,7 @@ class Message(models.Model):
|
|||
pre-set it.
|
||||
|
||||
"""
|
||||
if not getattr(message, 'from_email', None):
|
||||
if self.mailbox.from_email:
|
||||
message.from_email = self.mailbox.from_email
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue