Skip to content

Fix quoted html being empty when the quote is only an image - #82

Open
kraklo wants to merge 2 commits into
closeio:masterfrom
kraklo:quoted-image-fix
Open

Fix quoted html being empty when the quote is only an image#82
kraklo wants to merge 2 commits into
closeio:masterfrom
kraklo:quoted-image-fix

Conversation

@kraklo

@kraklo kraklo commented Jul 28, 2026

Copy link
Copy Markdown

Apologies if this is missing something, not sure what the contribution guidelines are.

Came across a case where people were forwarding emails that were only an image. Because the forwarded content wasn't any text, the line would get stripped out and you'd only get an html_top with no quoted content. Also incidentally fixes #22

The fix I'm proposing here is to add some "text" for the image line so it isn't entirely stripped out. The choice of a Unicode object replacement character was entirely arbitrary. Happy to swap it out for any other string if preferred.

@kraklo
kraklo force-pushed the quoted-image-fix branch from 0fe87a1 to a1c65e6 Compare July 28, 2026 07:34
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.

Image in beginning of reply is incorrectly ignored

1 participant