save raw_mails as file

This commit is contained in:
j3d1 2024-11-08 22:23:52 +01:00
parent 38a24e4e06
commit e9c8f1049e
4 changed files with 40 additions and 2 deletions

View file

@ -18,7 +18,7 @@ class Email(SoftDeleteModel):
recipient = models.CharField(max_length=255)
reference = models.CharField(max_length=255, null=True, unique=True)
in_reply_to = models.CharField(max_length=255, null=True)
raw = models.TextField()
raw_file = models.FileField(upload_to='raw_mail/')
issue_thread = models.ForeignKey(IssueThread, models.SET_NULL, null=True, related_name='emails')
event = models.ForeignKey(Event, models.SET_NULL, null=True)