* %C = current message number
* %d = date and time of message using $date_format and sender's timezone
* %D = date and time of message using $date_format and local timezone
+ * %e = current message number in thread
+ * %E = number of messages in current thread
* %f = entire from line
* %F = like %n, unless from self
* %i = message-id
if ((Sort & SORT_MASK) != SORT_THREADS)
{
- mutt_error _("Threading is not enabled.");
- return (-1);
+ /* mutt_error _("Threading is not enabled."); */
+ return (1);
}
/* find top parent */
cur = cur->parent;
top = cur;
- /* return if there are no children at all */
+ /* return if there are no children */
if ((cur = cur->child) == NULL)
return n;
if ((Sort & SORT_MASK) != SORT_THREADS)
{
- mutt_error _("Threading is not enabled.");
- return (-1);
+ /* mutt_error _("Threading is not enabled."); */
+ return (0);
}
/* save target */
if (top == target)
return n;
- /* return if there are no children at all */
- if ((cur = cur->child) == NULL)
- return n;
+ /* step into first child */
+ cur = cur->child;
FOREVER
{
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;
}
}