thunderbird / import-export-tools-ng

Import Export Tools that supports Thunderbird v68-v128
Other
285 stars 31 forks source link

Feature request: Saving of remote content directly into HTML files #562

Open plumchii opened 5 months ago

plumchii commented 5 months ago

Similar feature request to #416 but not the same as this is not "HTML Complete/MHTML".


Currently exported HTML files (with or without attachments) rely on remote resources to be available when opening locally saved copies to properly display an email. Over the years, remote resources can not be available and lead to "incomplete" saved emails; especially as more and more emails are HTML.

I would like to ask for there to be an option to save the same (standard) HTML files as currently but also allow saving elements (CSS, Images) using the "data URI scheme" to embed directly into the HTML using Base64, similar to what the SingleFile addon for web browsers does (https://github.com/gildas-lormeau/SingleFile/blob/master/README.MD). This would allow the saving of CSS and images locally within one HTML file. This does lead to a larger file size, which is why I suggest it should maybe be a seperate export option? Or maybe an option to toggle in add-on settings?

Thank you for your work on this add-on.

cleidigh commented 4 months ago

@plumchii Thanks for the post and enhancement request. This is pretty involved doing HTML transformation where I currently do none. I took a brief look at SingleFile and it's pretty involved. I think the biggest issue with doing this is dealing with the security paradigm of Thunderbird. I'm sure you are aware Thunderbird will not download external resources without user acceptance. I'm not sure that can be bypassed. I can take a look, but I will be honest, I don't think I'm prepared to do this, certainly not unless there are Thunderbird resources to accomplish it. @cleidigh

plumchii commented 4 months ago

That's understandable. Thank you for your reponse.