}
/* save the list of new messages */
- if (oldcount && check != MUTT_REOPENED
+ if (option(OPTUNCOLLAPSENEW) && oldcount && check != MUTT_REOPENED
&& ((Sort & SORT_MASK) == SORT_THREADS))
{
save_new = (HEADER **) safe_malloc (sizeof (HEADER *) * (ctx->msgcount - oldcount));
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)
{
** 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