- case 'M':
- snprintf (tmp, sizeof (tmp), "%%%sc", fmt);
- if (folder->ff->nd->deleted)
- snprintf (dest, destlen, tmp, 'D');
- else
- snprintf (dest, destlen, tmp, folder->ff->nd->allowed ? ' ' : '-');
- break;
-
- case 's':
- if (flags & M_FORMAT_OPTIONAL) {
- if (folder->ff->nd->unread != 0)
- m_strformat(dest, destlen, 0, ifstr, newsgroup_format_str,
- data, flags);
- else
- m_strformat (dest, destlen, 0, elstr, newsgroup_format_str,
- data, flags);
- }
- else if (Context && Context->data == folder->ff->nd) {
- snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
- snprintf (dest, destlen, tmp, Context->unread);
- }
- else {
- snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
- snprintf (dest, destlen, tmp, folder->ff->nd->unread);
- }
- break;
-
- case 'n':
- if (Context && Context->data == folder->ff->nd) {
- snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
- snprintf (dest, destlen, tmp, Context->new);
- }
- else if (option (OPTMARKOLD) &&
- folder->ff->nd->lastCached >= folder->ff->nd->firstMessage &&
- folder->ff->nd->lastCached <= folder->ff->nd->lastMessage) {
- snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
- snprintf (dest, destlen, tmp,
- folder->ff->nd->lastMessage - folder->ff->nd->lastCached);
- }
- else {
- snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
- snprintf (dest, destlen, tmp, folder->ff->nd->unread);
- }
- break;
-
- case 'd':
- if (folder->ff->nd->desc != NULL) {
- snprintf (tmp, sizeof (tmp), "%%%ss", fmt);
- snprintf (dest, destlen, tmp, folder->ff->nd->desc);
- }
- else {
- snprintf (tmp, sizeof (tmp), "%%%ss", fmt);
- snprintf (dest, destlen, tmp, "");
- }
- break;
- }
- return (src);
-}
-#endif /* USE_NNTP */
-
-#ifdef USE_NNTP
-static void add_folder (MUTTMENU * m, struct browser_state *state,
- const char *name, const struct stat *s,
- void *data, int new)
-#else