logo       

Re: limiting index by author: msg#00110

mail.mutt.mutt-ng.user

Subject: Re: limiting index by author

On 2005-09-22 18:18 +0200, cblists@xxxxxxxxxx wrote:
> Now as this behavior is rather awkward I was wondering if it
> is possible to do something like:
>
> 1. select the message in the index
> 2. typing just any keystroke that would automatically extract the senders
> email address and use this address for limiting using the pattern '~f'

There is probably a more efficient method to do this, but this is one
that comes to my mind. Create a macro that:

(1) Pipes the message to a shell script, which
(1.1) uses formail (or a similar tool) to extract the sender's e-mail
address, and
(1.2) writes a ``push "<limit>~f '...'"'' directive to a temporary file
(2) Sources the temporary file created in 1.2
(3) Optionally, deletes the temporary file created in 1.2

This macro could then be bound to any key stroke you like.

I don't think there is any muttng-only function to do what you are
asking, however. And I doubt one will be implemented.

--
Michael Kjörling, michael@xxxxxxxxxxxx - http://michael.kjorling.com/
* ASCII Ribbon Campaign: Against HTML Mail, Proprietary Attachments *
* ..... No bird soars too high if he soars with his own wings ..... *

Attachment: pgp5KsaZmfvBG.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise