{
snprintf (buf, buflen, "%s%s%s",
(method & SORT_REVERSE) ? "reverse-" : "",
{
snprintf (buf, buflen, "%s%s%s",
(method & SORT_REVERSE) ? "reverse-" : "",
* %s = current sorting method ($sort)
* %S = current aux sorting method ($sort_aux)
* %t = # of tagged messages [option]
* %s = current sorting method ($sort)
* %S = current aux sorting method ($sort_aux)
* %t = # of tagged messages [option]
-static const char *status_format_str (char *buf, size_t buflen, char op,
+static const char *status_format_str (char *buf, ssize_t buflen, char op,
case 'B':
snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
case 'B':
snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
if (Context && Context->compressinfo && Context->realpath) {
if ((p = strrchr (Context->realpath, '/')))
m_strcpy(tmp, sizeof(tmp), p + 1);
if (Context && Context->compressinfo && Context->realpath) {
if ((p = strrchr (Context->realpath, '/')))
m_strcpy(tmp, sizeof(tmp), p + 1);
if (Context && Context->path) {
if ((p = strrchr (Context->path, '/')))
m_strcpy(tmp, sizeof(tmp), p + 1);
if (Context && Context->path) {
if ((p = strrchr (Context->path, '/')))
m_strcpy(tmp, sizeof(tmp), p + 1);
case 'f':
snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
case 'f':
snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
if (Context && Context->compressinfo && Context->realpath) {
m_strcpy(tmp, sizeof(tmp), Context->realpath);
mutt_pretty_mailbox (tmp);
}
else
if (Context && Context->compressinfo && Context->realpath) {
m_strcpy(tmp, sizeof(tmp), Context->realpath);
mutt_pretty_mailbox (tmp);
}
else
if (Context && Context->path) {
m_strcpy(tmp, sizeof(tmp), Context->path);
mutt_pretty_mailbox (tmp);
if (Context && Context->path) {
m_strcpy(tmp, sizeof(tmp), Context->path);
mutt_pretty_mailbox (tmp);
- i = option (OPTATTACHMSG) ? 3 : ((Context->readonly ||
- Context->dontwrite) ? 2 : (Context->
- changed
- || (
-#ifdef USE_IMAP
- /* deleted doesn't necessarily mean changed in IMAP */
- Context->
- magic
- !=
- M_IMAP
- &&
-#endif
- Context->
- deleted))
- ? 1 : 0);
+ /* XXX: deleted doesn't necessarily mean changed in IMAP */
+ i = option (OPTATTACHMSG) ? 3
+ : ((Context->readonly || Context->dontwrite) ? 2
+ : (Context->changed || (Context-> magic != M_IMAP && Context->
+ deleted)) ? 1 : 0);
-void menu_status_line (char* buf, size_t len, MUTTMENU* menu, const char* p) {
+void menu_status_line (char* buf, ssize_t len, MUTTMENU* menu, const char* p) {
/*
* if we have enough space for buffer, format lines to $COLS-$SidebarWidth
* only to not wrap past end of screen
/*
* if we have enough space for buffer, format lines to $COLS-$SidebarWidth
* only to not wrap past end of screen