Skip to content

Add support for keep original attachment filenames#753

Merged
Sebbo94BY merged 1 commit into
6.xfrom
Add-support-for-keep-original-attachment-filenames
May 10, 2026
Merged

Add support for keep original attachment filenames#753
Sebbo94BY merged 1 commit into
6.xfrom
Add-support-for-keep-original-attachment-filenames

Conversation

@Sebbo94BY
Copy link
Copy Markdown
Collaborator

The existing boolean setAttachmentFilenameMode(true|false) stays intact for backward compatibility, and attachment downloads now either overwrite as before or generate name (1).ext, name (2).ext, while still sanitizing path separators and respecting the file-path limit (src/PhpImap/Mailbox.php:1532, src/PhpImap/Mailbox.php:1827).

Co-authored by @fglueck

Refs:

Superseeds #645

The existing boolean `setAttachmentFilenameMode(true|false)` stays intact for
backward compatibility, and attachment downloads now either overwrite as
before or generate `name (1).ext`, `name (2).ext`, while still sanitizing path
separators and respecting the file-path limit (`src/PhpImap/Mailbox.php:1532`,
`src/PhpImap/Mailbox.php:1827`).

Co-authored by @fglueck

Refs:
- #645
@Sebbo94BY Sebbo94BY merged commit 620cd06 into 6.x May 10, 2026
0 of 9 checks passed
@Sebbo94BY Sebbo94BY deleted the Add-support-for-keep-original-attachment-filenames branch May 10, 2026 14:04
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