<<< Date Index >>>     <<< Thread Index >>>

Re: Output matching line in message body on ~b pattern match



On 15 Apr 2008 15:22 -0400, by ethan.mallove@xxxxxxx (Ethan Mallove):
> Is there a way in mutt to "grep" the body of mail messages,
> and actually see the matching line from the mail message?

In addition to what the others have said, if you can live with using
an external tool, you can always pass copies of the matching messages
through formail or a similar utility and replace a header that mutt
can display natively in the index (say, "X-Label:", which is "%y" in
$index_format) with the matching line. Whatever that means when there
is more than one line that matches your search. You could bind a big
macro for this to a single keystroke, either on a per-mailbox or
global basis.

I doubt there is any way to make mutt do natively what you want though.

-- 
Michael Kjörling .. michael@xxxxxxxxxxx .. http://michael.kjorling.se
* ..... No bird soars too high if he soars with his own wings ..... *
* ENCRYPTED email preferred -- OpenPGP key ID: 0x 758F8749 BDE9ADA6 *
* ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *

Attachment: signature.asc
Description: Digital signature