Hello, everybody,
Please take a brief look at my resource file below which I adapted from the
icons.mrc.
If you are interested, you can see the result at:
However, there are two features which I can not get functioning:
1) As it is a spanish page, I adapted the names of days and months as follows:
<MONTHSABR>
Ene:Feb:Mar:Abr:May:Jun:Jul:Ago:Set:Oct:Nov:Dec:
</MONTHSABR>
<WEEKDAYSABR>
Dom:Lun:Mar:Mie:Jue:Vie:Sab:
</WEEKDAYSABR>
However, the result page just keeps printing the english version.
2) I would like Mhonarc to accept 'text/html' code for this list. So if a
subscriber puts in his/her message body: <b>bert</b>, Mhonarc should print the
result page as bert, and not as <b>bert</b>
I tried something with the filters:
<MIMEFilters>
text/html; m2h_text_html::filter; mhtxthtml.pl
</MIMEFilters>
(...although this is a probably the default option).
However, Mhonarc keeps printing in the header:
<--- X content type: text/plain --->
and hence html-code is not interpreted in the message of the body
How could I get this functioning?
Many thanks in advance for your suggestions!
Regards,
-brt
<!-- Bert's MHonArc resource file icons.mrc adapted -->
<main>
<sort>
<nothread>
<noreverse>
<DefineVar>
MAIN-TITLE
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#800040" VLINK="#000080"
ALINK="#008000">
<CENTER><FONT COLOR="#DB7038"><FONT
SIZE=+3><strong>CONINPYME</strong></FONT></FONT><br>
<FONT COLOR="#393B64"><strong>Promoción de Eventos</strong></FONT></CENTER>
</DefineVar>
<MONTHSABR>
Ene:Feb:Mar:Abr:May:Jun:Jul:Ago:Set:Oct:Nov:Dec:
</MONTHSABR>
<WEEKDAYSABR>
Dom:Lun:Mar:Mie:Jue:Vie:Sab:
</WEEKDAYSABR>
<TITLE>
$MAIN-TITLE$
</TITLE>
<!-- Have LISTBEGIN contain last updated information -->
<listbegin>
<address>
Ultima actualización: $LOCALDATE$<br>
$NUMOFMSG$ evento(s)<br>
</address>
<p>
Eventos aparecen listados en orden cronologico. El formato del listado es el
siguiente:
<blockquote>
<img src="/icons/image1.gif" alt="* ">
<strong>Asunto</strong><code> </code>
<em>Remitiente</em>.
</blockquote>
<p>
<hr>
</listbegin>
<!-- A compact listing template with icon usage -->
<litemplate>
<img src="$ICONURL$" alt="* "><strong>$SUBJECT:40$</strong>
<em>$FROMNAME$</em><br>
</litemplate>
<listend>
</listend>
<labelstyles>
subject:strong
from:strong
</labelstyles>
<fieldstyles>
subject:strong
from:strong
</fieldstyles>
<!--=== Message Customizations ======-->
<MsgPgBegin>
$MAIN-TITLE$
</MsgPgBegin>
<!-- the buttons: -->
<PREVBUTTON chop>
<A HREF="$MSG(PREV)$"><img src="/icons/left.gif" alt="Anterior evento por
fecha" border="0"></A>
</PREVBUTTON>
<NEXTBUTTON chop>
<A HREF="$MSG(NEXT)$"><img src="/icons/right.gif" alt="Siguiente evento por
fecha" border="0"></A>
</NEXTBUTTON>
<PREVBUTTONIA chop>
<img src="/icons/forward.gif" alt="No hay anterior evento por fecha"
border="0">
</PREVBUTTONIA>
<NEXTBUTTONIA chop>
<img src="/icons/back.gif" alt="No hay siguiente evento por fecha" border="0">
</NEXTBUTTONIA>
<!-- finally, give layout of these buttons for each message: -->
<TOPLINKS>
<HR SIZE=1 NOSHADE WIDTH="100%">
$BUTTON(PREV)$ $BUTTON(NEXT)$
<A HREF="$IDXFNAME$#$MSGNUM$"><img src="/icons/index.gif" alt="Indice por
fecha" border="0"></A>
<A HREF="http://www.coninpyme.org/eventos/formprom.shtml"><img
src="/icons/unknown.gif" alt="Sobre el Servicio - Promoción de Eventos -"
border="0"></A>
<HR SIZE=1 NOSHADE WIDTH="100%">
</TOPLINKS>
<MIMEFilters>
text/html; m2h_text_html::filter; mhtxthtml.pl
</MIMEFilters>
<SubjectHeader>
<H1>$SUBJECTNA$</H1>
<HR SIZE=1 NOSHADE WIDTH="100%">
</SubjectHeader>
<HEADBODYSEP>
<HR SIZE=1 NOSHADE WIDTH="100%">
</HEADBODYSEP>
<MSGBODYEND>
<HR SIZE=1 NOSHADE WIDTH="100%">
</MSGBODYEND>
<BOTLINKS>
$BUTTON(PREV)$ $BUTTON(NEXT)$
<A HREF="$IDXFNAME$#$MSGNUM$"><img src="/icons/index.gif" alt="Indice por
fecha" border="0"></A>
<A HREF="http://www.coninpyme.org/eventos/formprom.shtml"><img
src="/icons/unknown.gif" alt="Sobre el Servicio - Promoción de Eventos -"
border="0"></A>
<HR SIZE=1 NOSHADE WIDTH="100%">
</BOTLINKS>
<!-- Specify icons for message types -->
<icons>
audio/basic:/icons/gsound.gif
image/gif:/icons/gimage.gif
image/jpeg:/icons/gimage.gif
image/tiff:/icons/ggraphic.gif
multipart/alternative:/icons/gmulti.gif
multipart/digest:/icons/gtext.gif
multipart/mixed:/icons/gdoc2.gif
multipart/parallel:/icons/gdoc.gif
text/enriched:/icons/gdoc.gif
text/html:/icons/gdoc.gif
text/plain:/icons/image1.gif
unknown:/icons/gunknown.gif
video/mpeg:/icons/gmovie.gif
</icons>
Bert Hiddink, FUNDACION GALILEO
Correo electronico: hiddink(_at_)sipromicro(_dot_)com
Sitio: http://www.sipromicro.com
Tel. (506) 280 8683, telefax. (506) 280 8847