MHonArc Resource List

ICONS


Syntax

Envariable

N/A

Element

<ICONS>
icon-specification
icon-specification
...
</ICONS>

Command-line Option

N/A


Description

The ICONS resource is used to specify the icons that represent the different content-types of messages.

The ICON resource can only be defined via the resource file element. 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.

In order to have icons appear in your pages, use the $ICON$ resource variable. For example:

<LiTemplate>
$ICON$ <strong>$SUBJECT:40$</strong>
<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.

The $ICONURL$ resource variable may be used if you want redefine the format of the IMG element. For example:

<LiTemplate>
<img src="$ICONURL$" alt="*">
<strong>$SUBJECT:40$</strong>
<em>$FROMNAME$</em><br>
</LiTemplate>

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


Default Setting

Nil.


Resource Variables

N/A


Examples

<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>

Version

1.0


See Also

LITEMPLATE, TLITXT, TSINGLETXT, TTOPBEGIN


97/06/03 17:04:09
MHonArc
Copyright © 1997, Earl Hood, ehood@medusa.acs.uci.edu