def make_msgid(self):
return email.utils.make_msgid("ipfire", domain="ipfire.org")
- @property
- def bounce_email_address(self):
- return self.settings.get("bounce_email_address")
-
def send(self, message, priority=0, headers={}, after=None):
# Convert message from string
if not isinstance(message, email.message.Message):
except KeyError:
message.add_header(k, v)
- # Send any errors to the bounce address
- if self.bounce_email_address:
- message.add_header("Errors-To", "<%s>" % self.bounce_email_address)
-
# Add the message to the queue
res = self.db.get("""
INSERT INTO