diff options
author | Brendan Cully <brendan@kublai.com> | 2000-08-28 09:39:35 +0000 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2000-08-28 09:39:35 +0000 |
commit | 889e715d11e2364d92da3bdfa2e560e342fb4c2b (patch) | |
tree | 07cecf8d7b4d58f54d0f2067f3525b3c1e20dadd /imap | |
parent | fd6c3f53f9c016155a1dcfbc1dd70fd835d336f3 (diff) |
The attached small patch adjusts mutt_pretty_mailbox to handle
URLs.
Diffstat (limited to 'imap')
-rw-r--r-- | imap/auth_sasl.c | 2 | ||||
-rw-r--r-- | imap/command.c | 2 | ||||
-rw-r--r-- | imap/imap_private.h | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/imap/auth_sasl.c b/imap/auth_sasl.c index b628d8fc..d1c5c904 100644 --- a/imap/auth_sasl.c +++ b/imap/auth_sasl.c @@ -101,7 +101,7 @@ imap_auth_res_t imap_auth_sasl (IMAP_DATA* idata) irc = imap_cmd_step (idata); while (irc == IMAP_CMD_CONTINUE); - if (irc == IMAP_CMD_FAIL) + if (irc == IMAP_CMD_FAIL || irc == IMAP_CMD_NO) goto bail; if (irc == IMAP_CMD_RESPOND) diff --git a/imap/command.c b/imap/command.c index babde98e..bc8df994 100644 --- a/imap/command.c +++ b/imap/command.c @@ -146,7 +146,7 @@ int imap_cmd_step (IMAP_DATA* idata) if (!mutt_strncmp (idata->buf, idata->seq, SEQLEN)) { cmd_finish (idata); - return IMAP_CMD_DONE; + return imap_code (idata->buf) ? IMAP_CMD_DONE : IMAP_CMD_NO; } return IMAP_CMD_CONTINUE; diff --git a/imap/imap_private.h b/imap/imap_private.h index 9611890e..0c980925 100644 --- a/imap/imap_private.h +++ b/imap/imap_private.h @@ -35,6 +35,7 @@ /* IMAP command responses */ #define IMAP_CMD_DONE (0) #define IMAP_CMD_FAIL (-1) +#define IMAP_CMD_NO (-2) #define IMAP_CMD_CONTINUE (1) #define IMAP_CMD_RESPOND (2) |