diff --git a/imap-send.c b/imap-send.c
index 10cce15a427646a1281afa5197f40def39151154..db6559725e6867131800b6682348ebbf896ddbf5 100644 (file)
--- a/imap-send.c
+++ b/imap-send.c
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 )) {