MIME-able mail2fax solution anywhere?
Tom (kf6mli@amsat.org)
Wed, 22 Apr 1998 19:56:44 +0200
In article <m0yRB0j-0005QeC@greenie.muc.de> you wrote:
: Hi,
:
: Robert J. Brown wrote:
: > >>>>> "Gert" == Gert Doering <gert@greenie.muc.de> writes:
: >
: > Gert> Hi, Wolfgang Bartsch wrote:
: > >> I'm looking for a mail-to-fax solution which is able to extract
: > >> mime attachments, converts them and include them in the fax?
: >
: > Gert> This is something I've been looking for since a couple of
: > Gert> years... - basically, I'm missing a "generic MIME ->
: > Gert> postscript filter", conversion to fax is easy from then.
: >
: > Perhaps a modification of the magicfilter print spooling filter
: > package would do the trick? It is pretty flexible, handling dvi, gif,
: > jpeg, ascii, and postscript, along with gzip and compress compression,
: > etc.
:
: Won't help -- you've got to extract the MIME stuff first. The rest is
: easy (faxspool converts dvi, gif, ascii, postscript since years :-) ).
Hello Gerd,
sorry to write direct to you but I'm reading your
mailinglist via newsgroup de.alt.comm.mgetty and
I don't know if my posting would gone to your
list.
Under Linux have a look at 'uudeview'.
I've wrote a mail to myself.
Let's have a look at the header and body (shortened).
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
BOUNDARY="-2111015424-1245330431-893265259=:307"
---2111015424-1245330431-893265259=:307
Content-Type: TEXT/PLAIN; charset=US-ASCII
[..]
---2111015424-1245330431-893265259=:307
Content-Type: IMAGE/GIF; name="62125.gif"
Content-Transfer-Encoding: BASE64
[..]
---2111015424-1245330431-893265259=:307--
As you can see there is a plain text and a picture included.
Now I have saved this mail as 'test'. You could also
pipe it into uudeview ...
$ uudeview -i -t test
Loaded from test: 'test' (test): 0001.txt part 1 Text
Loaded from test: 'test' (test): 62125.gif part 1 Base64
Found '0001.txt' State 16 Text Parts OK
Found '62125.gif' State 16 Base64 Parts 1 OK
-rw-r--r-- 0001.txt is OK [d] (?=help) d
File successfully written to /var/home/kf6mli/mail/0001.txt
-rw-r--r-- 62125.gif is OK [d] (?=help) d
File successfully written to /var/home/kf6mli/mail/62125.gif
After that I have two files. '0001.txt' - the plain text
and '62125.gif' - the picture.
I think that's what your are looking for.
uudeview is under GPL so you can use this or parts from it.
Tom.