You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If two attachments have the same filename, then the last one "wins".
The filename is optional, so if multiple attachments have no filename, the last one "wins" as well.
We can fix this by changing attachments to a different data structure, such as a list of (filename, data) tuples (or even (filename, mimetype, data)) tuples. We could also start by counting the number of parts in the incoming message versus the outgoing message, to see how significant the issue is.
The text was updated successfully, but these errors were encountered:
Attachments are indexed in a dictionary by filename:
fx-private-relay/emails/views.py
Lines 782 to 785 in 04cfa86
If two attachments have the same filename, then the last one "wins".
The filename is optional, so if multiple attachments have no filename, the last one "wins" as well.
We can fix this by changing
attachments
to a different data structure, such as a list of(filename, data)
tuples (or even(filename, mimetype, data)
) tuples. We could also start by counting the number of parts in the incoming message versus the outgoing message, to see how significant the issue is.The text was updated successfully, but these errors were encountered: