From 488ebebc3a6dc9a82dda28927a6cddcf232e93a8 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti <gahr@gahr.ch> Date: Mon, 12 Nov 2018 19:29:59 +0000 Subject: [PATCH] Make sure imap_subscribed is always called with an expanded path --- browser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/browser.c b/browser.c index ade00b142..4c3b3f687 100644 --- a/browser.c +++ b/browser.c @@ -2193,10 +2193,10 @@ void mutt_select_file(char *file, size_t filelen, int flags, char ***files, int #endif /* USE_NNTP */ #ifdef USE_IMAP { - if (i == OP_BROWSER_SUBSCRIBE) - imap_subscribe(state.entry[menu->current].name, 1); - else - imap_subscribe(state.entry[menu->current].name, 0); + char tmp[STRING]; + mutt_str_strfcpy(tmp, state.entry[menu->current].name, sizeof(tmp)); + mutt_expand_path(tmp, sizeof(tmp)); + imap_subscribe(tmp, i == OP_BROWSER_SUBSCRIBE); } #endif /* USE_IMAP */ } -- 2.40.0