summaryrefslogtreecommitdiff
path: root/mu
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-12-16 11:39:30 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2011-12-16 11:39:30 +0200
commita837453677a2888155aa565666acc956cdd3f896 (patch)
tree7f831519e32b80bda67430b55f779095a30de6ea /mu
parentfa42589cef090379bda4ea4e0838474520f9f4f6 (diff)
downloadmailutils-a837453677a2888155aa565666acc956cdd3f896.tar.gz
mailutils-a837453677a2888155aa565666acc956cdd3f896.tar.bz2
Minor cleanup in imap client.
* include/mailutils/imap.h (mu_imap_session_state): Remove. (mu_imap_state): Rename to mu_imap_session_state. (mu_imap_state_str): Rename to mu_imap_session_state_str. * libproto/imap/create.c (mu_imap_session_state) (mu_imap_iserror,mu_imap_clearerr): Move to state.c * mu/imap.c: Update accordingly.
Diffstat (limited to 'mu')
-rw-r--r--mu/imap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mu/imap.c b/mu/imap.c
index 2bebae45b..92e9c4268 100644
--- a/mu/imap.c
+++ b/mu/imap.c
@@ -70,7 +70,7 @@ current_imap_state ()
if (imap == NULL)
state = MU_IMAP_SESSION_INIT;
else
- mu_imap_state (imap, &state);
+ state = mu_imap_session_state (imap);
return state;
}
@@ -152,7 +152,8 @@ imap_prompt_env ()
mutool_prompt_env[11] = PACKAGE_VERSION;
mutool_prompt_env[12] = "status";
- if (mu_imap_state_str (state, (const char **) &mutool_prompt_env[13]))
+ if (mu_imap_session_state_str (state,
+ (const char **) &mutool_prompt_env[13]))
mutool_prompt_env[12] = NULL;
mutool_prompt_env[14] = NULL;

Return to:

Send suggestions and report system problems to the System administrator.