On Tue, Apr 17, 2012 at 3:58 PM, David Champion <d...@uchicago.edu> wrote: > Offhand, the most straightforward way I can think of to do this > without including headers is to use a command designed to filter those > appropriately. Roughly, I'd look at using a macro that pipes to such a > command and then feeds it to another mutt instance to send to Amazon. > Something like: > > macro index =k '<pipe-message>enscript -G2r -Email -p- | pstopdf > >/tmp/mail.pdf; mutt -s email -a /tmp/mail.pdf -- m...@free.kindle.com > </dev/null; rm -f /tmp/mail.pdf<enter>' 'Send as PDF to Kindle' > > I haven't tested that, but since I have a Kindle I can work on it if you > have trouble. > > There are endless variations if you want text vs pdf, etc, but this > basic formula should work.
Thanks! I settled on a variation of this for now though, as you said, I can keep playing with this for some time to get the best result: macro index,pager \ck '<pipe-message>~/.mutt/scripts/strip-email-headers.pl| enscript -f "Times-Roman10" -B -p - | ps2pdf - /tmp/email.pdf; mutt -s convert -a /tmp/email.pdf -- a...@free.kindle.com </dev/null; rm -f /tmp/email.pdf<enter>' 'Send as PDF to Kindle' % cat ~/.mutt/scripts/strip-email-headers.pl !/usr/bin/perl -w # # while(<>) { last if ( /^\s*$/ ); } print <>;