Icons

MHonArc supports the ability to insert icons in the index page for each message based on the message's content-type. For example: You can have text/plain messages use a different icon than text/html messages.

       

Defining Icons

To specify the icons for MHonArc to use, you use the ICONS resource element in the Resource File. The format of each line in the ICONS element is as follows:

<content-type>:<URL for icon>

<content-type> represents a MIME content-type. <URL for icon> is the URL to the icon. The special content-type called "unknown" may be defined to specify the icon to use for non-recognized content-types. If unknown is not defined, the text/plain icon is used for unknown content types.

Example

<icons>
audio/basic:http://foo.org/gifs/gsound.gif
image/gif:http://foo.org/gifs/gimage.gif
image/jpeg:http://foo.org/gifs/gimage.gif
image/tiff:http://foo.org/gifs/ggraphic.gif
multipart/alternative:http://foo.org/gifs/gmulti.gif
multipart/digest:http://foo.org/gifs/gtext.gif
multipart/mixed:http://foo.org/gifs/gdoc2.gif
multipart/parallel:http://foo.org/gifs/gdoc.gif
text/richtext:http://foo.org/gifs/gdoc.gif
text/html:http://foo.org/gifs/gdoc.gif
text/plain:http://foo.org/gifs/gletter.gif
unknown:http://foo.org/gifs/gunknown.gif
video/mpeg:http://foo.org/gifs/gmovie.gif
</icons>

       

Using Icons

In order to incorporate icons into the index page, insert the $ICON$ variable into the LITEMPLATE resource element.

Example

<litemplate>
$ICONURL$<strong>$SUBJECT:40$</strong>
($NUMFOLUP$) <em>$FROMNAME$</em><br>
</litemplate>

The $ICON$ variable expands to the IMG HTML element with the appropriate URL in the SRC attribute to the icon. The ALT attribute of the IMG element contains the content-type of the message, surrounded by []'s, for use with text based browsers.

       
$ICONURL$ may also be used if you want redefine the format of the IMG element.

Example

<litemplate>
<img src="$ICONURL$" alt="* "><strong>$SUBJECT:40$</strong>
($NUMFOLUP$) <em>$FROMNAME$</em><br>
</litemplate>

This example overrides what is normally used in the ALT attribute.

       

[Prev:Index Page Customization]
[Next:Archive Integrity]
[ToC]


MHonArc 1.0.0 -- Icons