isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 4bf58c3e9797ae4d031282442de76e8a255f4809
parent c8275e2aa72a8a4619f573e5cf71ef5877a12051
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sun, 28 May 2006 16:03:52 +0000

don't crash in imap driver when Host is not specified.

Diffstat:
Msrc/drv_imap.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 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