[Alpine-info] How to print faxes automatically

lists.alpine-info at duinheks.nl lists.alpine-info at duinheks.nl
Fri Jan 14 01:25:34 PST 2011


Hello,

I've been struggling with this for some time already, but did not
find a solution yet.
What I want to do is print faxes, which are sent to me as e-mail
attachment, automatically to the printer.
Somebody adviced feeding them to a script. Could be a good idea,
but I have some problems with that.
1. How do I feed a message to a script.
2. What should to script look like to extract the pdf file.

Thanks for any useful help.

Hans.

J.D.H. Beekhuizen
e-mail: jdh.beekhuizen at duinheks.nl
tel: ++31(71)4015437
fax: ++31(71)4017198

A fax message looks typically like:

<...cut for brevity>
Subject: FRITZ!Box fax reception: New fax from unknown
Mime-Version: 1.0
Content-Type: multipart/mixed;
boundary="==AVM_Fritz_Box==multipart/mixed==0=="
<...cut for brevity>
--==AVM_Fritz_Box==multipart/mixed==0==
Content-Type: multipart/alternative;
boundary="==AVM_Fritz_Box==multipart/alternative==1=="

--==AVM_Fritz_Box==multipart/alternative==1==
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Message from FRITZ=21Box:

The caller: (Name unknown) sent you a telefax=2E
The telefax is an attachment to this e-mail message=2E
<...cut for brevity>

--==AVM_Fritz_Box==multipart/alternative==1==
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<?xml version=3D"1=2E0" ?>
<=21DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1=2E0 Transitional//EN"
"http://www=2Ew3=2Eorg/TR/xhtml1/DTD/xhtml1-transitional=2Edtd">
<html xmlns=3D"http://www=2Ew3=2Eorg/1999/xhtml">
<head>
<...cut for brevity>
</html>

--==AVM_Fritz_Box==multipart/alternative==1==--
--==AVM_Fritz_Box==multipart/mixed==0==
Content-Type: application/octet-stream; name="01.11.10_11.37_Telefax.unknown.pdf"
Content-Disposition: attachment; filename="01.11.10_11.37_Telefax.unknown.pdf"
Content-Transfer-Encoding: base64

<...cut for brevity>

--==AVM_Fritz_Box==multipart/mixed==0==--




More information about the Alpine-info mailing list