summaryrefslogtreecommitdiffstats
path: root/browser.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-08-23 14:21:33 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-08-23 14:21:33 +0000
commit0ad2b164b74ea0ac76e81a17ee5ac7f5f5c4b50e (patch)
treeb132ad976295398a83614f67f40b7f4f96aa9a40 /browser.c
parent274bd0216e1c7420f34ad276e55239e80053c073 (diff)
Inclue GSS authentization for IMAP.
Diffstat (limited to 'browser.c')
-rw-r--r--browser.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/browser.c b/browser.c
index 1eabf532..d170770d 100644
--- a/browser.c
+++ b/browser.c
@@ -168,6 +168,11 @@ folder_format_str (char *dest, size_t destlen, char op, const char *src,
break;
case 'f':
+#ifdef USE_IMAP
+ if (mx_is_imap (folder->ff->name))
+ strfcpy (fn, folder->ff->desc, sizeof (fn));
+ else
+#endif
strfcpy (fn, folder->ff->name, sizeof(fn));
if (folder->ff->st != NULL)
{
@@ -199,10 +204,10 @@ folder_format_str (char *dest, size_t destlen, char op, const char *src,
else
{
#ifdef USE_IMAP
- if (strchr(folder->ff->name, '{'))
+ if (mx_is_imap (folder->ff->name))
{
- snprintf (tmp, sizeof (tmp), "%%%ss", fmt);
- snprintf (dest, destlen, tmp, "IMAP");
+ snprintf (tmp, sizeof (tmp), "%%%ss", fmt);
+ snprintf (dest, destlen, tmp, "IMAP");
}
#endif
}