Project

General

Profile

Feature #240

Rewrite URLs to inline images in HTML attachments

Added by Charles Lehner about 7 years ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Category:
LibSylph
Target version:
-
Start date:
07/06/2015
Due date:
% Done:

0%

Estimated time:

Description

This adds to procmime a function for retrieving a MIME attachment and its associated multipart/related attachments, while rewriting cid URLs. Specifically, if the attachment is text/html and in a multipart/related container, the attachment body is scanned and every instance of cid:X is replaced with the filename of the corresponding attachment with Content-ID X. The body with these replacements is written to a file and the attachments are saved to the temp directory. In MimeView, the actions to open the attachment or open it with an application are changed to use this feature.

This change makes it possible to view HTML emails with inline attached images when opening the HTML attachment in a browser (for multipart/related, not multipart/mixed with content-disposition inline). It is a bit of a hack, since it doesn't examine the HTML structure it could rewrite a cid: string that is not actually an image URL. However, it generally works. There are some cases in which it fails and produces some duplicate data, which I have not yet been able to fix.


Files

#1

Updated by replica watches 5 months ago

https://www.bestwatchaaa.com/Bulgari-replica.html https://www.allswisswatchs.com/ https://www.hotwatchsreplica.com/blancpain.html https://www.hotwatchsreplica.com/Tissot.html https://www.hotwatchsreplica.com/Panerai.html https://www.bestwatchaaa.com/Invicta-replica.html https://www.watchrm.com/ https://www.shopwatchus.com/ the https://www.bestwatchaaa.com/Hamilton-replica.html and the https://www.bestwatchaaa.com/Oris-replica.html design in our https://www.replicawatchsshop.cc/Glashutte-Original-Replica.html https://www.hotwatchsreplica.com/Alain-Silberstein.html http://www.classicwatchess.com/ https://www.replicawatchsshop.cc/Montblanc-Replica.html https://www.replicawatchsshop.cc/Girard-Perregaux-Replica.html https://www.replicawatchsshop.cc/Panerai-Replica.html here https://www.swissrepicass.com/ the https://www.bestwatchss.com/Rolex-Replica-Watches.html price https://www.hotwatchsreplica.com/Corum.html https://www.bestwatchaaa.com/Breguet-replica.html lowest https://www.bestwatchss.com/Girard-Perregaux-Replica-Watches.html in https://www.hotwatchsreplica.com/porsche-design.html https://www.bestwatchaaa.com/Michele-replica.html https://www.hotwatchsreplica.com/Ebel.html https://www.replicawatchsshop.cc/TAG-Heuer-Replica.html https://www.replicawatchsshop.cc/Parmigiani-Fleurier-Replica.html https://www.replicawatchsshop.cc/Hublot-Replica.html https://www.hotwatchsreplica.com/Tag-Heuer.html https://www.bestwatchaaa.com/Tudor-replica.html https://www.bestwatchaaa.com/Porsche-Design-replica.html https://www.hotwatchsreplica.com/Breitling.html https://www.bestwatchss.com/U-Boat-Replica-Watches.html real ones.

Also available in: Atom PDF