/* util.c */
int imap_expand_path(char *buf, size_t buflen);
int imap_parse_path(const char *path, struct ImapMbox *mx);
-void imap_pretty_mailbox(char *path);
+void imap_pretty_mailbox(char *path, const char *folder);
int imap_wait_keepalive(pid_t pid);
void imap_keepalive(void);
/**
* imap_pretty_mailbox - Prettify an IMAP mailbox name
- * @param path Mailbox name to be tidied
+ * @param path Mailbox name to be tidied
+ * @param folder Path to use for '+' abbreviations
*
* Called by mutt_pretty_mailbox() to make IMAP paths look nice.
*/
-void imap_pretty_mailbox(char *path)
+void imap_pretty_mailbox(char *path, const char *folder)
{
struct ImapMbox home, target;
struct Url url;
tlen = mutt_str_strlen(target.mbox);
/* check whether we can do '=' substitution */
- if (mx_is_imap(Folder) && !imap_parse_path(Folder, &home))
+ if (mx_is_imap(folder) && !imap_parse_path(folder, &home))
{
hlen = mutt_str_strlen(home.mbox);
if (tlen && mutt_account_match(&home.account, &target.account) &&
#ifdef USE_IMAP
if (scheme == U_IMAP || scheme == U_IMAPS)
{
- imap_pretty_mailbox(buf);
+ imap_pretty_mailbox(buf, Folder);
return;
}
#endif