* Patrick Shanahan <ptilopt...@gmail.com> [2013-01-30 11:40:05 -0500]:

> * Ed <w...@comcast.net> [01-30-13 10:48]:
> > How do I strip the headers when I save a message ?
> 
> I know of no *mutt* specific facility, but rebinding <save> to script
> which would perform the actions you wish would be possible.  Note: I
> believe the resulting mail would be *unread*.

Ok, what you need to do is when in the pager view, press 'v' to
view attachments and it will list the mime parts of the mail. So
if you just want to save the text part of the mail, you use the
arrow keys to select the text/plain part, for example, and the press
's' to save and at the bottom it will ask you where to save the
file; i.e. ~/patricksresponse. Then when you use another terminal
and use cat or less on the file it will show you just the mail
itself, no headers. This code was inherited from mail(1) I believe
as it has the same ability to save messages without headers, for
example diff files or code files and scripts that you want to save,
obviously you wouldn't need the headers with those types of mail.


-- 
Primary Key: 4096R/1D31DC38 2011-12-03
Key Fingerprint: A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38

Reply via email to