Printing an mbox
am 31.03.2010 03:39:47 von Alex
Hi,
I have an email mbox with about 500 messages in it that I'd like to
print. Are there any command-line tools that I can use that take an
mbox as an input (or the individual mails split with formail) and
pretty-print them to a postscript file?
I was thinking of something like hypermail to convert it to HTML, but
there's too many additional modifications involved. I wished
Thunderbird would enable you to highlight multiple email messages and
print them all to one file (a postscript printer file), but it
doesn't.
Thanks for any ideas.
Best regards,
Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Printing an mbox
am 31.03.2010 10:38:21 von adamb
This is a cryptographically signed message in MIME format.
--------------ms000100050600030607040802
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi,
The pine mail client (or alpine as it is now) allows you to select
multiple messages and then print them all at once (using "Apply->Print"
command after "Select"-ing messages). You can also configure your own
print commands in the configuration, so you could pipe the messages
through something to prettify them first, if you want. I don't print my
email so I haven't actually used it, so I have no idea what the actual
rendering of emails is like (unlikely that it will render HTML emails or
anything fancy by default).
I use thunderbird myself on some systems so I thought I'd give it a go
to see if I could make it print multiple messages. I selected ten
messages, clicked print, got a print preferences dialogue and clicked
okay. At that point it opened ten message windows, plus ten "printing"
dialogues, and crashed. Ho hum.
Cheers,
Adam
On 31/03/10 02:39, Alex wrote:
> Hi,
>=20
> I have an email mbox with about 500 messages in it that I'd like to
> print. Are there any command-line tools that I can use that take an
> mbox as an input (or the individual mails split with formail) and
> pretty-print them to a postscript file?
>=20
> I was thinking of something like hypermail to convert it to HTML, but
> there's too many additional modifications involved. I wished
> Thunderbird would enable you to highlight multiple email messages and
> print them all to one file (a postscript printer file), but it
> doesn't.
>=20
> Thanks for any ideas.
> Best regards,
> Alex
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--------------ms000100050600030607040802
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIIVJjCC
BpwwggWEoAMCAQICAwDMLjANBgkqhkiG9w0BAQUFADCBjDELMAkGA1UEBhMC SUwxFjAUBgNV
BAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENl cnRpZmljYXRl
IFNpZ25pbmcxODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJ bnRlcm1lZGlh
dGUgQ2xpZW50IENBMB4XDTA5MTIxMDA5NDcwMloXDTEwMTIxMTEwNDM1M1ow gZIxIDAeBgNV
BA0TFzExMTgyMC1wZWRaeGw1ejNLOGFZQVJUMR4wHAYDVQQKExVQZXJzb25h IE5vdCBWYWxp
ZGF0ZWQxKTAnBgNVBAMTIFN0YXJ0Q29tIEZyZWUgQ2VydGlmaWNhdGUgTWVt YmVyMSMwIQYJ
KoZIhvcNAQkBFhRhZGFtYkBhZ2l0YXRlLm9yZy51azCCASIwDQYJKoZIhvcN AQEBBQADggEP
ADCCAQoCggEBAOofaCOt5EdexCwTURhbkVx2+AfysIgIJ56+BngA6buGdaT4 aiMgbI/05qL+
5hHNHGOShbSZmS14ffLcDrO97bnlsDiK0RiFNAPmmXUTK3EqjHqdsZfKLZir rH4nrTYdNSOw
hz7v2S+Ar/606D/9yO1iPpergqFv7lI9sRHNSVr66NrH6AEgLwWM/fMeePJg F7Zv6tHlpET9
sUrTdqYWU8pbhByyyoUsMADC81pO4isTt6AY5K5jvPtKNklSj4Vt4PQ0tymQ tfnR2l3KVeNG
NipR1EH1BUaCKuhP3ivrAPb5UOQ8QA44SDhcWjWSOuj5e00MognvzCTucPbC rmXhl4kCAwEA
AaOCAv0wggL5MAkGA1UdEwQCMAAwCwYDVR0PBAQ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mEa1hfa12Znb
fnIhlZdqL4GiF5tlU0iGzZyaxUd7VjQzseo897zyajb4/Ar1hWySSTKss1LE 0Qi/6QcBgtCL
CGg9NkNyV1As3ysRvU0SVuq5RXk+PiPHIv00eK+ANv1nx2y2p+apyuzk3k/D qLEdRZHRBc3I
gJBTk7NGsRV+0xv29C8N9LPShePq4bZwA1IhQm0sXwKvnPpW95u0urCS6KD2 H1BKCsLsp/r7
mF2bp7RB01G/jmbAh4TS5M9b6e8pX3EN944Hsj2TdUeEUU+U63+pWrFGm6GG saZqiOc06cWm
9324P3THEKZRrTG8/j6jKN2DGBEAAAAAAAA=
--------------ms000100050600030607040802--
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Printing an mbox
am 01.04.2010 22:40:43 von Alex
Hi,
> The pine mail client (or alpine as it is now) allows you to select
> multiple messages and then print them all at once (using "Apply->Print"
> command after "Select"-ing messages). You can also configure your own
Ugh, that sounds like quite a process for a large number of messages,
but good to know it exists.
I'm thinking about a simple perl script that grabs the headers I'd
like to include along with some basic HTML tags to make them look
better, along with some PRE tags to format the body, then running it
through html2ps or something..
Do you think that would work?
> I use thunderbird myself on some systems so I thought I'd give it a go
Yeah, I also had tried that, and disappointed to also see it crash and burn.
I recall doing it about fifteen years ago, but can't for the life of
me remember exactly how. I think it involved LaTeX or something, but
that would be entirely too involved for what I need now.
Thanks again,
Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html