diff options
Diffstat (limited to 'imap/browse.c')
-rw-r--r-- | imap/browse.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/imap/browse.c b/imap/browse.c index cf7c4bc5..7a31f63d 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -1,6 +1,6 @@ /* * Copyright (C) 1996-9 Brandon Long <blong@fiction.net> - * Copyright (C) 1999-2000 Brendan Cully <brendan@kublai.com> + * Copyright (C) 1999-2001 Brendan Cully <brendan@kublai.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -124,7 +124,7 @@ int imap_browse (char* path, struct browser_state* state) } } } - while (mutt_strncmp (idata->buf, idata->seq, SEQLEN)); + while (mutt_strncmp (idata->cmd.buf, idata->cmd.seq, SEQLEN)); } /* if we're descending a folder, mark it as current in browser_state */ @@ -222,7 +222,6 @@ int imap_browse (char* path, struct browser_state* state) } } - mutt_clear_error (); FREE (&mx.mbox); return 0; @@ -316,7 +315,7 @@ static int browse_add_list_result (IMAP_DATA* idata, const char* cmd, isparent); } } - while ((mutt_strncmp (idata->buf, idata->seq, SEQLEN) != 0)); + while ((mutt_strncmp (idata->cmd.buf, idata->cmd.seq, SEQLEN) != 0)); FREE (&mx.mbox); return 0; @@ -412,7 +411,7 @@ static int browse_get_namespace (IMAP_DATA* idata, char* nsbuf, int nsblen, if ((rc = imap_cmd_step (idata)) != IMAP_CMD_CONTINUE) break; - s = imap_next_word (idata->buf); + s = imap_next_word (idata->cmd.buf); if (mutt_strncasecmp ("NAMESPACE", s, 9) == 0) { /* There are three sections to the response, User, Other, Shared, @@ -485,7 +484,7 @@ static int browse_get_namespace (IMAP_DATA* idata, char* nsbuf, int nsblen, } while (rc == IMAP_CMD_CONTINUE); - if (rc != IMAP_CMD_DONE) + if (rc != IMAP_CMD_OK) return -1; return 0; @@ -524,7 +523,7 @@ static int browse_verify_namespace (IMAP_DATA* idata, return -1; nsi->listable |= (name != NULL); } - while ((mutt_strncmp (idata->buf, idata->seq, SEQLEN) != 0)); + while ((mutt_strncmp (idata->cmd.buf, idata->cmd.seq, SEQLEN) != 0)); } return 0; |