CVS commit by ossi: 

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


  M +4 -4      drv_imap.c   1.29


--- isync/src/drv_imap.c  #1.28:1.29
@@ -1350,10 +1350,10 @@ 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 ([EMAIL PROTECTED]): ", 
srvc->user, srvc->host );
+                       sprintf( prompt, "Password (%s): ", srvc->name );
                        arg = getpass( prompt );
                        if (!arg) {
@@ -1362,5 +1362,5 @@ imap_open_store( store_conf_t *conf,
                        }
                        if (!*arg) {
-                               error( "Skipping account [EMAIL PROTECTED], no 
password\n", srvc->user, srvc->host );
+                               error( "Skipping account %s, no password\n", 
srvc->name );
                                goto bail;
                        }
@@ -1387,5 +1387,5 @@ imap_open_store( store_conf_t *conf,
                {
                        if (CAP(NOLOGIN)) {
-                               error( "Skipping account [EMAIL PROTECTED], 
server forbids LOGIN\n", srvc->user, srvc->host );
+                               error( "Skipping account %s, server forbids 
LOGIN\n", srvc->name );
                                goto bail;
                        }




-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to