X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=main.c;h=dc83d3a871909ffff99cc86dcbcc21b51cb83e5b;hp=1458f7228815150f67050537d2a65bde09351bca;hb=23265c6d12ecb744cb38689e9d78a448089ac351;hpb=deba1a6bedde867b8b52d63021fabfe3953b8a10 diff --git a/main.c b/main.c index 1458f72..dc83d3a 100644 --- a/main.c +++ b/main.c @@ -74,6 +74,10 @@ #include #endif +#ifdef USE_SSL +#include +#endif + static const char *ReachingUs = N_("\ To contact the developers, please mail to .\n\ To visit the Mutt-ng homepage go to http://www.muttng.org.\n\ @@ -240,6 +244,10 @@ static void show_version (void) printf (" gnutls %s\n", LIBGNUTLS_VERSION); #endif +#ifdef USE_SSL + printf (" %s\n",OPENSSL_VERSION_TEXT); +#endif + #ifdef CRYPT_BACKEND_GPGME printf (" gpgme %s\n", GPGME_VERSION); #endif @@ -639,10 +647,14 @@ int main (int argc, char **argv) break; case 'd': - debug_setlevel(atoi(optarg)); -#ifndef DEBUG - printf _("DEBUG was not defined during compilation. Ignored.\n"); -#endif + { + char buf[LONG_STRING]; + int level = atoi (optarg); + + snprintf (buf, sizeof (buf), "set debug_level=%d", level); + commands = mutt_add_list (commands, buf); + debug_setlevel (level); + } break; case 't': @@ -707,7 +719,7 @@ int main (int argc, char **argv) { char buf[LONG_STRING]; - snprintf (buf, sizeof (buf), "set news_server=%s", optarg); + snprintf (buf, sizeof (buf), "set nntp_host=%s", optarg); commands = mutt_add_list (commands, buf); }