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]message.txt 2007-02-07 16:48 1.8K 
[   ]mail2fax.pl 2007-02-07 17:00 1.0K 
[TXT]mail2fax.pl.txt 2007-02-07 17:00 1.0K 
[DIR]test/ 2008-08-25 12:01 -  
[   ]faxmail.pl 2008-08-25 12:22 6.3K 
[TXT]faxmail.pl.txt 2008-08-25 12:22 6.3K 
[DIR]faxmail/ 2010-03-03 13:15 -