These are a set of simple perl scripts which can act as a mail2fax gateways in
combination with your favour MTA.

Simply get your MTA to invoke this program:
	cat message | /path/to/mail2fax.pl <number>

Or
	cat message | /path/to/faxmail.pl <number>

mail2fax.pl is a very simple "template" to start from if you need custom
handling of different attachments and mime-types.

faxmail.pl is a more featurefull mailer, which handles more (including any I18N
text parts, including headers).  To use this, you'll need text handling rules in your typerules
file that handle UTF-8 text files.  I use this as the first line of my typerules file:
    # Handle "Email" text specifically
    0       string From:            ps      iconv -f UTF-8 -t ISO-8859-15 %i | \
					    a2ps -X ISO-8859-15 -R -PLetter --header=" " --footer= --left-footer= --right-footer= -=mail -1 -g -o %o

Unfortunately, I haven't found any good text => postscript converters that
handle UTF-8 natively, thus my use of iconv to push the UTF-8 text through a2ps
(which understands latin charactersets, but not unicode).


[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[TXT]HEADER.html2008-03-06 20:36 1.3K 
[TXT]faxmail.pl2008-08-25 16:22 6.3K 
[TXT]faxmail.pl.txt2008-08-25 16:22 6.3K 
[DIR]faxmail/2010-03-03 18:15 -  
[TXT]mail2fax.pl2007-02-07 22:00 1.0K 
[TXT]mail2fax.pl.txt2007-02-07 22:00 1.0K 
[TXT]message.txt2007-02-07 21:48 1.8K 
[DIR]test/2008-08-25 16:01 -  

Apache/2.4.71 (Debian) Server at people.ifax.com Port 80