Replace Activity to cls (ElectronicMail) class

From changeset c13d252
This commit is contained in:
Raimon Esteve 2023-09-26 12:27:26 +02:00
parent 4fbf0d417f
commit 9389b44c1d
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class ElectronicMail(metaclass=PoolMeta):
if mail.mail_file:
msg = message_from_bytes(mail.mail_file)
attachments = []
for attachment in Activity.get_attachments(msg):
for attachment in cls.get_attachments(msg):
attachments.append(Attachment(
name = attachment.get('filename', mail.subject),
type = 'data',