Re: Procmail threads filtering with notmuch

2012-10-11 Thread Alexis Letessier
Hi Will,

Thanks again for your ideas.

On 04/10/12 16:04, Will Fiveash wrote:
> I use procmail and some shell scripts to basically do the same.  Here is
> my .procmail rule:
> 
> # Process killed threads, save killed threads in killedthreads mbox
> :0:
> * ? $HOME/bin/isthreadkilled
> killedthreads

I have adapted you script to use notmuch index and included it in my
procmail rule:

:0:
* ? formail -c -x In-Reply-To: -x References: \
| tr -s '  ' '\n\n' \
| sed -e '/^\([^<].*\|.*[^>]\|\)$/ d' -e 's/[<>]//g' -e 's/^/id:/' \
| xargs -r -n 1 notmuch search --output=files \
| fgrep Archive >/dev/null
Archive/

-- 
Alexis


signature.asc
Description: Digital signature


Re: Procmail threads filtering with notmuch

2012-10-11 Thread Will Fiveash
On Thu, Oct 11, 2012 at 10:12:16PM +0200, Alexis Letessier wrote:
> Hi Will,
> 
> Thanks again for your ideas.
> 
> On 04/10/12 16:04, Will Fiveash wrote:
> > I use procmail and some shell scripts to basically do the same.  Here is
> > my .procmail rule:
> > 
> > # Process killed threads, save killed threads in killedthreads mbox
> > :0:
> > * ? $HOME/bin/isthreadkilled
> > killedthreads
> 
> I have adapted you script to use notmuch index and included it in my
> procmail rule:
> 
> :0:
> * ? formail -c -x In-Reply-To: -x References: \
> | tr -s '  ' '\n\n' \
> | sed -e '/^\([^<].*\|.*[^>]\|\)$/ d' -e 's/[<>]//g' -e 's/^/id:/' \
> | xargs -r -n 1 notmuch search --output=files \
> | fgrep Archive >/dev/null
> Archive/

I don't see my script stuff in there so I'm thinking you probably need
to redirect your thanks to Marco.  If you are using some of my stuff,
you're welcome.

-- 
Will Fiveash


Re: Procmail threads filtering with notmuch

2012-10-11 Thread Alexis Letessier
You're right Will,

I have used tr and sed expressions from Marco and only a part of your procmail 
recipe (* ? script).

Thanks to you two then ;)

On 11/10/12 15:30, Will Fiveash wrote:
> I don't see my script stuff in there so I'm thinking you probably need
> to redirect your thanks to Marco.  If you are using some of my stuff,
> you're welcome.

-- 
Alexis


signature.asc
Description: Digital signature


Re: Procmail threads filtering with notmuch

2012-10-11 Thread M. Fioretti
On Thu, Oct 11, 2012 22:43:39 PM +0200, Alexis Letessier wrote:
> You're right Will,
> 

> I have used tr and sed expressions from Marco and only a part of
>  your procmail recipe (* ? script).
> 
> Thanks to you two then ;)

You're welcome! Glad the stuff was useful. For the record, the
procmail recipe in my blog post is NOT mine (as duly noted in the post
itself and/or in the code). Basically, I had the idea, then whined on
the procmail list about it until Sean Straw, procmail guru, became
interested and wrote the real code in a couple minutes :-)

Marco


Re: Procmail threads filtering with notmuch

2012-10-11 Thread J Wermont
M. Fioretti wrote:

 > You're welcome! Glad the stuff was useful. For the record, the
 > procmail recipe in my blog post is NOT mine (as duly noted in the post
 > itself and/or in the code). Basically, I had the idea, then whined on
 > the procmail list about it until Sean Straw, procmail guru, became
 > interested and wrote the real code in a couple minutes :-)

There's a procmail list? Could you post or email me the s*bscribe info?

Thanks!
Joyce


Re: Procmail threads filtering with notmuch

2012-10-11 Thread M. Fioretti
On Thu, Oct 11, 2012 14:39:28 PM -0700, J Wermont wrote:
> M. Fioretti wrote:
> 
>  > You're welcome! Glad the stuff was useful. For the record, the
>  > procmail recipe in my blog post is NOT mine (as duly noted in the post
>  > itself and/or in the code). Basically, I had the idea, then whined on
>  > the procmail list about it until Sean Straw, procmail guru, became
>  > interested and wrote the real code in a couple minutes :-)
> 
> There's a procmail list? 

of course there is, is not a secret

http://www.procmail.org/era/lists.html

Marco