]> granicus.if.org Git - neomutt/commitdiff
split mutt.h
authorRichard Russon <rich@flatcap.org>
Sun, 8 Jul 2018 14:18:26 +0000 (15:18 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 16 Jul 2018 22:23:11 +0000 (23:23 +0100)
20 files changed:
browser.h
compose.c
compose.h
curs_lib.h
curs_main.c
hdrline.c
hdrline.h
main.c
mutt.h
mutt_thread.h
pager.c
parse.c
parse.h
pattern.h
postpone.c
protos.h
recvattach.c
recvcmd.c
send.c
send.h

index be1b871563352c45719399ddf34489ee001e7805..d959483892e89a23531eedef78030df298f8927c 100644 (file)
--- a/browser.h
+++ b/browser.h
@@ -36,6 +36,12 @@ extern bool  ShowOnlyUnread;
 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
  */
index 47bf8aac998c0ff5feae78d7c8869d6b34182ad6..1316d057c759a2c85de0bfd3a7869086bb49a5fe 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -33,7 +33,9 @@
 #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"
index 54dc8e02397ef95b836a117132d0c67449a3e0b5..edda97f9eae23594eb6f209cdf00bd37d3406928 100644 (file)
--- a/compose.h
+++ b/compose.h
@@ -32,6 +32,9 @@ extern char *        ComposeFormat;
 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 */
index a16f023270f1668cebed9e078b8adb6f9473b97e..d0121aef67f9899fd87609d82620c04329a03032 100644 (file)
@@ -33,6 +33,11 @@ struct Pager;
 /* 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);
index 6d46a3be1e8497a92deac382a274e15cc8763c4c..d4793e15d82eee748e29c723dc16280b0d3e9729 100644 (file)
@@ -61,6 +61,7 @@
 #include "query.h"
 #include "recvattach.h"
 #include "score.h"
+#include "send.h"
 #include "sort.h"
 #include "status.h"
 #include "terminal.h"
index e41db6e3faf0553a5ee96f94eb14482aaf198a42..c4ff6c0e54fb8b99a36c851249bb9f5bd6540d73 100644 (file)
--- a/hdrline.c
+++ b/hdrline.c
@@ -32,6 +32,7 @@
 #include "mutt/mutt.h"
 #include "email/email.h"
 #include "mutt.h"
+#include "hdrline.h"
 #include "alias.h"
 #include "context.h"
 #include "format_flags.h"
index 2863b99ab42e0fbd67f9dd3e37f672c674cd928f..1023383e93f3e93480fdc5ca0d18062f34fc7aeb 100644 (file)
--- a/hdrline.h
+++ b/hdrline.h
@@ -37,6 +37,16 @@ extern struct MbTable *FlagChars;
 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);
diff --git a/main.c b/main.c
index 20fad6f7355e778cf105a96dac2a073c2c75e39b..e7737ae7713fe2adde065ef4f99817b25c92366a 100644 (file)
--- a/main.c
+++ b/main.c
@@ -61,6 +61,7 @@
 #include "ncrypt/ncrypt.h"
 #include "options.h"
 #include "protos.h"
+#include "send.h"
 #include "terminal.h"
 #include "url.h"
 #include "version.h"
diff --git a/mutt.h b/mutt.h
index e198d9d36761003fe92f92cad9802ebd38195a09..fda61329b530baf3d833cea8365e3626d626e825 100644 (file)
--- a/mutt.h
+++ b/mutt.h
@@ -121,13 +121,6 @@ struct Mapping;
 
 #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
  */
@@ -232,39 +225,12 @@ enum QuadOptionResponse
   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
  *
@@ -278,15 +244,8 @@ struct AttachMatch
   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);
@@ -307,6 +266,4 @@ int mutt_query_variables(struct ListHead *queries);
 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 */
index e3b52fa10c80d457d9f5740de99f314cc12867d1..6aa34312ba08a17e12b6c0cd1bbedf3211fa1847 100644 (file)
@@ -41,6 +41,13 @@ extern bool SortRe;
 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)
diff --git a/pager.c b/pager.c
index 5c88916d1c887e7f62f849aab1241318c0489fc5..79bdf4bb027b361e163d67e1393f1d277c387a98 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -59,6 +59,7 @@
 #include "protos.h"
 #include "recvattach.h"
 #include "recvcmd.h"
+#include "send.h"
 #include "sort.h"
 #include "status.h"
 #include "terminal.h"
diff --git a/parse.c b/parse.c
index 02c7be8844e58f0f0660dcad5a9ac88818bb4f73..280f2c2fd06fe38e23f54ad0a196e82ab9b49b95 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -31,6 +31,7 @@
 #include "mutt/mutt.h"
 #include "email/email.h"
 #include "mutt.h"
+#include "parse.h"
 #include "globals.h"
 #include "mailbox.h"
 #include "muttlib.h"
diff --git a/parse.h b/parse.h
index 5fd0f77badb98b6d1f44af7159d491c7943cf336..44ffcfecaa1aa91e55f10591b840e68ce906d986 100644 (file)
--- a/parse.h
+++ b/parse.h
@@ -34,6 +34,8 @@ struct Header;
 /* 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);
index 68b02c2172c7b99e4b608a2813f2f00c648d15c4..91044ccc9af3afacbfa23b37237dea4e36e70409 100644 (file)
--- a/pattern.h
+++ b/pattern.h
@@ -35,6 +35,9 @@ struct Context;
 /* 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
  */
index eb918081ee201272095cdcf2069411224c08677d..a23ab90b424ccac7ec51b8f0b30b93828e139b89 100644 (file)
@@ -53,6 +53,7 @@
 #include "opcodes.h"
 #include "options.h"
 #include "protos.h"
+#include "send.h"
 #include "sort.h"
 #include "state.h"
 #ifdef USE_IMAP
index 3fb7120de58a699a8614efecf41c2d68f1904bdd..0f87ad43063ea000f44f3498622deedeb3b4093a 100644 (file)
--- a/protos.h
+++ b/protos.h
@@ -45,16 +45,6 @@ struct ParameterList;
 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
  */
index 80c3edff31d93c9960ae5133a957f66a3148a87a..fccbf68c76a80a8664b5fc9ed5fbb3ae87c48dc1 100644 (file)
@@ -54,6 +54,7 @@
 #include "protos.h"
 #include "recvcmd.h"
 #include "rfc1524.h"
+#include "send.h"
 #include "state.h"
 #ifdef ENABLE_NLS
 #include <libintl.h>
index 3ff1a5ad4192236755aad3721459d7cb91dcf5a2..5fefa0ce180cb049a6cd98bd271ce48e6cea23e2 100644 (file)
--- a/recvcmd.c
+++ b/recvcmd.c
@@ -30,6 +30,7 @@
 #include "mutt.h"
 #include "alias.h"
 #include "copy.h"
+#include "curs_lib.h"
 #include "globals.h"
 #include "handler.h"
 #include "hdrline.h"
@@ -39,6 +40,7 @@
 #include "options.h"
 #include "protos.h"
 #include "recvattach.h"
+#include "send.h"
 #include "state.h"
 #ifdef ENABLE_NLS
 #include <libintl.h>
diff --git a/send.c b/send.c
index 9afcac7cb4ccb6855ff0088e1443fa4be275b3cd..b583c47dbd7bc9fe046aba68e83ced2537ca0e66 100644 (file)
--- a/send.c
+++ b/send.c
@@ -34,6 +34,7 @@
 #include "mutt/mutt.h"
 #include "email/email.h"
 #include "mutt.h"
+#include "send.h"
 #include "alias.h"
 #include "compose.h"
 #include "context.h"
diff --git a/send.h b/send.h
index 2b5a933d415cdf1251755730cf0ce311159cac37..436097b4e7d1b5cb129498177dce9f5f41c89bc0 100644 (file)
--- a/send.h
+++ b/send.h
@@ -78,6 +78,21 @@ extern char *        Signature;
 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);