Re: How can I hide non-matching emails in a search

2021-10-26 Thread ny6p01
Thanks!


Lee 

On Oct 26, 2021 at 4:08 PM, Derek Martin  wrote:

On Tue, Oct 26, 2021 at 07:53:28AM -0700, Lee wrote:
> Can you use the pipe function on specific fields, like subject, from,
> date...?

You can, indirectly, by writing a script that does it, and using pipe
to call the script.  It might be easier to use ignore/unignore to only
show the headers you care about, if it's always the same  specific
set.  If there are different sets you care about in different
situations, you could even do something crazy like define (only) those
in different .muttrc files, and then define macros to load the
different files...

--
Derek D. Martinhttp://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.


Re: How can I hide non-matching emails in a search

2021-10-26 Thread Derek Martin
On Tue, Oct 26, 2021 at 07:53:28AM -0700, Lee wrote:
> Can you use the pipe function on specific fields, like subject, from,
> date...?

You can, indirectly, by writing a script that does it, and using pipe
to call the script.  It might be easier to use ignore/unignore to only
show the headers you care about, if it's always the same  specific
set.  If there are different sets you care about in different
situations, you could even do something crazy like define (only) those
in different .muttrc files, and then define macros to load the
different files...

-- 
Derek D. Martinhttp://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.




signature.asc
Description: PGP signature


Re: How can I hide non-matching emails in a search

2021-09-15 Thread Hedy Ache
Hi,

What about the ”limiting" function using `l` ?
It's similar to search but only matching emails will still visible.

1. Hit 'l'
2. The limiting pronpt shows up.
3. Enter 'IO Ninja'
4. Enter
5. mutt only show up matching emails
6. You can't use 'n' or 'N' but 'j' and 'k'.

Does it satisfy your use case ?

ache


Le Wed, Sep 15, 2021 at 04:05:56PM -0700, li...@ifohancroft.com a écrit :
> Hi,
> 
> I'd like to make mutt hide the emails not matching the entered search term.
> 
> Let's say I want to search for emails that have 'IO Ninja' in the subject:
> 
>  1. I hit '/'.
>  2. The search prompt shows up.
>  3. I enter 'IO Ninja'.
>  4. I hit 'Enter'.
>  5. mutt finds the first matching email (if any) and sends me to it.
>  6. Now I can use 'n' and 'N' to navigate between the matching emails.
> 
> However, all emails in the mailbox are still visible. I want any emails not
> matching the search term to be hidden.
> 
> Is this possible? How?
> 
> Best Regards,
> IFo Hancroft
> 


Re: How can I hide non-matching emails in a search

2021-09-15 Thread lists

Sorry, I accidentally resend the email, before adding my reply.


What about the ”limiting" function using `l` ?
It's similar to search but only matching emails will still visible.

1. Hit 'l'
2. The limiting pronpt shows up.
3. Enter 'IO Ninja'
4. Enter
5. mutt only show up matching emails
6. You can't use 'n' or 'N' but 'j' and 'k'.

Does it satisfy your use case ?


Thank you! That satisfies my use case perfectly. I just never knew it existed.

It's a bit unfortunate, that I can't use 'n' and 'N' with it really,  
but seeing how there's no other option, I can live with that.


Best Regards,
IFo Hancroft