mutt_error _("Threading is not enabled."); return (-1);
return (0);
int mutt_msgno_in_thread (HEADER *cur){  HEADER *top;  HEADER *target;  int n = 0;  if ((Sort & SORT_MASK) != SORT_THREADS)  {     mutt_error _("Threading is not enabled.");    return (-1);  }   /* save target */  target = cur;  /* find top parent */  while (cur->parent)    cur = cur->parent;  top = cur;  /* return if single message */  if (top == target)    return n;  /* return if there are no children at all */  if ((cur = cur->child) == NULL)    return n;  FOREVER  {    n++;    if (cur == target)      return n;    if (cur->child)      cur = cur->child;    else if (cur->next)       cur = cur->next;    else     {      while (!cur->next)       {        cur = cur->parent;        if (cur == top) 	{          mutt_error _("Target message not found while counting messages in thread.");          return (-1);        }      }      cur = cur->next;    }   }   /* not reached */}