move browser in the lib-ui
[apps/madmutt.git] / main.c
diff --git a/main.c b/main.c
index 6247429..72166ea 100644 (file)
--- a/main.c
+++ b/main.c
@@ -86,7 +86,6 @@ usage: madmutt [ -nRyzZ ] [ -e <cmd> ] [ -F <file> ] [ -f <file> ]\n\
     puts(_("  -R            open mailbox in read-only mode"));
     puts(_("  -s <subj>     specify a subject (must be in quotes if it has spaces)"));
     puts(_("  -v            show version and compile-time definitions"));
-    puts(_("  -y            select a mailbox specified in your `mailboxes' list"));
     puts(_("  -z            exit immediately if there are no messages in the mailbox"));
     puts(_("  -Z            open the first folder with new message, exit immediately if none"));
     puts(_("  -h            this help message"));
@@ -171,8 +170,6 @@ static void show_version (void)
 #define M_BUFFY   (1<<1)        /* -Z */
 #define M_NOSYSRC (1<<2)        /* -n */
 #define M_RO      (1<<3)        /* -R */
-#define M_SELECT  (1<<4)        /* -y */
-#define M_NEWS    (1<<5)        /* -g and -G */
 
 __attribute__((format(printf, 1, 0)))
 static void mutt_nocurses_error (const char *fmt, ...)
@@ -219,7 +216,7 @@ int main (int argc, char **argv)
   srand48 (time (NULL));
   umask (077);
 
-  while ((i = getopt(argc, argv, "a:b:F:f:c:e:H:s:i:hnpRTtvyzZ")) >= 0)
+  while ((i = getopt(argc, argv, "a:b:F:f:c:e:H:s:i:hnpRTtvzZ")) >= 0)
     switch (i) {
     case 'a':
       if (strlen(optarg)<=512)
@@ -283,10 +280,6 @@ int main (int argc, char **argv)
       version++;
       break;
 
-    case 'y':                  /* My special hack mode */
-      flags |= M_SELECT;
-      break;
-
     case 'z':
       flags |= M_IGNORE;
       break;
@@ -479,20 +472,6 @@ int main (int argc, char **argv)
       folder[0] = 0;
       buffy_next (folder, sizeof (folder));
     }
-    else if (flags & M_SELECT) {
-      if (!Incoming.len) {
-        mutt_endwin _("No incoming mailboxes defined.");
-
-        exit (1);
-      }
-      folder[0] = 0;
-      mutt_select_file(folder, sizeof(folder), M_SEL_FOLDER | M_SEL_BUFFY,
-                       NULL, NULL);
-      if (!folder[0]) {
-        mutt_endwin (NULL);
-        exit (0);
-      }
-    }
 
     if (!folder[0])
       m_strcpy(folder, sizeof(folder), NONULL(Spoolfile));