account.c
attach.c
- browser.c
commands.c
compose.c
copy.c
STRING(REGEX REPLACE ";" " " MUTTLIBS "${MUTTLIBS}")
ADD_EXECUTABLE(madmutt ${madmuttsrc})
-TARGET_LINK_LIBRARIES(madmutt mime sys mx lua imap ui lib)
+TARGET_LINK_LIBRARIES(madmutt mime sys mx lua ui imap lib)
SET_TARGET_PROPERTIES(madmutt PROPERTIES LINK_FLAGS "${MUTTLIBS}")
# generate_files hack {{{
#include "globals.h"
#include "pattern.h"
#include "sort.h"
-#include "browser.h"
#include "message.h"
#include "imap_private.h"
#include "buffy.h"
#define _IMAP_H 1
#include <lib-mx/mx.h>
+#include <lib-ui/browser.h>
#include "account.h"
-#include "browser.h"
extern mx_t const imap_mx;
ADD_LIBRARY(ui
+ browser.c
color.c
complete.c
curs_lib.c
* please see the file GPL in the top level source directory.
*/
-#include <lib-lib/lib-lib.h>
+#include <lib-ui/lib-ui.h>
#include <dirent.h>
#include <pwd.h>
#include <grp.h>
-#include <lib-ui/lib-ui.h>
-#include <lib-ui/menu.h>
#include <lib-mx/mx.h>
+#include "menu.h"
+#include "browser.h"
#include "mutt.h"
#include "buffy.h"
#include "sort.h"
-#include "browser.h"
#include "attach.h"
#include <imap/imap.h>
unsigned unmarked:1;
};
+/* flags to mutt_select_file() */
+#define M_SEL_BUFFY (1<<0)
+#define M_SEL_MULTI (1<<1)
+#define M_SEL_FOLDER (1<<2)
+void mutt_select_file (char *, ssize_t, int, char ***, int *);
+
#endif /* _BROWSER_H */
#include <lib-sys/mutt_signal.h>
#include "menu.h"
+#include "browser.h"
#include "mutt.h"
#include "pager.h"
#include <lib-ui/lib-ui.h>
#include "menu.h"
+#include "browser.h"
#include "mutt.h"
#include "alias.h"
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"));
#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, ...)
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)
version++;
break;
- case 'y': /* My special hack mode */
- flags |= M_SELECT;
- break;
-
case 'z':
flags |= M_IGNORE;
break;
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));
#define SENDRESEND (1<<6)
#define SENDNEWS (1<<7)
-/* flags to mutt_select_file() */
-#define M_SEL_BUFFY (1<<0)
-#define M_SEL_MULTI (1<<1)
-#define M_SEL_FOLDER (1<<2)
-
/* boolean vars */
enum {
OPTALLOW8BIT,
void mutt_save_path (char *s, ssize_t l, address_t * a);
void mutt_select_fcc (char *, ssize_t, HEADER *);
-void mutt_select_file (char *, ssize_t, int, char ***, int *);
void mutt_message_hook (CONTEXT *, HEADER *, int);
void _mutt_set_flag (CONTEXT *, HEADER *, int, int, int);