X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fcommand.c;h=c33776bc6167eeaa60f25e04c21ab8a7bf64d0a4;hp=bf21c4bf5b10bd1ac7d2682e6fae9cee55fc086b;hb=c9f72ab0cd65f517a2047feb942ad85025c1b7e8;hpb=9f817787be195b0065d0ffb9d8f2d0ef3595538b;ds=sidebyside diff --git a/imap/command.c b/imap/command.c index bf21c4b..c33776b 100644 --- a/imap/command.c +++ b/imap/command.c @@ -16,6 +16,7 @@ #include #include "mutt.h" +#include "buffy.h" #include "message.h" #include "imap_private.h" @@ -485,8 +486,6 @@ static void cmd_parse_fetch (IMAP_DATA * idata, char *s) static void cmd_parse_lsub (IMAP_DATA* idata, char* s) { char buf[STRING]; - char errstr[STRING]; - BUFFER err, token; ciss_url_t url; char *ep; @@ -517,18 +516,12 @@ static void cmd_parse_lsub (IMAP_DATA* idata, char* s) { if (s) { imap_unmunge_mbox_name (s); - m_strcpy(buf, sizeof(buf), "mailboxes \""); - mutt_account_tourl (&idata->conn->account, &url); + mutt_account_tourl(&idata->conn->account, &url); url.path = s; if (!m_strcmp(url.user, ImapUser)) url.user = NULL; - url_ciss_tostring (&url, buf + 11, sizeof (buf) - 10, 0); - m_strcat(buf, sizeof(buf), "\""); - p_clear(&token, 1); - err.data = errstr; - err.dsize = sizeof (errstr); - mutt_parse_rc_line (buf, &token, &err); - p_delete(&token.data); + url_ciss_tostring(&url, buf, sizeof(buf), 0); + buffy_do_mailboxes(buf, 1); } }