dialrules.europe
TARGETS = config.fax hosts.hfaxd xferfaxlog lockname ondelay
-TEMPLATES = en fr de ro pt_BR pt es it pl
+TEMPLATES = en fr de ro pt_BR pt es it pl html-sample1
default all::
@${MAKE} targets
--- /dev/null
+body div td
+{
+ font-size: 13px;
+ font-family: Verdana, Arial, Helvetica, Swiss, Futura, sans-serif;
+ color: #000000;
+}
+
+#logo {
+padding:10px;
+width:740px;
+background-color: #89EC77;
+-moz-border-radius: 8px;
+text-align:left;
+color:green;
+font-size: 22px;
+margin: 0px;
+}
+
+#content {
+ text-align: left;
+ margin: 0;
+ width: 740px;
+}
+
+#pdfblurb {
+ font-size: 13px;
+ padding:10px;
+ width:740px;
+ -moz-border-radius: 8px;
+}
+
+.tagline {
+ font-size: 12px;
+ font-style: italic
+}
+
+hr {
+ border: 0;
+ clear: both;
+ color: white;
+ border-bottom: 1px dotted #A9A9A9;
+ margin: 1em;
+}
+
+#fax
+{
+ font-size: 13px;
+ margin: 2em;
+}
+
+#faxdata
+{
+ border: 1px;
+}
+
+#error.blockquote
+{
+background-color: #89EC77;
+-moz-border-radius: 8px;
+}
--- /dev/null
+<hr class="divider"/>
--- /dev/null
+ <div id="pdfblurb" align="left">
+ <blockquote>
+ Your fax is attached to this email in PDF format. If you have
+ problems decoding this attachment, you may need to install a PDF
+ viewer. A common viewer available for many operating systems is
+ Adobe's Acrobat reader, which may be
+ <a href="http://www.adobe.com/products/acrobat/readstep2.html">
+ downloaded here
+ </a>.
+ </blockquote>
+ </div>
--- /dev/null
+ <div id="faxdata">
+ <table border="0" align="center">
+ <tr>
+ <td colspan="2"></td>
+ <td rowspan="9" width="20"></td>
+ <td rowspan="9" bgcolor="#cccccc" width="1"></td>
+ <td rowspan="9" width="20"></td>
+ <td colspan="2"></td>
+ </tr>
+ <tr>
+ <td align="right">Received:</td><td>$RECEIVED</td>
+ <td align="right">Pages:</td><td>$PAGES</td>
+ </tr>
+ <tr>
+ <td align="right">Sender:</td><td>$SENDER</td>
+ <td align="right">Quality:</td><td>$QUALITY</td>
+ </tr>
+ <tr>
+ <td align="right">CID:</td><td>$CALLID1</td>
+ <td align="right">Page Size:</td><td>$PAGE</td>
+ </tr>
+ <tr>
+ <td align="right">DID:</td><td>$CALLID2</td>
+ <td align="right">TimeToRecv:</td><td>$TIMETORECV</td>
+ </tr>
+ <tr>
+ <td align="right">CommID:</td><td>$COMMID</td>
+ <td align="right">SignalRate:</td><td>$SIGNALRATE</td>
+ </tr>
+ <tr>
+ <td align="right">ReceivedOn:</td><td>$DEVICE</td>
+ <td align="right">DataFormat:</td><td>$DATAFORMAT</td>
+ </tr>
+ <tr>
+ <td align="right"></td><td></td>
+ <td align="right"></td><td></td>
+ </tr>
+ </table>
+ </div>
--- /dev/null
+<div>
+ The fax has automatically been dispatched to:<br/>
+ <blockquote><pre>$SENDTO_HTML</pre></blockquote>
+</div>
--- /dev/null
+To: $SENDTO
+From: $FROMADDR
+Subject: Partial FAX received from $SENDER
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+ <hr class="divider"/>
+
+#INCLUDE fax-data.inc
+
+ <hr class="divider"/>
+
+ <div id=error>
+ The full document was not received because:<br/>
+ <blockquote>
+ $MSG
+ </blockquote>
+#INCLUDE session_log.inc
+ </div>
+
+ <hr class="divider"/>
+
+#INCLUDE fax-attach.inc
+
+#INCLUDE footer.inc
+
--- /dev/null
+To: $TOADDR
+From: $FROMADDR
+Subject: FAX not received on $DEVICE
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+ <hr class="divider"/>
+
+ <div id=error>
+ An attempt to receive a fax failed because:<br/>
+ <blockquote>
+ $MSG
+ </blockquote>
+#INCLUDE session_log.inc
+ </div>
+
+#INCLUDE footer.inc
+
--- /dev/null
+To: $TOADDR
+From: $FROMADDR
+Subject: Partial FAX received on $DEVICE from "$SENDER"
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+#INCLUDE fax-data.inc
+
+#INCLUDE divider.inc
+
+ <div id=error>
+ The full document was not received because:<br/>
+ <blockquote>
+ $MSG
+ </blockquote>
+#INCLUDE session_log.inc
+ </div>
+
+#INCLUDE divider.inc
+
+#INCLUDE fax-dispatched.inc
+
+#INCLUDE footer.inc
+
--- /dev/null
+To: $TOADDR
+From: $FROMADDR
+Subject: FAX received on $DEVICE from "$SENDER"
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+#INCLUDE fax-data.inc
+
+#INCLUDE divider.inc
+
+#INCLUDE fax-dispatched.inc
+
+#INCLUDE footer.inc
+
--- /dev/null
+To: $SENDTO
+From: $FROMADDR
+Subject: FAX received from $SENDER
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+#INCLUDE fax-data.inc
+
+#INCLUDE divider.inc
+
+#INCLUDE fax-attach.inc
+
+#INCLUDE footer.inc
+
--- /dev/null
+
+ </div>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+<style type="text/css">
+<!--
+#INCLUDE css.inc
+ -->
+</style>
+</head>
+
+<body bgcolor="#FFFFFF" align="center">
+
+ <div id="logo">
+ <img src="http://people.ifax.com/~aidan/hylafax/templates/images/small_frog.png" style="vertical-align:text-bottom;"> HylaFAX <span class="tagline">The world's most advanced open source fax server</span>
+ </div>
+
+ <div id="content" align="center">
--- /dev/null
+# We need HTMLizing certain fields
+
+html_sanitize()
+{
+ for i in $*
+ do
+ #printf '%s: \n' "$i"
+ val=`eval echo "$""$i" | sed -e 's/</\</g;s/>/\>/g'`
+ eval "$i"_HTML='"'"$val"'"'
+ eval export "$i"_HTML
+ done
+}
+
+html_sanitize SENDTO
--- /dev/null
+
+ <div id="faxdata">
+ <table border="0" align="center">
+ <tr>
+ <td colspan="2"></td>
+ <td rowspan="99" width="20"></td>
+ <td rowspan="99" bgcolor="#cccccc" width="1"></td>
+ <td rowspan="99" width="20"></td>
+ <td colspan="2"></td>
+ </tr>
+ <tr>
+ <td align="right">Pages:</td><td>$npages / $totpages</td>
+ <td align="right">Number:</td><td>$number</td>
+ </tr>
+ <tr>
+ <td align="right">Page Width:</td><td>$pagewidth (mm)</td>
+ <td align="right">Receiver:</td><td>$receiver</td>
+ </tr>
+ <tr>
+ <td align="right">Page Length:</td><td>$pagelength</td>
+ <td align="right">Company:</td><td>$company</td>
+ </tr>
+ <tr>
+ <td align="right">Resolution:</td><td>$resolution (lpi)</td>
+ <td align="right">Remote Station:</td><td>$csi</td>
+ </tr>
+ <tr>
+ <td align="right">Sender:</td><td>$sender</td>
+ <td align="right">Signal Rate:</td><td>$signalrate</td>
+ </tr>
+ <tr>
+ <td align="right">Address</td><td>$mailaddr</td>
+ <td align="right">Dials:</td><td>$ndials</td>
+ </tr>
+ <tr>
+ <td align="right">Submitted from:</td><td>$client</td>
+ <td align="right">Calls:</td><td>$totdials</td>
+ </tr>
+ <tr>
+ <td align="right">Modem Group:</td><td>$modem</td>
+ <td align="right">Dialogs:</td><td>$tottries</td>
+ </tr>
+ <tr>
+ <td align="right">CommID:</td><td>$commid</td>
+ <td align="right">Attempts:</td><td>$ntries</td>
+ </tr>
+ <tr>
+ <td align="right"></td><td></td>
+ <td align="right"></td><td></td>
+ </tr>
+ </table>
+
+ </div>
--- /dev/null
+To: $SENDTO
+From: $FROMADDR
+Subject: Fax $jobid to $DESTINATION blocked
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+Your fax <b>$jobid</b> to $DESTINATION is <i>delayed</i> in
+the scheduling queue because:
+<blockquote>
+ $faxstatus
+</blockquote>
+<br/>
+The job will be processed as soon as possible.
+
+#INCLUDE footer.inc
+
--- /dev/null
+To: $SENDTO
+From: $FROMADDR
+Subject: Fax $jobid to $DESTINATION completed
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+Your fax <b>$jobid</b> to $DESTINATION was <i>completed successfully</i> in $JTIME.
+
+#INCLUDE job-data.inc
+
+#INCLUDE divider.inc
+
+#INCLUDE fax-attach.inc
+
+#INCLUDE footer.inc
+
--- /dev/null
+To: $SENDTO
+From: $FROMADDR
+Subject: Fax $jobid to $DESTINATION failed
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+Your fax <b>$jobid</b> to $DESTINATION has <i>failed</i>.
+
+
+#INCLUDE job-data.inc
+
+Processing time was $JTIME.
+
+#INCLUDE divider.inc
+
+ <div id=error>
+ The last attempt failed because:<br/>
+ <blockquote>
+ $faxstatus
+ </blockquote>
+#INCLUDE session_log.inc
+ </div>
+
+#INCLUDE divider.inc
+
+#INCLUDE fax-attach.inc
+
+#INCLUDE footer.inc
+
--- /dev/null
+To: $SENDTO
+Subject: Fax $jobid to $DESTINATION failed
+From: $FROMADDR
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+Your fax <b>$jobid</b> to $DESTINATION was <i>not sent</i> because document conversion
+failed. The output from the converter program was:
+<blockquote>
+ <pre>$faxstatus</pre>
+</blockquote>
+<br/>
+Check any PostScript documents for non-standard fonts and invalid constructs
+
+#INCLUDE divider.inc
+
+#INCLUDE job-data.inc
+
+#INCLUDE footer.inc
--- /dev/null
+To: $SENDTO
+From: $FROMADDR
+Subject: Fax $jobid to $DESTINATION was removed
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+Your fax <b>$jobid</b> to $DESTINATION was <i>removed</i> from the queue.
+
+#INCLUDE divider.inc
+
+#INCLUDE job-data.inc
+
+#INCLUDE footer.inc
+
--- /dev/null
+To: $SENDTO
+Subject: Fax $jobid to $DESTINATION failed
+From: $FROMADDR
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+Your fax <b>$jobid> to $DESTINATION <i>failed</i> because the document
+conversion script was not found.
+
+#INCLUDE divider.inc
+
+#INCLUDE job-data.inc
+
+#INCLUDE footer.inc
--- /dev/null
+To: $SENDTO
+From: $FROMADDR
+Subject: Fax $jobid to $DESTINATION rejected
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+#INCLUDE header.inc
+
+Your job to $DESTINATION was <i>rejected</i> because:
+<blockquote>
+ <pre>$faxstatus</pre>
+</blockquote>
+<br/>
+
+#INCLUDE divider.inc
+
+#INCLUDE job-data.inc
+
+#INCLUDE divider.inc
+
+#INCLUDE footer.inc
--- /dev/null
+To: $SENDTO
+From: $FROMADDR
+Subject: Fax $jobid to $DESTINATION was removed
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+Your fax <b>$jobid</b> to $DESTINATION was <i>removed</i> from the queue.
+
+#INCLUDE divider.inc
+
+#INCLUDE job-data.inc
+
+#INCLUDE footer.inc
+
--- /dev/null
+To: $SENDTO
+From: $FROMADDR
+Subject: Fax $jobid to $DESTINATION requeued
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+Your fax <b>$jobid</b> to $DESTINATION has been <i>requeued</i>.
+<br/>
+The last attempt to send it was unsuccessful:
+<blockquote id=error>
+ <code>$faxstatus</code>
+</blockquote>
+
+#INCLUDE job-data.inc
+
+It will be retried again at $NEXT.
+
+#INCLUDE divider.inc
+ <div id=error>
+ The last attempt failed because:<br/>
+#INCLUDE session_log.inc
+ </div>
+
+#INCLUDE footer.inc
+
--- /dev/null
+To: $SENDTO
+From: $FROMADDR
+Subject: Fax $jobid to $DESTINATION timed out
+Content-type: text/html; charset=UTF-8
+Content-Transfer-Encoding: base64
+
+
+#INCLUDE header.inc
+
+#INCLUDE divider.inc
+
+Your fax <b>$jobid</b> to $DESTINATION has <i>timed out</i>
+and has been removed from the queue.
+
+#INCLUDE divider.inc
+
+#INCLUDE job-data.inc
+
+#INCLUDE footer.inc
--- /dev/null
+ <textarea cols="90" wrap="off" rows="15" readonly>$SESSION_LOG</textarea>