show mail attachments in frontend
This commit is contained in:
parent
d1626d1777
commit
04f774404a
11 changed files with 252 additions and 23 deletions
|
@ -26,7 +26,7 @@ class Migration(migrations.Migration):
|
|||
def generate_email_attachments(apps, schema_editor):
|
||||
for email in Email.objects.all():
|
||||
raw = email.raw
|
||||
if raw is None:
|
||||
if raw is None or raw == '':
|
||||
continue
|
||||
parsed, body, attachments = parse_email_body(raw.encode('utf-8'), NullLogger())
|
||||
email.attachments.clear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue