diff options
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r-- | libsylph/imap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c index 45c345ac..201a59e0 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -549,8 +549,10 @@ static gint imap_greeting(IMAPSession *session) gchar *greeting; gint ok; - if ((ok = imap_cmd_gen_recv(session, &greeting)) != IMAP_SUCCESS) + if ((ok = imap_cmd_gen_recv(session, &greeting)) != IMAP_SUCCESS) { + log_warning("Cannot get greeting message (%d)\n", ok); return ok; + } if (greeting[0] != '*' || greeting[1] != ' ') ok = IMAP_ERROR; @@ -648,6 +650,7 @@ static Session *imap_session_new(PrefsAccount *account) session_list = g_list_append(session_list, session); if (imap_session_connect(session) != IMAP_SUCCESS) { + log_warning(_("Could not establish IMAP connection.\n")); session_destroy(SESSION(session)); return NULL; } |