/* %a = address of author
* %A = reply-to address (if present; otherwise: address of author
* %b = filename of the originating folder
- * %B = the list to which the letter was sent
+ * %B = the list to which the letter was sent, or else the folder name (%b).
* %c = size of message in bytes
* %C = current message number
* %d = date and time of message using $date_format and sender's timezone
* %g = message labels (e.g. notmuch tags)
* %i = message-id
* %I = initials of author
+ * %K = the list to which the letter was sent (if any; otherwise: empty)
* %l = number of lines in the message
* %L = like %F, except `lists' are displayed first
* %m = number of messages in the mailbox
break;
case 'B':
+ case 'K':
if (!first_mailing_list (dest, destlen, hdr->env->to) &&
!first_mailing_list (dest, destlen, hdr->env->cc))
dest[0] = 0;
mutt_format_s (dest, destlen, prefix, buf2);
break;
}
+ if (op == 'K')
+ {
+ if (optional)
+ optional = 0;
+ /* break if 'K' returns nothing */
+ break;
+ }
/* fall through if 'B' returns nothing */
case 'b':
** .dt %g .dd message labels (e.g. notmuch tags)
** .dt %H .dd spam attribute(s) of this message
** .dt %i .dd message-id of the current message
+ ** .dt %K .dd the list to which the letter was sent (if any; otherwise: empty).
** .dt %l .dd number of lines in the message (does not work with maildir,
** mh, and possibly IMAP folders)
** .dt %L .dd If an address in the ``To:'' or ``Cc:'' header field matches an address