I think we’re going to need a bit more information in order to help you. Specifically:
…and then what happened next? You’ve provided plausible-looking sample code and a clone link, but in order for us to help with your problem we’re going to need to know what problem you’re seeing!
Hi, in case it’s the same issue I had recently (that there are more inline attachments coming in than normal attachments) this is a snapshot of the code I used:
Process regular attachments
for a in msg.attachments:
app_tables.received_attachments.add_row(
date=email_date,
from_addr=msg.envelope.from_address,
subject=msg.subject,
attachment=a
)
Process inline attachments
for key, value in msg.inline_attachments.items():
app_tables.received_attachments.add_row(
date=email_date,
from_addr=msg.envelope.from_address,
subject=msg.subject,
attachment=value
)