MIME-able mail2fax solution anywhere?

rmcm@compsoft.com.au (rmcm@compsoft.com.au)
Thu, 23 Apr 1998 13:03:19 +0200


Hello Gert,

I added to faxmail;

    METAMAIL=/usr/local/bin/metamail
    MAILCAPS=/usr/local/etc/mailcap.fax export MAILCAPS
    X_BASE=MM_$$ export X_BASE
    METAMAIL_TMPDIR={$TMPDIR} export METAMAIL_TMPDIR
    #
    # Use metamail to extract the MIME parts
    #
    rm -f ${X_BASE}*
    ${METAMAIL} -B -q ${FULL_MESSAGE}
    MIME="${X_BASE}*"

together with a few lines to differently hand ${MIME} to faxspool, and
used the following in ${MAILCAPS}

    ####
    text/plain;     cat > ${X_BASE}-$$.txt;
    ####
    application/postscript;  cat > ${X_BASE}-$$.ps;
    application/x-dvi;       cat > ${X_BASE}-$$.dvi;
    application/x-latex;     cat > ${X_BASE}-$$.ltx;
    application/x-tex;       cat > ${X_BASE}-$$.tex;
    application/x-texinfo;   cat > ${X_BASE}-$$.texinfo;
    application/x-chess-pgn; cat > ${X_BASE}-$$.pgn;
    application/x-troff;     cat > ${X_BASE}-$$.troff;
    application/x-fig;       cat > ${X_BASE}-$$.fig;
    ####
    image/jpeg               cat > ${X_BASE}-$$.jpeg;
    image/x-faxlow-g3;       cat > ${X_BASE}-$$n.g3;
    image/x-faxhigh-g3;      cat > ${X_BASE}-$$.g3;
    image/x-xpixmap;         cat > ${X_BASE}-$$.xpm;
    ####
    image/*;        cat > ${X_BASE}-$$.image;
    application/*;  cat > ${X_BASE}-$$.application;
    text/*;         cat > ${X_BASE}-$$.text;
    audio/*;        cat > ${X_BASE}-$$.audio;
    video/*;        cat > ${X_BASE}-$$.video;

This works quite well for my needs - I have a network faxhost and a
sendmail smarthost which directs addresses of type
<phone_number@faxhost.fax> to the faxhost. I would like to tidyup
the faxmail script I am using and add some documentation - on the TODO
:)

Cheers,
Rex 
------------------------------------------------------------
Rex McMaster                            rmcm@compsoft.com.au 
                                   rex@mcmaster.wattle.id.au
     PGP Public key: http://www.compsoft.com.au/~rmcm/pgp-pk


Gert Doering writes:
 > Hi,
 > 
 > rmcm@compsoft.com.au wrote:
 > > You can use metamail with a local mailcap file to extract MIME
 > > parts. This slots fairly easily into faxmail.
 > 
 > Do you have a sample mailcap file for that purpose at hand?
 > 
 > gert
 > 
 > -- 
 > USENET is *not* the non-clickable part of WWW!
 >                                                            //www.muc.de/~gert/
 > Gert Doering - Munich, Germany                             gert@greenie.muc.de
 > fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de

--