[dev] Re: [imp] mail.yahoo-esque "Block HTML graphics in email messages from being downloaded" functionality?

Michael M Slusarz slusarz at bigworm.colorado.edu
Fri Mar 14 14:07:23 PST 2003


Quoting Amith Varghese <amith at xalan.com>:

| > How about a "show images" button / link on the "command line" (up with
| > source, reply, redirect, blacklist, etc).
| > Element display based on user preferences is *very* easy.
| >
| 
| The following is a patch that blocks images in HTML messages.  Basically
| how
| this works is that IMP goes through the HTML attachments and replaces all
| graphics with imp/graphics/file/spacer.gif (a blank image).  On the line
| that
| gives the name of the attachment there is an icon that is displayed that
| allows
| the user to "turn" the images back on.

Amith -
Thanks for the patch.  I'm going to commit the patch now and we can deal
with how we want to display the blocked images a bit later.

Just a quick note - since this is an HTML specific action, it doesn't make
much sense to add something to the summary line (e.g. an image icon next to
the strip_attachment icon).  The summary line should be reserved for actions
that can be done on ALL MIME types.  Instead, this is exactly the sort of
thing that should be completely built into the particular MIME driver.  This
is what I have done with your code.

thanks again,
michael

______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the dev mailing list