From 4bf58c3e9797ae4d031282442de76e8a255f4809 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 28 May 2006 16:03:52 +0000 Subject: [PATCH] don't crash in imap driver when Host is not specified. --- src/drv_imap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index b39294a..44bc9f5 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -1349,19 +1349,19 @@ imap_open_store( store_conf_t *conf, info ("Logging in...\n"); if (!srvc->user) { - error( "Skipping server %s, no user\n", srvc->host ); + error( "Skipping account %s, no user\n", srvc->name ); goto bail; } if (!srvc->pass) { char prompt[80]; - sprintf( prompt, "Password (%s@%s): ", srvc->user, srvc->host ); + sprintf( prompt, "Password (%s): ", srvc->name ); arg = getpass( prompt ); if (!arg) { perror( "getpass" ); exit( 1 ); } if (!*arg) { - error( "Skipping account %s@%s, no password\n", srvc->user, srvc->host ); + error( "Skipping account %s, no password\n", srvc->name ); goto bail; } /* @@ -1386,7 +1386,7 @@ imap_open_store( store_conf_t *conf, #endif { if (CAP(NOLOGIN)) { - error( "Skipping account %s@%s, server forbids LOGIN\n", srvc->user, srvc->host ); + error( "Skipping account %s, server forbids LOGIN\n", srvc->name ); goto bail; } #if HAVE_LIBSSL