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

Attachment: signature.asc
Description: Digital signature

Reply via email to