Hello Jeremy, On Thu, Nov 08, 2012 at 02:35:40PM -0800, Jeremy Kitchen wrote: > On Thu, Nov 08, 2012 at 11:20:20PM +0100, Suvayu Ali wrote: > > > > macro index,pager \cp "<pipe-message>muttprint --printer <printername>" > > > > Now I have a few scripts that I use to parse message headers for > > filtering and other stuff. So I set pipe_decode=no. This however means > > the above printing macro produces horendous prints with all the "weed" > > included from the email. > > > 2. Is it possible to remove the "weed" when I use <pipe-message> with > > pipe_decode=no in some other way? > > have your macro set pipe_decode=yes, pipe the message to muttprint, and > then set it back to no. >
This doesn't do quite what I want. I was hoping to be able to edit the print command so that I can specify the printer. If I do something like below: macro index,pager \cp "<enter-command>set pipe_decode=yes<enter>\ <pipe-message>muttprint --duplex --printer Cups-PDF<enter>\ <enter-command>set pipe_decode=no" # <printername> <enter> I can only edit the second "set ..." part. I cannot leave out the <enter> after Cups-PDF then Mutt treats the whole rest of the line as argument to muttprint. I hope I made my objective clear this time. > -Jeremy Cheers, -- Suvayu Open source is the future. It sets us free.