viewing pdf from mutt - procmail question?
I can view pdf attachments from mutt if they have mime headers like
Content-Type: application/pdf; name="file.pdf"
However I get quite a few emails with
Content-Type: application/octet-stream
Does anyone have a reliable way for modifying the Content-Type and
changing octet-stream to a useable type (pdf in this case)? The
"Content-Type: application/octet-stream" may appear before or after
any of the fields that provide the filename. I'd like to add something
like this to my procmail recipes.
Here's part of an example:
Original:
=========
Content-Type: multipart/mixed;
boundary="_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7"
X-Mailer: Turnpike Integrated Version 4.02 U <YrzOEMMwYk3QO8OuteX9u6dtFP>
X-UIDL: ed016b1b4888888649da6b0ef2351ce0
Status: RO
Content-Length: 1296074
Lines: 16853
This is a MIME message
--_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7
Welcome to Issue 17 of Incisor, a newsletter created by
Click I.T. Ltd - the IT industry PR and marketing company - for those
people interested in Bluetooth.
--_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7
Content-Description: Incisor Issue 17.pdf
Content-Disposition: attachment; filename="Incisor Issue 17.pdf"
Content-MD5: WiByMdlwV8pzsqD6omG8GA==
Content-Transfer-Encoding: base64
Content-Type: application/octet-stream
JVBERi0xLjINJeLjz9MNCjc2IDAgb2JqDTw8IA0vTGluZWFyaXplZCAxIA0vTyA3OCANL0ggWyAx
MjIzIDQ5MCBdIA0vTCA5NTg4MTUgDS9FIDkwMDAzIA0vTiAxNCANL1QgOTU3MTc3IA0+PiANZW5k
b2JqDSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
Modified:
=========
Content-Type: multipart/mixed;
boundary="_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7"
X-Mailer: Turnpike Integrated Version 4.02 U <YrzOEMMwYk3QO8OuteX9u6dtFP>
X-UIDL: ed016b1b4888888649da6b0ef2351ce0
Status: RO
Content-Length: 1296074
Lines: 16853
This is a MIME message
--_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7
Welcome to Issue 17 of Incisor, a newsletter created by
Click I.T. Ltd - the IT industry PR and marketing company - for those
people interested in Bluetooth.
--_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7
Content-Description: Incisor Issue 17.pdf
Content-Disposition: attachment; filename="Incisor Issue 17.pdf"
Content-MD5: WiByMdlwV8pzsqD6omG8GA==
Content-Transfer-Encoding: base64
Content-Type: application/pdf; name="Incisor17.pdf"
JVBERi0xLjINJeLjz9MNCjc2IDAgb2JqDTw8IA0vTGluZWFyaXplZCAxIA0vTyA3OCANL0ggWyAx
MjIzIDQ5MCBdIA0vTCA5NTg4MTUgDS9FIDkwMDAzIA0vTiAxNCANL1QgOTU3MTc3IA0+PiANZW5k
b2JqDSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
--
Lee Bradshaw lee@sectionIV.com (preferred)
Alantro Communications lee@alantro.com
Reply to: