extern short SortBrowser;
extern char *VfolderFormat;
+/* flags to mutt_select_file() */
+#define MUTT_SEL_BUFFY (1 << 0)
+#define MUTT_SEL_MULTI (1 << 1)
+#define MUTT_SEL_FOLDER (1 << 2)
+#define MUTT_SEL_VFOLDER (1 << 3)
+
/**
* struct FolderFile - Browser entry representing a folder/dir
*/
#include "email/email.h"
#include "conn/conn.h"
#include "mutt.h"
+#include "compose.h"
#include "alias.h"
+#include "browser.h"
#include "context.h"
#include "curs_lib.h"
#include "curs_main.h"
extern char * Ispell;
extern unsigned char Postpone;
+/* flags for mutt_compose_menu() */
+#define MUTT_COMPOSE_NOFREEHEADER (1 << 0)
+
int mutt_compose_menu(struct Header *msg, char *fcc, size_t fcclen, struct Header *cur, int flags);
#endif /* MUTT_COMPOSE_H */
/* These Config Variables are only used in curs_lib.c */
extern bool MetaKey; /**< interpret ALT-x as ESC-x */
+/* For mutt_simple_format() justifications */
+#define FMT_LEFT -1
+#define FMT_CENTER 0
+#define FMT_RIGHT 1
+
bool message_is_tagged(struct Context *ctx, int index);
bool message_is_visible(struct Context *ctx, int index);
int mutt_addwch(wchar_t wc);
#include "query.h"
#include "recvattach.h"
#include "score.h"
+#include "send.h"
#include "sort.h"
#include "status.h"
#include "terminal.h"
#include "mutt/mutt.h"
#include "email/email.h"
#include "mutt.h"
+#include "hdrline.h"
#include "alias.h"
#include "context.h"
#include "format_flags.h"
extern struct MbTable *FromChars;
extern struct MbTable *ToChars;
+/**
+ * struct HdrFormatInfo - Data passed to index_format_str()
+ */
+struct HdrFormatInfo
+{
+ struct Context *ctx;
+ struct Header *hdr;
+ const char *pager_progress;
+};
+
bool mutt_is_mail_list(struct Address *addr);
bool mutt_is_subscribed_list(struct Address *addr);
void mutt_make_string_flags(char *buf, size_t buflen, const char *s, struct Context *ctx, struct Header *hdr, enum FormatFlag flags);
#include "ncrypt/ncrypt.h"
#include "options.h"
#include "protos.h"
+#include "send.h"
#include "terminal.h"
#include "url.h"
#include "version.h"
#define MUTT_SPECIAL_INDEX MUTT_TREE_MAX
-#define MUTT_THREAD_COLLAPSE (1 << 0)
-#define MUTT_THREAD_UNCOLLAPSE (1 << 1)
-#define MUTT_THREAD_GET_HIDDEN (1 << 2)
-#define MUTT_THREAD_UNREAD (1 << 3)
-#define MUTT_THREAD_NEXT_UNREAD (1 << 4)
-#define MUTT_THREAD_FLAGGED (1 << 5)
-
/**
* enum MuttMisc - Unsorted flags
*/
MUTT_ASKYES
};
-/* flags to ci_send_message() */
-#define SENDREPLY (1 << 0)
-#define SENDGROUPREPLY (1 << 1)
-#define SENDLISTREPLY (1 << 2)
-#define SENDFORWARD (1 << 3)
-#define SENDPOSTPONED (1 << 4)
-#define SENDBATCH (1 << 5)
-#define SENDMAILX (1 << 6)
-#define SENDKEY (1 << 7)
-#define SENDRESEND (1 << 8)
-#define SENDPOSTPONEDFCC (1 << 9) /**< used by mutt_get_postponed() to signal that the x-mutt-fcc header field was present */
-#define SENDNOFREEHEADER (1 << 10) /**< Used by the -E flag */
-#define SENDDRAFTFILE (1 << 11) /**< Used by the -H flag */
-#define SENDNEWS (1 << 12)
-
-/* flags for mutt_compose_menu() */
-#define MUTT_COMPOSE_NOFREEHEADER (1 << 0)
-
-/* flags to mutt_select_file() */
-#define MUTT_SEL_BUFFY (1 << 0)
-#define MUTT_SEL_MULTI (1 << 1)
-#define MUTT_SEL_FOLDER (1 << 2)
-#define MUTT_SEL_VFOLDER (1 << 3)
-
/* flags for parse_spam_list */
#define MUTT_SPAM 1
#define MUTT_NOSPAM 2
int mutt_init(bool skip_sys_rc, struct ListHead *commands);
-/* flag to mutt_pattern_comp() */
-#define MUTT_FULL_MSG (1 << 0) /* enable body and header matching */
-
/**
* struct AttachMatch - An attachment matching a regex
*
regex_t minor_regex;
};
-#define MUTT_PARTS_TOPLEVEL (1 << 0) /* is the top-level part */
-
#define EXECSHELL "/bin/sh"
-/* For mutt_simple_format() justifications */
-#define FMT_LEFT -1
-#define FMT_CENTER 0
-#define FMT_RIGHT 1
-
int safe_asprintf(char **, const char *, ...);
char *mutt_compile_help(char *buf, size_t buflen, int menu, const struct Mapping *items);
bool set_default_value(const char *name, intptr_t value);
void reset_value(const char *name);
-/* All the variables below are backing for config items */
-
#endif /* _MUTT_H */
extern bool StrictThreads;
extern bool ThreadReceived;
+#define MUTT_THREAD_COLLAPSE (1 << 0)
+#define MUTT_THREAD_UNCOLLAPSE (1 << 1)
+#define MUTT_THREAD_GET_HIDDEN (1 << 2)
+#define MUTT_THREAD_UNREAD (1 << 3)
+#define MUTT_THREAD_NEXT_UNREAD (1 << 4)
+#define MUTT_THREAD_FLAGGED (1 << 5)
+
int mutt_aside_thread(struct Header *hdr, short dir, short subthreads);
#define mutt_next_thread(x) mutt_aside_thread(x, 1, 0)
#define mutt_previous_thread(x) mutt_aside_thread(x, 0, 0)
#include "protos.h"
#include "recvattach.h"
#include "recvcmd.h"
+#include "send.h"
#include "sort.h"
#include "status.h"
#include "terminal.h"
#include "mutt/mutt.h"
#include "email/email.h"
#include "mutt.h"
+#include "parse.h"
#include "globals.h"
#include "mailbox.h"
#include "muttlib.h"
/* These Config Variables are only used in parse.c */
extern char *SpamSeparator;
+#define MUTT_PARTS_TOPLEVEL (1 << 0) /* is the top-level part */
+
int mutt_check_encoding(const char *c);
int mutt_check_mime_type(const char *s);
int mutt_count_body_parts(struct Context *ctx, struct Header *hdr);
/* These Config Variables are only used in pattern.c */
extern bool ThoroughSearch;
+/* flag to mutt_pattern_comp() */
+#define MUTT_FULL_MSG (1 << 0) /* enable body and header matching */
+
/**
* struct Pattern - A simple (non-regex) pattern
*/
#include "opcodes.h"
#include "options.h"
#include "protos.h"
+#include "send.h"
#include "sort.h"
#include "state.h"
#ifdef USE_IMAP
struct stat;
struct passwd;
-/**
- * struct HdrFormatInfo - Data passed to index_format_str()
- */
-struct HdrFormatInfo
-{
- struct Context *ctx;
- struct Header *hdr;
- const char *pager_progress;
-};
-
/**
* enum XdgType - XDG variable types
*/
#include "protos.h"
#include "recvcmd.h"
#include "rfc1524.h"
+#include "send.h"
#include "state.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#include "mutt.h"
#include "alias.h"
#include "copy.h"
+#include "curs_lib.h"
#include "globals.h"
#include "handler.h"
#include "hdrline.h"
#include "options.h"
#include "protos.h"
#include "recvattach.h"
+#include "send.h"
#include "state.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#include "mutt/mutt.h"
#include "email/email.h"
#include "mutt.h"
+#include "send.h"
#include "alias.h"
#include "compose.h"
#include "context.h"
extern bool SigOnTop;
extern bool UseFrom;
+/* flags to ci_send_message() */
+#define SENDREPLY (1 << 0)
+#define SENDGROUPREPLY (1 << 1)
+#define SENDLISTREPLY (1 << 2)
+#define SENDFORWARD (1 << 3)
+#define SENDPOSTPONED (1 << 4)
+#define SENDBATCH (1 << 5)
+#define SENDMAILX (1 << 6)
+#define SENDKEY (1 << 7)
+#define SENDRESEND (1 << 8)
+#define SENDPOSTPONEDFCC (1 << 9) /**< used by mutt_get_postponed() to signal that the x-mutt-fcc header field was present */
+#define SENDNOFREEHEADER (1 << 10) /**< Used by the -E flag */
+#define SENDDRAFTFILE (1 << 11) /**< Used by the -H flag */
+#define SENDNEWS (1 << 12)
+
int ci_send_message(int flags, struct Header *msg, char *tempfile, struct Context *ctx, struct Header *cur);
void mutt_add_to_reference_headers(struct Envelope *env, struct Envelope *curenv);
int mutt_compose_to_sender(struct Header *hdr);