:+1:!! I'm glad, I'm not the only one who saw a need for this.

Thanks!

Yoshiki.

On (Aug-30-16|17:53), d...@bikeshed.us wrote:
>  curs_main.c |  2 +-
>  init.h      |  8 ++++++++
>  mutt.h      |  1 +
>  3 files changed, 10 insertions(+), 1 deletions(-)
> 
> 
> # HG changeset patch
> # User David Champion <d...@bikeshed.us>
> # Date 1472604804 25200
> #      Tue Aug 30 17:53:24 2016 -0700
> # Node ID ed54319fbefaeba45479402175830f5d06ec93b0
> # Parent  be92ca7a461efd7815d5f6b170292798b7c79b3c
> Uncollapse threads when new mail arrives.
> 
> Adds $uncollapse_new: when set, a collapsed thread into which a new
> message arrives will be uncollapsed to reveal the new message.
> 
> diff --git a/curs_main.c b/curs_main.c
> --- a/curs_main.c
> +++ b/curs_main.c
> @@ -402,7 +402,7 @@
>    mutt_sort_headers (ctx, (check == MUTT_REOPENED));
>  
>    /* uncollapse threads with new mail */
> -  if ((Sort & SORT_MASK) == SORT_THREADS)
> +  if (option(OPTUNCOLLAPSENEW) && ((Sort & SORT_MASK) == SORT_THREADS))
>    {
>      if (check == MUTT_REOPENED)
>      {
> diff --git a/init.h b/init.h
> --- a/init.h
> +++ b/init.h
> @@ -3636,6 +3636,14 @@
>    ** When \fIset\fP, Mutt will jump to the next unread message, if any,
>    ** when the current thread is \fIun\fPcollapsed.
>    */
> +  { "uncollapse_new",        DT_BOOL, R_NONE, OPTUNCOLLAPSENEW, 1 },
> +  /*
> +  ** .pp
> +  ** When \fIset\fP, Mutt will automatically uncollapse any collapsed thread
> +  ** that receives a new message. When \fIunset\fP, collapsed threads will
> +  ** remain collapsed. the presence of the new message will still affect
> +  ** index sorting, though.
> +  */
>    { "use_8bitmime",  DT_BOOL, R_NONE, OPTUSE8BITMIME, 0 },
>    /*
>    ** .pp
> diff --git a/mutt.h b/mutt.h
> --- a/mutt.h
> +++ b/mutt.h
> @@ -452,6 +452,7 @@
>    OPTTILDE,
>    OPTTSENABLED,
>    OPTUNCOLLAPSEJUMP,
> +  OPTUNCOLLAPSENEW,
>    OPTUSE8BITMIME,
>    OPTUSEDOMAIN,
>    OPTUSEFROM,
> 

Reply via email to