arrggh, print hell [little OT]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, long time no speak :-) I've just had to print an entire mbox file, it wasn't that many messages but it was a painful process as I didn't think of a way to only print the /actuall/ message bodies (and perhaps TO, From) I just did: $ lpr mymboxfile What might I have done? Many thanks... - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8bB69HpvrrTa6L5oRAv3kAKCeBgUxn8bKkxKtlqbTYvAki+WrNACfX1yc frBBlVaLTxs8nf1xqweB1Xg= =IkTh -END PGP SIGNATURE-
Re: arrggh, print hell [little OT]
On 2002.02.14, in [EMAIL PROTECTED], Nick Wilson [EMAIL PROTECTED] wrote: I've just had to print an entire mbox file, it wasn't that many messages but it was a painful process as I didn't think of a way to only print the /actuall/ message bodies (and perhaps TO, From) I just did: $ lpr mymboxfile What might I have done? - open the mailbox in mutt - tag all (T.enter, I think? I don't use normal bindings.) - print all tagged items (;p) - quit Using mutt isn't necessary, of course, but it lets you apply mutt's header weeding. If $print_split is set, mutt will print each message as a separate job. If it's unset, the messages will be concatenated into your print command. -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago Colons and slashes and dots, oh my!
Re: arrggh, print hell [little OT]
On Don, Feb 14, 2002 at 09:31:57 +0100, Nick Wilson wrote: Hi everyone, hoi nick, I've just had to print an entire mbox file, it wasn't that many messages but it was a painful process as I didn't think of a way to only print the /actuall/ message bodies (and perhaps TO, From) I just did: $ lpr mymboxfile What might I have done? just give formail(1) a try. it should be delivered with your procmail package. format your mbox with it and pipe it to lpr. FORMAIL(1) FORMAIL(1) NAME formail - mail (re)formatter DESCRIPTION formail is a filter that can be used to force mail into mailbox format, perform `From ' escaping, generate auto- replying headers, do simple header munging/extracting or split up a mailbox/digest/articles file. The mail/mailĀ box/article contents will be expected on stdin. If formail is supposed to determine the sender of the mail, but is unable to find any, it will substitute `foo@bar'. If formail is started without any command line options, it will force any mail coming from stdin into mailbox format and will escape all bogus `From ' lines with a `'. [snip]
Re: arrggh, print hell [little OT]
* Nick Wilson ([EMAIL PROTECTED]) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, long time no speak :-) I've just had to print an entire mbox file, it wasn't that many messages but it was a painful process as I didn't think of a way to only print the /actuall/ message bodies (and perhaps TO, From) I just did: $ lpr mymboxfile What might I have done? Install muttprint. tag all the messages you want to print and print. muttprint will print all the messages out in succession the way you want. when you do it this way, it doesn't print each message on a separate page, but just continues printing. it might be configurable though. This works great for me when I want to print multiple messages like that. -- Carl B. Constantine University of Victoria Programmer Analyst http://www.uvic.ca UNIX System Administrator Victoria, BC, Canada [EMAIL PROTECTED]