Code

Merge branch 'gs/pretty-hexval'
[git.git] / imap-send.c
index 10cce15a427646a1281afa5197f40def39151154..04afbc492485d95a85a7f0f57bbb48def6337a99 100644 (file)
@@ -1302,6 +1302,10 @@ main(int argc, char **argv)
                fprintf( stderr, "no imap store specified\n" );
                return 1;
        }
+       if (!server.host) {
+               fprintf( stderr, "no imap host specified\n" );
+               return 1;
+       }
 
        /* read the messages */
        if (!read_message( stdin, &all_msgs )) {