mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 09:46:01 +03:00
[GH-ISSUE #99] [Bug] Thunderbird always indicates attachment (paper clip icon) before fetching full message sent from nmail #87
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @krackout on GitHub (Mar 31, 2022).
Original GitHub issue: https://github.com/d99kris/nmail/issues/99
Originally assigned to: @d99kris on GitHub.
Sending from nmail to Thunderbird, the e-mail is shown in Thunderbird as having attachment, even when it doesn't. After clicking on it, the attachment icon disappears and doesn't appear again.
Both nmail and Thunderbird utilize IMAP connection. Through receiver's web interface instead of Thunderbird, no attachment notice is shown if there isn't any (normal behaviour). Could be Thunderbird related, I haven't tested it with other MUAs.
@d99kris commented on GitHub (Mar 31, 2022):
If you have one such email message, could you export it from
nmailusingXfor example from the sent folder, alternatively I believe Thunderbird has an export message function too, but I don't know what it is called in their UI. And then send it to me (a.msgfile as an attachment)?Btw, are you using nmail to send plain text emails, or are you using the markdown compose mode, which sends both a text and a html version?
@krackout commented on GitHub (Mar 31, 2022):
I normally use plain text. If something is changed, it would be probably due to my fiddling with nmail's settings. Here's an e-mail:
I've also attached a screenshot from Thunderbird, the paperclip icon (attachment) seen on the left.

@d99kris commented on GitHub (Apr 3, 2022):
Thanks for sharing the additional details. I was able to reproduce this too in
Thunderbirdv91.7, with emails sent from latestnmail.Comparing plain text messages sent from
ThunderbirdandnmailI found the message structure to be slightly different.When I implemented the MIME encoding in
nmailI went with a simple approach of using same structure for all emails, from a code comment:It seems
Thunderbirdmakes a "guess" based on high(est?) level of the MIME structure, on whether a message has an attachment (before it has fetched it). There are others with this problem inThunderbirdit seems (not strictly limited tonmailmessages I think) https://www.reddit.com/r/Thunderbird/comments/dkncg6/whats_up_with_mails_showing_the_attachment_symbol/nmailon the other hand fetches and parses the entire body structure when fetching headers, so it does not suffer from this problem.I don't remember seeing anything in RFC2045 (MIME part I) preventing using the structure that
nmailuses, but I might need to re-read that old document.Anyway.. For the benefit of working well with
Thunderbird, and also fornmailto not send some chunk of unecessary bytes in emails, it might make sense to fix this innmail. I will take a look and update here again eventually.@krackout commented on GitHub (Apr 3, 2022):
Interesting find. Whatever you like. Yet if it's
thunderbird's bug or deviation andnmailis RFC compliant, I should have reported it to them.@d99kris commented on GitHub (Apr 10, 2022):
A fix for this has been implemented in
nmailnow, please let me know if you still see issues with paper clip icon inThundermail. Thanks!