Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

pasting in HTML code that has attachments

  • 7 réponses
  • 0 a ce problème
  • Dernière réponse par sfhowes

more options

Greetings.

For lack of anything better I'm using TBird as an HTML editor.

I'm writing a rather long paper that includes many images. Backing up as I go, I use the 'Export Message As > HTML Format > Messages And Attachments' ... and it works fine and processes the images this way:

Anyway -- this is kinda hard to explain -- as long as I was 'working within TBird' everything was fine, but I ended up modifying my HTML via text editor to do a few things that were impossible to do in the graphical TBird screen (tweaking some math equations). So now my draft message needed to be updated with the new HTML. I use 'Insert > HTML' and paste in the entire contents of my paper and then Send it to myself. I get it back, open it and there's no images, just blank boxes.

But ... and this is interesting ... if I then take that message and save it again as HTML (as above) then if I view that HTML in FireFox, voila! It shows the images. So how can I take my HTML, import it to an email and then 'Edit As New Message' or whatever trick is needed to have the paper back with it's images intact? I hope that's not too confusing.

Greetings. For lack of anything better I'm using TBird as an HTML editor. I'm writing a rather long paper that includes many images. Backing up as I go, I use the 'Export Message As > HTML Format > Messages And Attachments' ... and it works fine and processes the images this way: <img src="EmbeddedImages-3/0.jpg" class="" width="800" height="682"> Anyway -- this is kinda hard to explain -- as long as I was 'working within TBird' everything was fine, but I ended up modifying my HTML via text editor to do a few things that were impossible to do in the graphical TBird screen (tweaking some math equations). So now my draft message needed to be updated with the new HTML. I use 'Insert > HTML' and paste in the entire contents of my paper and then Send it to myself. I get it back, open it and there's no images, just blank boxes. But ... and this is interesting ... if I then take that message and save it again as HTML (as above) then if I view that HTML in FireFox, voila! It shows the images. So how can I take my HTML, import it to an email and then 'Edit As New Message' or whatever trick is needed to have the paper back with it's images intact? I hope that's not too confusing.

Toutes les réponses (7)

more options

Opps, sorry my HTML code was acted upon above. Try again:

img src="EmbeddedImages-3/0.jpg" class="" width="800"

       height="682"

Modifié le par rayandrews

Cela vous a-t-il été utile ?

more options

Hmm, I'm not sure why Firefox can connect the dots between the inline image tag and the image file, but Thunderbird cannot. It's possible that Firefox has a cached version of the image from a previous save, and if you were to open the HTML file in a private window -- where the regular window cache isn't used -- it would have the same situation as Thunderbird. But that's just a guess.

I think the cleanest thing would be to manually add the images back to the message in Thunderbird, but if there are too many, then copy/pasting from Firefox might work. ???

Cela vous a-t-il été utile ?

more options

You could save a message as an eml file, open it in a text editor to edit the html, then import it to TB by drag and drop to a subfolder of Local Folders. It might be easier to just use a better editor than the TB default:

https://addons.thunderbird.net/en-US/thunderbird/addon/html-source-editor/

Cela vous a-t-il été utile ?

more options

> I'm not sure why Firefox can connect the dots between the inline image tag and the image file, but Thunderbird cannot.

I think it's because I have to open the HTML were the code can find the directory where the images are found, but the email message has no way of doing that. I know there's a way that HTML can have the images within the file itself, not in a directory. I'm betting that would paste into an email with no issues.

> It might be easier to just use a better editor than the TB default:

Thanks, I'll check that out.

Cela vous a-t-il été utile ?

more options

Yeah, what I should have done is save as .eml, that way the images are built in to the file. So I did a text compare of the .html and the last-best .eml, just copied over the needed changes, and it seems fine.

Main difference is the way the images are handled:

    img src="cid:part1.njs0TyN0.k8P4a38b@eastlink.ca" class=""

Thanks guys.

BTW, the reason I converted to saving as .html is because my text editor will highlight the code, but not with .eml ... I guess I should just do a dummy temporary rename of .eml to .html when I need to do a text edit, then back again.

Modifié le par rayandrews

Cela vous a-t-il été utile ?

more options

BTW I can't add the addon, the 'Add' button refuses to click. I've noticed that problem before.

Cela vous a-t-il été utile ?

more options

Yes, the add-on installation bug for some Linux types has been around for a while.

https://bugzilla.mozilla.org/show_bug.cgi?id=1829370

Cela vous a-t-il été utile ?

Poser une question

Vous devez vous identifier avec votre compte pour répondre aux messages. Veuillez poser une nouvelle question, si vous n’avez pas encore de compte.