X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=main.c;h=ce8c1bef9ccfc162829c52093444f167bff06061;hp=b8c2016ac53804b49f19ff74781f0744a362389c;hb=b0bbf6a87d70ffbff4ab725114c919431c764836;hpb=25bf57d598476b329536fa3f748cc0c529fef6bd diff --git a/main.c b/main.c index b8c2016..ce8c1be 100644 --- a/main.c +++ b/main.c @@ -29,6 +29,7 @@ #include "lib/mem.h" #include "lib/intl.h" #include "lib/str.h" +#include "lib/debug.h" #include #include @@ -226,6 +227,11 @@ static void show_version (void) "+USE_INODESORT " #else "-USE_INODESORT " +#endif +#if USE_HCACHE + "+USE_HCACHE " +#else + "-USE_HCACHE " #endif ); puts ( @@ -244,11 +250,6 @@ static void show_version (void) #else "-USE_IMAP " #endif -#ifdef IMAP_EDIT_THREADS - "+IMAP_EDIT_THREADS " -#else - "-IMAP_EDIT_THREADS " -#endif #ifdef USE_GSS "+USE_GSS " #else @@ -264,11 +265,6 @@ static void show_version (void) #else "-USE_GNUTLS " #endif -#ifdef USE_GNUTLS - "+USE_GNUTLS " -#else - "-USE_GNUTLS " -#endif #ifdef USE_SASL "+USE_SASL " #else @@ -421,16 +417,6 @@ static void show_version (void) "+HAVE_GETADDRINFO " #else "-HAVE_GETADDRINFO " -#endif -#if USE_HCACHE - "+USE_HCACHE " -#else - "-USE_HCACHE " -#endif -#if USE_HCACHE - "+USE_HCACHE " -#else - "-USE_HCACHE " #endif ); @@ -453,6 +439,7 @@ static void show_version (void) puts (_(ReachingUs)); + puts (_("Mutt-ng is based on the following patches written for mutt:\n")); mutt_print_patchlist (); exit (0); @@ -588,9 +575,9 @@ int main (int argc, char **argv) break; case 'd': + debug_setlevel(atoi(optarg)); #ifdef DEBUG - debuglevel = atoi (optarg); - printf (_("Debugging at level %d.\n"), debuglevel); + printf (_("Debugging at level %d.\n"), atoi(optarg)); #else printf _("DEBUG was not defined during compilation. Ignored.\n"); #endif @@ -883,13 +870,13 @@ int main (int argc, char **argv) } else { if (flags & M_BUFFY) { - if (!mutt_buffy_check (0)) { + if (!buffy_check (0)) { mutt_endwin _("No mailbox with new mail."); exit (1); } folder[0] = 0; - mutt_buffy (folder, sizeof (folder)); + buffy_next (folder, sizeof (folder)); } else if (flags & M_SELECT) { #ifdef USE_NNTP