Last active
January 12, 2019 20:17
-
-
Save mdaizovi/e8526b91e992af191762a7946ace6c01 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MessageEvent(models.Model): | |
"""Wrapper around Anymail's inbound events, for sending and forwarding messages. | |
Assumes you've already installed anymail. | |
Ignores attachments. | |
""" | |
# event_... will only have values if was received by ESP, and even then, probably not. | |
event_event_id = models.CharField(max_length=100, null=True, blank=True) | |
event_timestamp = models.DateTimeField(null=True, blank=True) | |
event_esp_event = models.CharField(max_length=100, null=True, blank=True) | |
msg_envelope_sender = models.EmailField(max_length=70) | |
msg_from_email = models.EmailField(max_length=70) | |
msg_envelope_recipient = models.EmailField(max_length=70) | |
msg_subject = models.CharField(max_length=100, null=True, blank=True) | |
msg_date = models.DateTimeField(null=True, blank=True) | |
msg_text = models.TextField(null=True, blank=True) | |
msg_html = models.TextField(null=True, blank=True) | |
forward_to = models.EmailField(max_length=70, null=True, blank=True) | |
forwarded = models.DateTimeField(null=True, blank=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment