Skip to content

Restore txt as preferred extension for text/plain - #19

Merged
lfeldtmann merged 1 commit into
masterfrom
fix-text-plan-extension
Aug 20, 2026
Merged

Restore txt as preferred extension for text/plain#19
lfeldtmann merged 1 commit into
masterfrom
fix-text-plan-extension

Conversation

@lfeldtmann

Copy link
Copy Markdown
Contributor

elephox/mimey deliberately maps text/plain to the env extension first (elephox-dev/mimey@d72acba), so getExtension('text/plain') returned 'env' since the switch from the ralouphie/mimey fork.
Consumers using the mime-to-extension direction to name files (AttachmentFilenameFixer in bipro-transfer) would have produced '.env' instead of '.txt' for text/plain attachments without a usable filename extension.
Prepending txt restores the previous behavior; env remains a known extension.

elephox/mimey deliberately maps text/plain to the env extension first
(elephox-dev/mimey@d72acba), so getExtension('text/plain') returned
'env' since the switch from the ralouphie/mimey fork. Consumers using
the mime-to-extension direction to name files (AttachmentFilenameFixer
in bipro-transfer) would have produced '*.env' instead of '*.txt' for
text/plain attachments without a usable filename extension. Prepending
txt restores the previous behavior; env remains a known extension.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lfeldtmann
lfeldtmann marked this pull request as ready for review August 20, 2026 09:10
@lfeldtmann
lfeldtmann merged commit 46445ca into master Aug 20, 2026
2 checks passed
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