Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for multiple files with identical filenames #1636

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DavidBiddle
Copy link

@DavidBiddle DavidBiddle commented Mar 6, 2025

Currently the AttachmentList's []= method can be called multiple times with the same filename, and a new part will be added to the email for each of the files without overwriting previous files with the same name.

I've assumed that this is intended behaviour (since it's valid for an email to have multiple attachments with the same filename, or even have the same file attached multiple times).

This PR adds a fairly basic test to make that assumption explicit.

@DavidBiddle DavidBiddle marked this pull request as ready for review March 6, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant