diff -c/--cc: do not include uninteresting deletion before leading context
[gitweb.git] / imap-send.c
index 10cce15a427646a1281afa5197f40def39151154..db6559725e6867131800b6682348ebbf896ddbf5 100644 (file)
@@ -1302,6 +1302,13 @@ main(int argc, char **argv)
                fprintf( stderr, "no imap store specified\n" );
                return 1;
        }
+       if (!server.host) {
+               if (!server.tunnel) {
+                       fprintf( stderr, "no imap host specified\n" );
+                       return 1;
+               }
+               server.host = "tunnel";
+       }
 
        /* read the messages */
        if (!read_message( stdin, &all_msgs )) {