WHERE char *SslCACertFile INITVAL (NULL);
#endif
#endif
-WHERE char *StChars;
+WHERE mbchar_table *StChars;
WHERE char *Status;
WHERE char *Tempdir;
-WHERE char *Tochars;
+WHERE mbchar_table *Tochars;
WHERE char *TrashPath;
WHERE char *TSStatusFormat;
WHERE char *TSIconFormat;
break;
case 'T':
- snprintf (fmt, sizeof (fmt), "%%%sc", prefix);
+ snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
snprintf (dest, destlen, fmt,
- (Tochars && ((i = mutt_user_is_recipient (hdr))) < mutt_strlen (Tochars)) ? Tochars[i] : ' ');
+ (Tochars && ((i = mutt_user_is_recipient (hdr))) < Tochars->len) ? Tochars->chars[i] : " ");
break;
case 'u':
ch = 'K';
snprintf (buf2, sizeof (buf2),
- "%c%c%c", (THREAD_NEW ? 'n' : (THREAD_OLD ? 'o' :
+ "%c%c%s", (THREAD_NEW ? 'n' : (THREAD_OLD ? 'o' :
((hdr->read && (ctx && ctx->msgnotreadyet != hdr->msgno))
? (hdr->replied ? 'r' : ' ') : (hdr->old ? 'O' : 'N')))),
hdr->deleted ? 'D' : (hdr->attach_del ? 'd' : ch),
- hdr->tagged ? '*' :
- (hdr->flagged ? '!' :
- (Tochars && ((i = mutt_user_is_recipient (hdr)) < mutt_strlen (Tochars)) ? Tochars[i] : ' ')));
+ hdr->tagged ? "*" :
+ (hdr->flagged ? "!" :
+ (Tochars && ((i = mutt_user_is_recipient (hdr)) < Tochars->len) ? Tochars->chars[i] : " ")));
mutt_format_s (dest, destlen, prefix, buf2);
break;
** required.)
*/
#endif /* defined(USE_SSL) */
- { "status_chars", DT_STR, R_BOTH, UL &StChars, UL "-*%A" },
+ { "status_chars", DT_MBCHARTBL, R_BOTH, UL &StChars, UL "-*%A" },
/*
** .pp
** Controls the characters used by the ``%r'' indicator in
** this variable is not set, the environment variable \fC$$$TMPDIR\fP is
** used. If \fC$$$TMPDIR\fP is not set then ``\fC/tmp\fP'' is used.
*/
- { "to_chars", DT_STR, R_BOTH, UL &Tochars, UL " +TCFL" },
+ { "to_chars", DT_MBCHARTBL, R_BOTH, UL &Tochars, UL " +TCFL" },
/*
** .pp
** Controls the character used to indicate mail addressed to you. The
Context->deleted)) ? 1 : 0);
}
- if (!StChars)
+ if (!StChars || !StChars->len)
buf[0] = 0;
- else if (i >= mutt_strlen(StChars))
- buf[0] = StChars[0];
+ else if (i >= StChars->len)
+ snprintf (buf, buflen, "%s", StChars->chars[0]);
else
- buf[0] = StChars[i];
-
- buf[1] = 0;
+ snprintf (buf, buflen, "%s", StChars->chars[i]);
break;
}