]> granicus.if.org Git - neomutt/commitdiff
split protos.h 2
authorRichard Russon <rich@flatcap.org>
Sun, 8 Jul 2018 13:57:34 +0000 (14:57 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 16 Jul 2018 22:23:11 +0000 (23:23 +0100)
86 files changed:
addrbook.c
addrbook.h
alias.c
browser.c
buffy.c
color.c
color.h
commands.c
commands.h
compose.c
compose.h
compress.c
conn/conn_globals.c
conn/ssl.c
conn/ssl_gnutls.c
copy.c
curs_lib.c
curs_lib.h
curs_main.c
curs_main.h
edit.c
edit.h
enter.c
flags.c
format_flags.h
handler.c
hdrline.c
hdrline.h
help.c
history.c
hook.c
hook.h
imap/command.c
imap/util.c
init.c
keymap.c
maildir/mh.c
main.c
main.h
menu.c
menu.h
mutt.h
mutt_attach.c
mutt_curses.h
mutt_header.c
mutt_logging.c
mutt_menu.h [deleted file]
mutt_window.c
muttlib.c
muttlib.h
mx.c
ncrypt/crypt.c
ncrypt/crypt_gpgme.c
ncrypt/pgp.c
ncrypt/pgpinvoke.c
ncrypt/pgpkey.c
ncrypt/smime.c
nntp/newsrc.c
nntp/nntp.c
notmuch/mutt_notmuch.c
pager.c
pager.h
parse.c
pattern.c
pop/pop.c
pop/pop_auth.c
postpone.c
progress.c
protos.h
query.c
query.h
recvattach.c
recvcmd.c
remailer.c
rfc3676.c
score.c
score.h
send.c
send.h
sendlib.c
sidebar.c
smtp.h
sort.c
sort.h
status.c
status.h

index ea256b1eca6917b097c2aef06ca62cedab5b9d5d..a76825b7868a7b73d8793deb58b6bd2156bb5601 100644 (file)
@@ -37,8 +37,9 @@
 #include "format_flags.h"
 #include "globals.h"
 #include "keymap.h"
-#include "mutt_menu.h"
+#include "menu.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "opcodes.h"
 #include "options.h"
 #include "protos.h"
index 2ed67d09f12167f1977ce08a91d3a1bca75f9986..b58e24d4f02ec8530a434c1cec28a22593d8aa6f 100644 (file)
 #ifndef MUTT_ADDRBOOK_H
 #define MUTT_ADDRBOOK_H
 
+#include <stdio.h>
+
+struct AliasList;
+
 /* These Config Variables are only used in addrbook.c */
 extern char *AliasFormat;
 extern short SortAlias;
 
+void mutt_alias_menu(char *buf, size_t buflen, struct AliasList *aliases);
+
 #endif /* MUTT_ADDRBOOK_H */
+
diff --git a/alias.c b/alias.c
index e75a46b3599a5af705701704daef944736096a9c..43a47719744cde9720ff9d945f5d72a9caa7303d 100644 (file)
--- a/alias.c
+++ b/alias.c
@@ -35,6 +35,7 @@
 #include "mutt.h"
 #include "alias.h"
 #include "globals.h"
+#include "hdrline.h"
 #include "mutt_curses.h"
 #include "options.h"
 #include "protos.h"
index 7c336fc6d08a052da868654c9b4ae2338b89577b..46aa01324eb004729a05f54c6be0c1817ffd1834 100644 (file)
--- a/browser.c
+++ b/browser.c
 #include "browser.h"
 #include "buffy.h"
 #include "context.h"
+#include "curs_lib.h"
 #include "format_flags.h"
 #include "globals.h"
 #include "keymap.h"
 #include "mailbox.h"
 #include "maildir/maildir.h"
+#include "menu.h"
 #include "mutt_attach.h"
 #include "mutt_curses.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
 #include "muttlib.h"
 #include "mx.h"
 #endif
 
 /* These Config Variables are only used in browser.c */
-bool  BrowserAbbreviateMailboxes;
+bool BrowserAbbreviateMailboxes;
 char *FolderFormat;
 char *GroupIndexFormat;
 char *NewsgroupsCharset;
-bool  ShowOnlyUnread;
+bool ShowOnlyUnread;
 short SortBrowser;
 char *VfolderFormat;
 
diff --git a/buffy.c b/buffy.c
index 4e062bba1f3189ee7ff3cac543a43542f30f46f8..a4333f564f81b8c4e3d70e1d5ebc1b961463ca03 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -36,7 +36,7 @@
 #include "globals.h"
 #include "mailbox.h"
 #include "maildir/maildir.h"
-#include "mutt_menu.h"
+#include "menu.h"
 #include "mutt_window.h"
 #include "mx.h"
 #include "options.h"
@@ -53,9 +53,9 @@
 
 /* These Config Variables are only used in buffy.c */
 short MailCheck;
-bool  MailCheckStats;
+bool MailCheckStats;
 short MailCheckStatsInterval;
-bool  MaildirCheckCur;
+bool MaildirCheckCur;
 
 static time_t BuffyTime = 0; /**< last time we started checking for mail */
 static time_t BuffyStatsTime = 0; /**< last time we check performed mail_check_stats */
diff --git a/color.c b/color.c
index 12b56058971e81e0d0069c9516bddb9899ca07bc..cba681a64eec45a5976530c1970e0fdfc86cc876 100644 (file)
--- a/color.c
+++ b/color.c
@@ -32,8 +32,8 @@
 #include "context.h"
 #include "globals.h"
 #include "keymap.h"
+#include "menu.h"
 #include "mutt_curses.h"
-#include "mutt_menu.h"
 #include "options.h"
 #include "pattern.h"
 #include "protos.h"
diff --git a/color.h b/color.h
index bfc96a5e747fb2cf976fd8483aa8314683c736fa..a42df44a22e7c5dee3bd80e9a5450dff4d3985c7 100644 (file)
--- a/color.h
+++ b/color.h
@@ -25,6 +25,7 @@
 
 struct Buffer;
 
+void ci_start_color(void);
 int  mutt_alloc_color(int fg, int bg);
 int  mutt_combine_color(int fg_attr, int bg_attr);
 void mutt_free_color(int fg, int bg);
@@ -35,3 +36,4 @@ int  mutt_parse_uncolor(struct Buffer *buf, struct Buffer *s, unsigned long data
 int  mutt_parse_unmono(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
 
 #endif /* MUTT_COLOR_H */
+
index 2e1dc52e0ce49812b4a5aca68739df7f7b2f8a0f..56083989025df51504dbaf32b08a47c46f49fd53 100644 (file)
 #include "buffy.h"
 #include "context.h"
 #include "copy.h"
+#include "curs_lib.h"
 #include "filter.h"
 #include "format_flags.h"
 #include "globals.h"
+#include "hdrline.h"
 #include "keymap.h"
 #include "mailbox.h"
+#include "menu.h"
 #include "mutt_curses.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
-#include "recvattach.h"
 #include "mx.h"
 #include "ncrypt/ncrypt.h"
 #include "options.h"
 #include "pager.h"
 #include "protos.h"
+#include "recvattach.h"
 #include "sort.h"
 #ifdef USE_IMAP
 #include "imap/imap.h"
 
 /* These Config Variables are only used in commands.c */
 unsigned char CryptVerifySig; /* verify PGP signatures */
-char *        DisplayFilter;
-bool          PipeDecode;
-char *        PipeSep;
-bool          PipeSplit;
-bool          PrintDecode;
-bool          PrintSplit;
-bool          PromptAfter;
+char *DisplayFilter;
+bool PipeDecode;
+char *PipeSep;
+bool PipeSplit;
+bool PrintDecode;
+bool PrintSplit;
+bool PromptAfter;
 
 static const char *ExtPagerProgress = "all";
 
index 4dfdecd219cf5cc3fdd7498cb4a5f40065ed6918..ec60d6381bb7f6b3631834f8a8dc96968cd76671 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef MUTT_COMMANDS_H
 #define MUTT_COMMANDS_H
 
+#include <stdbool.h>
 #include <stdio.h>
 
 struct Body;
@@ -49,8 +50,9 @@ int  mutt_edit_content_type(struct Header *h, struct Body *b, FILE *fp);
 void mutt_enter_command(void);
 void mutt_pipe_message(struct Header *h);
 void mutt_print_message(struct Header *h);
-int mutt_save_message_ctx(struct Header *h, int delete, int decode, int decrypt, struct Context *ctx);
+int  mutt_save_message_ctx(struct Header *h, int delete, int decode, int decrypt, struct Context *ctx);
 int  mutt_save_message(struct Header *h, int delete, int decode, int decrypt);
+int  mutt_select_sort(int reverse);
 void mutt_shell_escape(void);
 void mutt_version(void);
 
index f81e18cb9ecf400b2d010a55de6416562d26481a..47bf8aac998c0ff5feae78d7c8869d6b34182ad6 100644 (file)
--- a/compose.c
+++ b/compose.c
 #include "mutt.h"
 #include "alias.h"
 #include "context.h"
+#include "curs_lib.h"
+#include "curs_main.h"
+#include "edit.h"
 #include "format_flags.h"
 #include "globals.h"
 #include "keymap.h"
 #include "mailbox.h"
+#include "menu.h"
 #include "mutt_attach.h"
 #include "mutt_curses.h"
 #include "mutt_header.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "mx.h"
 #include "ncrypt/ncrypt.h"
 #include "opcodes.h"
@@ -63,8 +67,8 @@
 #endif
 
 /* These Config Variables are only used in compose.c */
-char *        ComposeFormat;
-char *        Ispell;
+char *ComposeFormat;
+char *Ispell;
 unsigned char Postpone;
 
 static const char *There_are_no_attachments = N_("There are no attachments.");
index 7642b8ec2b9b55b87a2346ae0929a4923b75971e..54dc8e02397ef95b836a117132d0c67449a3e0b5 100644 (file)
--- a/compose.h
+++ b/compose.h
 #ifndef MUTT_COMPOSE_H
 #define MUTT_COMPOSE_H
 
+#include <stdio.h>
+
+struct Header;
+
 /* These Config Variables are only used in compose.c */
 extern char *        ComposeFormat;
 extern char *        Ispell;
 extern unsigned char Postpone;
 
+int mutt_compose_menu(struct Header *msg, char *fcc, size_t fcclen, struct Header *cur, int flags);
+
 #endif /* MUTT_COMPOSE_H */
+
index a94ae753d2354046aa8b9a174552fe27d8c6244d..8fac96c7a191fec120309d052ff456bd93104e58 100644 (file)
@@ -42,6 +42,7 @@
 #include "globals.h"
 #include "mailbox.h"
 #include "mutt_curses.h"
+#include "muttlib.h"
 #include "mx.h"
 #include "options.h"
 #include "protos.h"
index 892e0a12fad44a9c51036cc07946af53d79b22ff..1a0a52bdeefee2bd164204b98939d73cdaec7669 100644 (file)
@@ -58,4 +58,3 @@ extern bool SslUseTlsv11;
 extern bool SslUseTlsv12;
 extern bool SslVerifyDates;
 extern bool SslVerifyHost;
-
index e1915d7997ca5e513289079b1837478572e61724..de433498562a46511cc8fb0bc5d4770cdaf10956 100644 (file)
@@ -58,9 +58,9 @@
 #include "connection.h"
 #include "globals.h"
 #include "keymap.h"
+#include "menu.h"
 #include "mutt_account.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "opcodes.h"
 #include "options.h"
 #include "protos.h"
index e50fc727b291bfcc963e7b04ab567f78dfc72993..20b905b6e4fc1fb21212acac2213164bc37d786a 100644 (file)
@@ -42,8 +42,8 @@
 #include "conn_globals.h"
 #include "connection.h"
 #include "keymap.h"
+#include "menu.h"
 #include "mutt_account.h"
-#include "mutt_menu.h"
 #include "opcodes.h"
 #include "options.h"
 #include "protos.h"
diff --git a/copy.c b/copy.c
index c786a953bc21708b466934b5f24ca09f47786c27..85dce0259d9e55e3464000fbe37cdc447c113374 100644 (file)
--- a/copy.c
+++ b/copy.c
 #include "context.h"
 #include "globals.h"
 #include "handler.h"
+#include "hdrline.h"
 #include "mailbox.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "mx.h"
 #include "ncrypt/ncrypt.h"
 #include "options.h"
index 13f29229084b69e060e192b743e91e17020b1782..89a40564da4a1035d452195cc844e284940220fa 100644 (file)
 #include "mutt/mutt.h"
 #include "email/email.h"
 #include "mutt.h"
+#include "curs_lib.h"
 #include "browser.h"
 #include "context.h"
+#include "curs_lib.h"
 #include "enter_state.h"
 #include "globals.h"
+#include "menu.h"
 #include "mutt_curses.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
 #include "opcodes.h"
 #include "options.h"
index 2e9e187fd39a85820515d6c08a6b0dffd05034ae..a16f023270f1668cebed9e078b8adb6f9473b97e 100644 (file)
 #include <wchar.h>
 
 struct Context;
+struct Pager;
 
 /* These Config Variables are only used in curs_lib.c */
 extern bool MetaKey; /**< interpret ALT-x as ESC-x */
 
-bool   message_is_tagged(struct Context *ctx, int index);
-bool   message_is_visible(struct Context *ctx, int index);
-int    mutt_addwch(wchar_t wc);
-int    mutt_any_key_to_continue(const char *s);
-void   mutt_edit_file(const char *editor, const char *data);
-int    mutt_enter_fname_full(const char *prompt, char *buf, size_t blen, int buffy, int multiple, char ***files, int *numfiles, int flags);
-void   mutt_format_s(char *buf, size_t buflen, const char *prec, const char *s);
-void   mutt_format_s_tree(char *buf, size_t buflen, const char *prec, const char *s);
-int    mutt_get_field_full(const char *field, char *buf, size_t buflen, int complete, int multiple, char ***files, int *numfiles);
-int    mutt_get_field_unbuffered(char *msg, char *buf, size_t buflen, int flags);
-int    mutt_multi_choice(char *prompt, char *letters);
-void   mutt_paddstr(int n, const char *s);
-void   mutt_perror_debug(const char *s);
-void   mutt_query_exit(void);
-void   mutt_show_error(void);
-void   mutt_simple_format(char *buf, size_t buflen, int min_width, int max_width, int justify, char pad_char, const char *s, size_t n, int arboreal);
-int    mutt_strwidth(const char *s);
-size_t mutt_wstr_trunc(const char *src, size_t maxlen, size_t maxwid, size_t *width);
-int    mutt_yesorno(const char *msg, int def);
+bool         message_is_tagged(struct Context *ctx, int index);
+bool         message_is_visible(struct Context *ctx, int index);
+int          mutt_addwch(wchar_t wc);
+int          mutt_any_key_to_continue(const char *s);
+int          mutt_do_pager(const char *banner, const char *tempfile, int do_color, struct Pager *info);
+void         mutt_edit_file(const char *editor, const char *data);
+void         mutt_endwin(void);
+int          mutt_enter_fname_full(const char *prompt, char *buf, size_t blen, int buffy, int multiple, char ***files, int *numfiles, int flags);
+void         mutt_flushinp(void);
+void         mutt_flush_macro_to_endcond(void);
+void         mutt_flush_unget_to_endcond(void);
+void         mutt_format_s(char *buf, size_t buflen, const char *prec, const char *s);
+void         mutt_format_s_tree(char *buf, size_t buflen, const char *prec, const char *s);
+struct Event mutt_getch(void);
+int          mutt_get_field_full(const char *field, char *buf, size_t buflen, int complete, int multiple, char ***files, int *numfiles);
+int          mutt_get_field_unbuffered(char *msg, char *buf, size_t buflen, int flags);
+int          mutt_multi_choice(char *prompt, char *letters);
+void         mutt_need_hard_redraw(void);
+void         mutt_paddstr(int n, const char *s);
+void         mutt_perror_debug(const char *s);
+void         mutt_push_macro_event(int ch, int op);
+void         mutt_query_exit(void);
+void         mutt_refresh(void);
+void         mutt_show_error(void);
+void         mutt_simple_format(char *buf, size_t buflen, int min_width, int max_width, int justify, char pad_char, const char *s, size_t n, int arboreal);
+int          mutt_strwidth(const char *s);
+void         mutt_unget_event(int ch, int op);
+void         mutt_unget_string(char *s);
+size_t       mutt_wstr_trunc(const char *src, size_t maxlen, size_t maxwid, size_t *width);
+int          mutt_yesorno(const char *msg, int def);
 
 #endif /* MUTT_CURS_LIB_H */
index 3531b16e8668080e9cd85860bec4e443d49385a9..6d46a3be1e8497a92deac382a274e15cc8763c4c 100644 (file)
 #include "email/email.h"
 #include "conn/conn.h"
 #include "mutt.h"
+#include "curs_main.h"
 #include "alias.h"
 #include "browser.h"
 #include "buffy.h"
+#include "commands.h"
 #include "context.h"
+#include "curs_lib.h"
 #include "format_flags.h"
 #include "globals.h"
+#include "hdrline.h"
 #include "keymap.h"
 #include "mailbox.h"
+#include "menu.h"
 #include "mutt_curses.h"
 #include "mutt_header.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_thread.h"
 #include "mutt_window.h"
 #include "mx.h"
 #include "pattern.h"
 #include "progress.h"
 #include "protos.h"
+#include "query.h"
 #include "recvattach.h"
+#include "score.h"
 #include "sort.h"
+#include "status.h"
 #include "terminal.h"
 #ifdef USE_SIDEBAR
 #include "sidebar.h"
 #endif
 
 /* These Config Variables are only used in curs_main.c */
-bool  ChangeFolderNext;
-bool  CollapseAll;
-bool  CollapseFlagged;
-bool  CollapseUnread;
+bool ChangeFolderNext;
+bool CollapseAll;
+bool CollapseFlagged;
+bool CollapseUnread;
 char *MarkMacroPrefix;
-bool  PgpAutoDecode;
-bool  UncollapseJump;
-bool  UncollapseNew;
+bool PgpAutoDecode;
+bool UncollapseJump;
+bool UncollapseNew;
 
 static const char *No_mailbox_is_open = N_("No mailbox is open.");
 static const char *There_are_no_messages = N_("There are no messages.");
index dcafa39c530cc2bea318c7fbdda237f69334b9e8..839ccb630cf4bdae3598dccdf6c1a1c2c310e834 100644 (file)
 #ifndef MUTT_CURS_MAIN_H
 #define MUTT_CURS_MAIN_H
 
+#include <stdbool.h>
+#include <stdio.h>
+
+struct Context;
+struct Header;
+struct Menu;
+
 /* These Config Variables are only used in curs_main.c */
 extern bool  ChangeFolderNext;
 extern bool  CollapseAll;
@@ -33,4 +40,11 @@ extern bool  PgpAutoDecode;
 extern bool  UncollapseJump;
 extern bool  UncollapseNew;
 
+int  index_color(int index_no);
+void index_make_entry(char *buf, size_t buflen, struct Menu *menu, int num);
+void mutt_draw_statusline(int cols, const char *buf, size_t buflen);
+int  mutt_index_menu(void);
+void mutt_set_header_color(struct Context *ctx, struct Header *curhdr);
+void update_index(struct Menu *menu, struct Context *ctx, int check, int oldcount, int index_hint);
+
 #endif /* MUTT_CURS_MAIN_H */
diff --git a/edit.c b/edit.c
index 9f03adb00f18be586d227f55398cfbe57012efee..0a9c5d147823b40df15c636e7b0640c8f667e6d9 100644 (file)
--- a/edit.c
+++ b/edit.c
@@ -35,6 +35,7 @@
 #include "alias.h"
 #include "context.h"
 #include "globals.h"
+#include "hdrline.h"
 #include "mutt_curses.h"
 #include "mutt_header.h"
 #include "mutt_window.h"
diff --git a/edit.h b/edit.h
index dc61ca75e0aef6d45e58f0a463f37de735a56f6c..934386095ad99ccfeaee2cf32d32c87372843ef3 100644 (file)
--- a/edit.h
+++ b/edit.h
 #ifndef MUTT_EDIT_H
 #define MUTT_EDIT_H
 
+struct Header;
+
 /* These Config Variables are only used in edit.c */
 extern char *Escape;
 
+int mutt_builtin_editor(const char *path, struct Header *msg, struct Header *cur);
+
 #endif /* MUTT_EDIT_H */
diff --git a/enter.c b/enter.c
index 37ddc2f82961463dc5dc3e2061c21f450c279daf..b13acb8e3b968a64bf5e5a12af7f3255711be734 100644 (file)
--- a/enter.c
+++ b/enter.c
@@ -38,6 +38,7 @@
 #include "alias.h"
 #include "browser.h"
 #include "buffy.h"
+#include "curs_lib.h"
 #include "enter_state.h"
 #include "globals.h"
 #include "history.h"
@@ -46,6 +47,7 @@
 #include "mutt_window.h"
 #include "opcodes.h"
 #include "protos.h"
+#include "query.h"
 
 /**
  * enum RedrawFlags - redraw flags for mutt_enter_string_full()
diff --git a/flags.c b/flags.c
index ba8d6a38e2b46a2a3749411f8034fbdd343bb085..1f4419c2fcf46bdf9068672381951d8f74899493 100644 (file)
--- a/flags.c
+++ b/flags.c
 #include "email/email.h"
 #include "mutt.h"
 #include "context.h"
+#include "curs_lib.h"
+#include "curs_main.h"
 #include "globals.h"
+#include "menu.h"
 #include "mutt_curses.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
 #include "mx.h"
 #include "options.h"
index 1adb636c338ed2ee7169e8c9ec81bccc6a568861..e19e62d056895a7701376cb570d602b1f48c946d 100644 (file)
@@ -45,8 +45,4 @@ typedef const char *format_t(char *buf, size_t buflen, size_t col, int cols,
                              const char *if_str, const char *else_str,
                              unsigned long data, enum FormatFlag flags);
 
-void mutt_expando_format(char *buf, size_t buflen, size_t col, int cols,
-                         const char *src, format_t *callback,
-                         unsigned long data, enum FormatFlag flags);
-
 #endif /* _MUTT_FORMAT_FLAGS_H */
index e945f44746cdb74239b27aa8b0d26b6b869560ac..7fa4faa131f81d71df35bcd5d5d010dfbf015375 100644 (file)
--- a/handler.c
+++ b/handler.c
 #endif
 
 /* These Config Variables are only used in handler.c */
-bool  HonorDisposition;
-bool  ImplicitAutoview;
-bool  IncludeOnlyfirst;
+bool HonorDisposition;
+bool ImplicitAutoview;
+bool IncludeOnlyfirst;
 char *PreferredLanguages;
-bool  ReflowText;
+bool ReflowText;
 char *ShowMultipartAlternative;
 
 #define BUFI_SIZE 1000
index c70af2a438b5a402e32b1375f5b819018d9463cc..e41db6e3faf0553a5ee96f94eb14482aaf198a42 100644 (file)
--- a/hdrline.c
+++ b/hdrline.c
@@ -40,6 +40,7 @@
 #include "mutt_curses.h"
 #include "mutt_thread.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "ncrypt/ncrypt.h"
 #include "options.h"
 #include "protos.h"
index f8cb07be7d8d56b482586c998fb6aed20e9cb97d..2863b99ab42e0fbd67f9dd3e37f672c674cd928f 100644 (file)
--- a/hdrline.h
+++ b/hdrline.h
 #ifndef MUTT_HDRLINE_H
 #define MUTT_HDRLINE_H
 
+#include <stdbool.h>
+#include <stdio.h>
+#include "format_flags.h"
+
+struct Address;
+struct Context;
+struct Header;
+struct HdrFormatInfo;
+
 /* These Config Variables are only used in hdrline.c */
 extern struct MbTable *FlagChars;
 extern struct MbTable *FromChars;
 extern struct MbTable *ToChars;
 
+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);
+void mutt_make_string_info(char *buf, size_t buflen, int cols, const char *s, struct HdrFormatInfo *hfi, enum FormatFlag flags);
+
+#define mutt_make_string(A, B, C, D, E) mutt_make_string_flags(A, B, C, D, E, 0)
+
 #endif /* MUTT_HDRLINE_H */
diff --git a/help.c b/help.c
index 9c42ed4029c03f0b045374212cb0263cc61987e5..743df7d5688a69d872ae0bd43c258657eb3e159f 100644 (file)
--- a/help.c
+++ b/help.c
@@ -28,6 +28,7 @@
 #include <string.h>
 #include <wchar.h>
 #include "mutt/mutt.h"
+#include "curs_lib.h"
 #include "globals.h"
 #include "keymap.h"
 #include "mutt_window.h"
index 61be6daed392775b20b800aa1950f7da63125aaa..6f07cac4dfbc6d553acdc102559e798f74657167 100644 (file)
--- a/history.c
+++ b/history.c
 #include "history.h"
 #include "format_flags.h"
 #include "keymap.h"
-#include "mutt_menu.h"
+#include "menu.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "opcodes.h"
 #include "protos.h"
 
 /* These Config Variables are only used in history.c */
 short History;
 char *HistoryFile;
-bool  HistoryRemoveDups;
+bool HistoryRemoveDups;
 short SaveHistory;
 
 #define HC_FIRST HC_CMD
diff --git a/hook.c b/hook.c
index e79017054b33f5ed4cf2ba8e5af799d596a465be..2286358e152cc61d61d6ea8b5f5cb1b15927b159 100644 (file)
--- a/hook.c
+++ b/hook.c
@@ -38,6 +38,7 @@
 #include "mutt.h"
 #include "alias.h"
 #include "globals.h"
+#include "hdrline.h"
 #include "mailbox.h"
 #include "ncrypt/ncrypt.h"
 #include "options.h"
@@ -51,8 +52,8 @@ struct Context;
 
 /* These Config Variables are only used in hook.c */
 char *DefaultHook;
-bool  ForceName;
-bool  SaveName;
+bool ForceName;
+bool SaveName;
 
 /**
  * struct Hook - A list of user hooks
diff --git a/hook.h b/hook.h
index cd4f870faa956f81ea9a7200e942b4bc6f42af6d..97845db9531ee71e011bd79ddf0eae429e124d73 100644 (file)
--- a/hook.h
+++ b/hook.h
@@ -23,6 +23,7 @@
 #ifndef MUTT_HOOK_H
 #define MUTT_HOOK_H
 
+#include <stdbool.h>
 #include <stdio.h>
 
 struct Address;
index fd8ab1a769e407df03777ec3001956b926a62b19..0cf105ad7d89e9d29b143013006227a2b46969c0 100644 (file)
 #include "globals.h"
 #include "imap/imap.h"
 #include "mailbox.h"
+#include "menu.h"
 #include "message.h"
 #include "mutt_account.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_socket.h"
 #include "mx.h"
 #include "options.h"
index 0546e63643e5885aaf3f89456f17b53dc661727a..10f40395455719d2e6396b6d903a4e3bb38cae35 100644 (file)
@@ -800,9 +800,10 @@ void imap_qualify_path(char *dest, size_t len, struct ImapMbox *mx, char *path)
 
 /**
  * imap_quote_string - quote string according to IMAP rules
- * @param dest Buffer for the result
- * @param dlen Length of the buffer
- * @param src  String to be quoted
+ * @param dest           Buffer for the result
+ * @param dlen           Length of the buffer
+ * @param src            String to be quoted
+ * @param quote_backtick If true, quote backticks too
  *
  * Surround string with quotes, escape " and \ with backslash
  */
diff --git a/init.c b/init.c
index d2c3534456981a10e4163f878198f5408344049c..952b560264718b139f7eea1549571d0922df5ea8 100644 (file)
--- a/init.c
+++ b/init.c
@@ -47,8 +47,8 @@
 #include "keymap.h"
 #include "mailbox.h"
 #include "mbtable.h"
+#include "menu.h"
 #include "mutt_curses.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
 #include "mx.h"
 #include "myvar.h"
index e2efdceff442f327f284d9c34400054b5db946ab..8035d3b807e1deafbcd3b6321cdfd9ec7182b405 100644 (file)
--- a/keymap.c
+++ b/keymap.c
@@ -31,6 +31,7 @@
 #include "mutt/mutt.h"
 #include "mutt.h"
 #include "keymap.h"
+#include "curs_lib.h"
 #include "functions.h"
 #include "globals.h"
 #include "mutt_curses.h"
index c36629f9715b05031a2a97a0a7eb9bb24d55591f..3e7d9cce4a4319c3fabe685557417847a71e9d58 100644 (file)
@@ -61,9 +61,9 @@
 #endif
 
 /* These Config Variables are only used in maildir/mh.c */
-bool  CheckNew;
-bool  MaildirHeaderCacheVerify;
-bool  MhPurge;
+bool CheckNew;
+bool MaildirHeaderCacheVerify;
+bool MhPurge;
 char *MhSeqFlagged;
 char *MhSeqReplied;
 char *MhSeqUnseen;
diff --git a/main.c b/main.c
index 489414db463a821004e38529555ac02a79faf2d4..20fad6f7355e778cf105a96dac2a073c2c75e39b 100644 (file)
--- a/main.c
+++ b/main.c
@@ -48,6 +48,9 @@
 #include "alias.h"
 #include "browser.h"
 #include "buffy.h"
+#include "color.h"
+#include "curs_lib.h"
+#include "curs_main.h"
 #include "globals.h"
 #include "keymap.h"
 #include "mailbox.h"
diff --git a/main.h b/main.h
index bef7ce331a5289f6c8851a58193fd698ac7c4490..98f8dc4439b2c90142c8743669d7b0302be0de3f 100644 (file)
--- a/main.h
+++ b/main.h
 #ifndef MUTT_MAIN_H
 #define MUTT_MAIN_H
 
+#include <stdbool.h>
+
 /* These Config Variables are only used in main.c */
 extern bool ResumeEditedDraftFiles;
 
+void mutt_exit(int code);
+
 #endif /* MUTT_MAIN_H */
diff --git a/menu.c b/menu.c
index 8a19ef7670918f59f02af1f136ed49956b603227..12f32cc9187a7d7cde1af1170274affbcd8161cb 100644 (file)
--- a/menu.c
+++ b/menu.c
 #include "mutt/mutt.h"
 #include "email/email.h"
 #include "mutt.h"
+#include "menu.h"
 #include "context.h"
+#include "curs_lib.h"
 #include "globals.h"
 #include "keymap.h"
 #include "mutt_curses.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
 #include "opcodes.h"
 #include "options.h"
@@ -47,8 +48,8 @@
 
 /* These Config Variables are only used in menu.c */
 short MenuContext;
-bool  MenuMoveOff; /**< allow menu to scroll past last entry */
-bool  MenuScroll;  /**< scroll menu instead of implicit next-page */
+bool MenuMoveOff; /**< allow menu to scroll past last entry */
+bool MenuScroll;  /**< scroll menu instead of implicit next-page */
 
 char *SearchBuffers[MENU_MAX];
 
diff --git a/menu.h b/menu.h
index 622b5e576281e6a6ca83455b3a169536c26dc390..73ac94130715b4da669f71ddb8645bfc9cb65888 100644 (file)
--- a/menu.h
+++ b/menu.h
 #ifndef MUTT_MENU_H
 #define MUTT_MENU_H
 
+#include <regex.h>
+#include <stdbool.h>
+#include <stdio.h>
+
 /* These Config Variables are only used in menu.c */
 extern short MenuContext;
 extern bool  MenuMoveOff; /**< allow menu to scroll past last entry */
 extern bool  MenuScroll;  /**< scroll menu instead of implicit next-page */
 
+#define REDRAW_INDEX          (1 << 0)
+#define REDRAW_MOTION         (1 << 1)
+#define REDRAW_MOTION_RESYNCH (1 << 2)
+#define REDRAW_CURRENT        (1 << 3)
+#define REDRAW_STATUS         (1 << 4)
+#define REDRAW_FULL           (1 << 5)
+#define REDRAW_BODY           (1 << 6)
+#define REDRAW_FLOW           (1 << 7) /* Used by pager to reflow text */
+#ifdef USE_SIDEBAR
+#define REDRAW_SIDEBAR        (1 << 8)
+#endif
+
+#define MUTT_MODEFMT "-- NeoMutt: %s"
+
+/**
+ * struct Menu - GUI selectable list of items
+ */
+struct Menu
+{
+  char *title; /**< the title of this menu */
+  char *help;  /**< quickref for the current menu */
+  void *data;  /**< extra data for the current menu */
+  int current; /**< current entry */
+  int max;     /**< the number of entries in the menu */
+  int redraw;  /**< when to redraw the screen */
+  int menu;    /**< menu definition for keymap entries. */
+  int offset;  /**< row offset within the window to start the index */
+  int pagelen; /**< number of entries per screen */
+  bool tagprefix : 1;
+  bool is_mailbox_list : 1;
+  struct MuttWindow *indexwin;
+  struct MuttWindow *statuswin;
+  struct MuttWindow *helpwin;
+  struct MuttWindow *messagewin;
+
+  /* Setting dialog != NULL overrides normal menu behavior.
+   * In dialog mode menubar is hidden and prompt keys are checked before
+   * normal menu movement keys. This can cause problems with scrolling, if
+   * prompt keys override movement keys.
+   */
+  char **dialog; /**< dialog lines themselves */
+  char *prompt;  /**< prompt for user, similar to mutt_multi_choice */
+  char *keys;    /**< keys used in the prompt */
+
+  /* callback to generate an index line for the requested element */
+  void (*make_entry)(char *buf, size_t buflen, struct Menu *menu, int num);
+
+  /* how to search the menu */
+  int (*search)(struct Menu *, regex_t *re, int n);
+
+  int (*tag)(struct Menu *, int i, int m);
+
+  /* these are used for custom redrawing callbacks */
+  void (*custom_menu_redraw)(struct Menu *);
+  void *redraw_data;
+
+  /* color pair to be used for the requested element
+   * (default function returns ColorDefs[MT_COLOR_NORMAL])
+   */
+  int (*color)(int i);
+
+  /* the following are used only by mutt_menu_loop() */
+  int top;        /**< entry that is the top of the current page */
+  int oldcurrent; /**< for driver use only. */
+  int search_dir;  /**< direction of search */
+  int tagged;     /**< number of tagged entries */
+};
+
+void         menu_bottom_page(struct Menu *menu);
+void         menu_check_recenter(struct Menu *menu);
+void         menu_current_bottom(struct Menu *menu);
+void         menu_current_middle(struct Menu *menu);
+void         menu_current_top(struct Menu *menu);
+void         menu_first_entry(struct Menu *menu);
+void         menu_half_down(struct Menu *menu);
+void         menu_half_up(struct Menu *menu);
+void         menu_last_entry(struct Menu *menu);
+void         menu_middle_page(struct Menu *menu);
+void         menu_next_line(struct Menu *menu);
+void         menu_next_page(struct Menu *menu);
+void         menu_prev_line(struct Menu *menu);
+void         menu_prev_page(struct Menu *menu);
+void         menu_redraw_current(struct Menu *menu);
+void         menu_redraw_full(struct Menu *menu);
+void         menu_redraw_index(struct Menu *menu);
+void         menu_redraw_motion(struct Menu *menu);
+#ifdef USE_SIDEBAR
+void         menu_redraw_sidebar(struct Menu *menu);
+#endif
+void         menu_redraw_status(struct Menu *menu);
+int          menu_redraw(struct Menu *menu);
+void         menu_top_page(struct Menu *menu);
+void         mutt_menu_current_redraw(void);
+void         mutt_menu_destroy(struct Menu **p);
+void         mutt_menu_init(void);
+int          mutt_menu_loop(struct Menu *menu);
+struct Menu *mutt_menu_new(int menu);
+void         mutt_menu_pop_current(struct Menu *menu);
+void         mutt_menu_push_current(struct Menu *menu);
+void         mutt_menu_set_current_redraw_full(void);
+void         mutt_menu_set_current_redraw(int redraw);
+void         mutt_menu_set_redraw_full(int menu_type);
+void         mutt_menu_set_redraw(int menu_type, int redraw);
+
 #endif /* MUTT_MENU_H */
diff --git a/mutt.h b/mutt.h
index 95bb33636a44d66a35cbfa93106f6116b893c6b9..e198d9d36761003fe92f92cad9802ebd38195a09 100644 (file)
--- a/mutt.h
+++ b/mutt.h
@@ -28,7 +28,7 @@
 #include <limits.h>
 #include <regex.h>
 #include <stdbool.h>
-#include "where.h"
+#include <stdint.h>
 
 struct Buffer;
 struct ListHead;
@@ -260,8 +260,6 @@ enum QuadOptionResponse
 #define MUTT_SPAM   1
 #define MUTT_NOSPAM 2
 
-bool mutt_matches_ignore(const char *s);
-
 int mutt_init(bool skip_sys_rc, struct ListHead *commands);
 
 /* flag to mutt_pattern_comp() */
index b58816fed02d50c6faeb7ed39ed253bd42ec7864..f7550165b4623fc691d466df24b39111fcb3783f 100644 (file)
 #include "mutt/mutt.h"
 #include "email/email.h"
 #include "mutt.h"
+#include "mutt_attach.h"
 #include "context.h"
 #include "copy.h"
+#include "curs_lib.h"
 #include "filter.h"
 #include "globals.h"
 #include "handler.h"
 #include "mailbox.h"
-#include "mutt_attach.h"
 #include "mutt_curses.h"
 #include "mx.h"
 #include "ncrypt/ncrypt.h"
index edec65212b37f9df24b4cdbcbda776ea7a1c86eb..6523c8e9a656cd6372b6d12a51048105ccd47ccf 100644 (file)
@@ -111,18 +111,7 @@ struct Event
   int op; /**< function op */
 };
 
-struct Event mutt_getch(void);
-
-void mutt_endwin(void);
-void mutt_flushinp(void);
-void mutt_refresh(void);
 void mutt_resize_screen(void);
-void mutt_unget_event(int ch, int op);
-void mutt_unget_string(char *s);
-void mutt_push_macro_event(int ch, int op);
-void mutt_flush_macro_to_endcond(void);
-void mutt_flush_unget_to_endcond(void);
-void mutt_need_hard_redraw(void);
 
 /* ----------------------------------------------------------------------------
  * Support for color
@@ -214,8 +203,6 @@ extern struct ColorLineHead ColorIndexFlagsList;
 extern struct ColorLineHead ColorIndexSubjectList;
 extern struct ColorLineHead ColorIndexTagList;
 
-void ci_start_color(void);
-
 /* If the system has bkgdset() use it rather than attrset() so that the clr*()
  * functions will properly set the background attributes all the way to the
  * right column.
index 3abbf0af37773786a0880359dbb96a5f6bdd7cd9..d0f92e47174a35f903def33c59fe30cb6995d46a 100644 (file)
@@ -32,6 +32,7 @@
 #include "mutt.h"
 #include "alias.h"
 #include "context.h"
+#include "curs_main.h"
 #include "globals.h"
 #include "ncrypt/ncrypt.h"
 #include "options.h"
index 7e1b8f20fcbd42d9f4b770e185d070040d5cb2b4..b3108679f7ad027e1a91853d2868cfaf4fed0fbf 100644 (file)
@@ -37,6 +37,7 @@
 #include <time.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
+#include "curs_lib.h"
 #include "globals.h"
 #include "mutt_curses.h"
 #include "mutt_window.h"
diff --git a/mutt_menu.h b/mutt_menu.h
deleted file mode 100644 (file)
index 998a442..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-/**
- * @file
- * GUI handling of selectable lists
- *
- * @authors
- * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
- *
- * @copyright
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 2 of the License, or (at your option) any later
- * version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef _MUTT_MENU_H
-#define _MUTT_MENU_H
-
-#include <regex.h>
-#include <stdbool.h>
-#include <stdio.h>
-
-#define REDRAW_INDEX          (1 << 0)
-#define REDRAW_MOTION         (1 << 1)
-#define REDRAW_MOTION_RESYNCH (1 << 2)
-#define REDRAW_CURRENT        (1 << 3)
-#define REDRAW_STATUS         (1 << 4)
-#define REDRAW_FULL           (1 << 5)
-#define REDRAW_BODY           (1 << 6)
-#define REDRAW_FLOW           (1 << 7) /* Used by pager to reflow text */
-#ifdef USE_SIDEBAR
-#define REDRAW_SIDEBAR        (1 << 8)
-#endif
-
-#define MUTT_MODEFMT "-- NeoMutt: %s"
-
-/**
- * struct Menu - GUI selectable list of items
- */
-struct Menu
-{
-  char *title; /**< the title of this menu */
-  char *help;  /**< quickref for the current menu */
-  void *data;  /**< extra data for the current menu */
-  int current; /**< current entry */
-  int max;     /**< the number of entries in the menu */
-  int redraw;  /**< when to redraw the screen */
-  int menu;    /**< menu definition for keymap entries. */
-  int offset;  /**< row offset within the window to start the index */
-  int pagelen; /**< number of entries per screen */
-  bool tagprefix : 1;
-  bool is_mailbox_list : 1;
-  struct MuttWindow *indexwin;
-  struct MuttWindow *statuswin;
-  struct MuttWindow *helpwin;
-  struct MuttWindow *messagewin;
-
-  /* Setting dialog != NULL overrides normal menu behavior.
-   * In dialog mode menubar is hidden and prompt keys are checked before
-   * normal menu movement keys. This can cause problems with scrolling, if
-   * prompt keys override movement keys.
-   */
-  char **dialog; /**< dialog lines themselves */
-  char *prompt;  /**< prompt for user, similar to mutt_multi_choice */
-  char *keys;    /**< keys used in the prompt */
-
-  /* callback to generate an index line for the requested element */
-  void (*make_entry)(char *buf, size_t buflen, struct Menu *menu, int num);
-
-  /* how to search the menu */
-  int (*search)(struct Menu *, regex_t *re, int n);
-
-  int (*tag)(struct Menu *, int i, int m);
-
-  /* these are used for custom redrawing callbacks */
-  void (*custom_menu_redraw)(struct Menu *);
-  void *redraw_data;
-
-  /* color pair to be used for the requested element
-   * (default function returns ColorDefs[MT_COLOR_NORMAL])
-   */
-  int (*color)(int i);
-
-  /* the following are used only by mutt_menu_loop() */
-  int top;        /**< entry that is the top of the current page */
-  int oldcurrent; /**< for driver use only. */
-  int search_dir;  /**< direction of search */
-  int tagged;     /**< number of tagged entries */
-};
-
-int  menu_redraw(struct Menu *menu);
-void menu_bottom_page(struct Menu *menu);
-void menu_check_recenter(struct Menu *menu);
-void menu_current_bottom(struct Menu *menu);
-void menu_current_middle(struct Menu *menu);
-void menu_current_top(struct Menu *menu);
-void menu_first_entry(struct Menu *menu);
-void menu_half_down(struct Menu *menu);
-void menu_half_up(struct Menu *menu);
-void menu_last_entry(struct Menu *menu);
-void menu_middle_page(struct Menu *menu);
-void menu_next_line(struct Menu *menu);
-void menu_next_page(struct Menu *menu);
-void menu_prev_line(struct Menu *menu);
-void menu_prev_page(struct Menu *menu);
-void menu_redraw_current(struct Menu *menu);
-void menu_redraw_full(struct Menu *menu);
-void menu_redraw_index(struct Menu *menu);
-void menu_redraw_motion(struct Menu *menu);
-#ifdef USE_SIDEBAR
-void menu_redraw_sidebar(struct Menu *menu);
-#endif
-void menu_redraw_status(struct Menu *menu);
-void menu_status_line(char *buf, size_t buflen, struct Menu *menu, const char *p);
-void menu_top_page(struct Menu *menu);
-
-void         mutt_menu_current_redraw(void);
-void         mutt_menu_destroy(struct Menu **p);
-void         mutt_menu_init(void);
-int          mutt_menu_loop(struct Menu *menu);
-struct Menu *mutt_menu_new(int menu);
-void         mutt_menu_pop_current(struct Menu *menu);
-void         mutt_menu_push_current(struct Menu *menu);
-void         mutt_menu_set_current_redraw_full(void);
-void         mutt_menu_set_current_redraw(int redraw);
-void         mutt_menu_set_redraw_full(int menu_type);
-void         mutt_menu_set_redraw(int menu_type, int redraw);
-
-/* used in both the index and pager index to make an entry. */
-void index_make_entry(char *buf, size_t buflen, struct Menu *menu, int num);
-int index_color(int index_no);
-
-#endif /* _MUTT_MENU_H */
index a63baf1c6f512711bf30579844123b6bb31086bc..c997f244c46a5612e49cd15ea40f6b41e51561b0 100644 (file)
@@ -32,7 +32,7 @@
 #include "mutt/mutt.h"
 #include "mutt_window.h"
 #include "globals.h"
-#include "mutt_menu.h"
+#include "menu.h"
 #include "options.h"
 
 struct MuttWindow *MuttHelpWindow = NULL;    /**< Help Window */
index 7533f4899fe86cb15cbceab85acb6dd52d191f7e..5dcb9c2a7bd0f3205b60e538ed789a18ffd6f690 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -40,6 +40,7 @@
 #include "conn/conn.h"
 #include "mutt.h"
 #include "alias.h"
+#include "curs_lib.h"
 #include "filter.h"
 #include "format_flags.h"
 #include "globals.h"
index 1f459f029ecf3f1a6d95d5066d9cec02ab711584..14395d007c55b79af69bd2b51be7010a1c51977f 100644 (file)
--- a/muttlib.h
+++ b/muttlib.h
@@ -27,6 +27,7 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
+#include "format_flags.h"
 
 struct Address;
 struct Body;
@@ -42,6 +43,7 @@ int         mutt_check_overwrite(const char *attname, const char *path, char *fn
 void        mutt_encode_path(char *dest, size_t dlen, const char *src);
 void        mutt_expand_file_fmt(char *dest, size_t destlen, const char *fmt, const char *src);
 void        mutt_expand_fmt(char *dest, size_t destlen, const char *fmt, const char *src);
+void        mutt_expando_format(char *buf, size_t buflen, size_t col, int cols, const char *src, format_t *callback, unsigned long data, enum FormatFlag flags);
 char *      mutt_expand_path(char *s, size_t slen);
 char *      mutt_expand_path_regex(char *s, size_t slen, bool regex);
 char *      mutt_gecos_name(char *dest, size_t destlen, struct passwd *pw);
@@ -49,6 +51,7 @@ void        mutt_get_parent_path(char *output, char *path, size_t olen);
 int         mutt_inbox_cmp(const char *a, const char *b);
 bool        mutt_is_text_part(struct Body *b);
 const char *mutt_make_version(void);
+bool        mutt_matches_ignore(const char *s);
 void        mutt_mktemp_full(char *s, size_t slen, const char *prefix, const char *suffix, const char *src, int line);
 bool        mutt_needs_mailcap(struct Body *m);
 FILE *      mutt_open_read(const char *path, pid_t *thepid);
diff --git a/mx.c b/mx.c
index 92e55177b3c4be7829627c350ae8e002ee92e394..0ab89be52c666cc7754e62bbfabb59c7fadc5833 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -57,6 +57,7 @@
 #include "options.h"
 #include "pattern.h"
 #include "protos.h"
+#include "score.h"
 #include "sort.h"
 #include "url.h"
 #ifdef USE_SIDEBAR
@@ -83,9 +84,9 @@
 
 /* These Config Variables are only used in mx.c */
 unsigned char CatchupNewsgroup;
-bool          KeepFlagged;
+bool KeepFlagged;
 unsigned char Move;
-char *        Trash;
+char *Trash;
 
 /**
  * mx_get_ops - Get mailbox operations
index 3c4b49407472df59c1a864289bcf89ed3faf619a..008921aaffebf2297756a8f2c86d6b0a9cf3b873 100644 (file)
@@ -45,6 +45,7 @@
 #include "context.h"
 #include "copy.h"
 #include "cryptglue.h"
+#include "curs_lib.h"
 #include "globals.h"
 #include "handler.h"
 #include "mutt_curses.h"
 #include "state.h"
 
 /* These Config Variables are only used in ncrypt/crypt.c */
-bool          CryptTimestamp;
+bool CryptTimestamp;
 unsigned char PgpEncryptSelf;
 unsigned char PgpMimeAuto; /* ask to revert to PGP/MIME when inline fails */
-bool          PgpRetainableSigs;
-bool          PgpSelfEncrypt;
-bool          PgpStrictEnc;
+bool PgpRetainableSigs;
+bool PgpSelfEncrypt;
+bool PgpStrictEnc;
 unsigned char SmimeEncryptSelf;
-bool          SmimeSelfEncrypt;
+bool SmimeSelfEncrypt;
 
 /**
  * crypt_current_time - Print the current time
index 7cdd4c6cd990e08b72d50d3bba70ce4468528e7c..f5894af6ef71970734aa6e0287294b1049788bea 100644 (file)
 #include "mutt.h"
 #include "alias.h"
 #include "crypt.h"
+#include "curs_lib.h"
 #include "format_flags.h"
 #include "globals.h"
 #include "handler.h"
 #include "keymap.h"
+#include "menu.h"
 #include "mutt_attach.h"
 #include "mutt_curses.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "ncrypt.h"
 #include "opcodes.h"
 #include "options.h"
index 00b8f64bde1250b96b26c3b31cbca3418fc82990..d3bfdda4ea16e3c0218502820a0b3a0d78dfce27 100644 (file)
@@ -47,6 +47,7 @@
 #include "pgp.h"
 #include "crypt.h"
 #include "cryptglue.h"
+#include "curs_lib.h"
 #include "filter.h"
 #include "globals.h"
 #include "handler.h"
 #include "state.h"
 
 /* These Config Variables are only used in ncrypt/pgp.c */
-bool          PgpCheckExit;
-bool          PgpCheckGpgDecryptStatusFd;
+bool PgpCheckExit;
+bool PgpCheckGpgDecryptStatusFd;
 struct Regex *PgpDecryptionOkay;
 struct Regex *PgpGoodSign;
-long          PgpTimeout;
-bool          PgpUseGpgAgent;
+long PgpTimeout;
+bool PgpUseGpgAgent;
 
 char PgpPass[LONG_STRING];
 time_t PgpExptime = 0; /* when does the cached passphrase expire? */
index 056c31ff7a6bb4b7cd8f998de0b2280b5e5cc058..223da3a4be6e1b2819804b79def749a4c8d82542 100644 (file)
@@ -43,6 +43,7 @@
 #include "mutt_curses.h"
 #include "mutt_logging.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "ncrypt.h"
 #include "pgp.h"
 #include "pgpkey.h"
index 247f7a4a2c33e21f41c6a726f580e082bdbe6e72..6d36df92b9fdb115bc74f038d1a3ac58d2f850dd 100644 (file)
 #include "mutt.h"
 #include "pgpkey.h"
 #include "crypt.h"
+#include "curs_lib.h"
 #include "filter.h"
 #include "format_flags.h"
 #include "globals.h"
 #include "gnupgparse.h"
 #include "keymap.h"
+#include "menu.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "ncrypt.h"
 #include "opcodes.h"
 #include "options.h"
index 9af789b29772e76b27d781d7e3f3914f31665a4c..fd72ff722d652f0ff17ac77f1185eec4c8ebce2c 100644 (file)
 #include "copy.h"
 #include "crypt.h"
 #include "cryptglue.h"
+#include "curs_lib.h"
 #include "filter.h"
 #include "format_flags.h"
 #include "globals.h"
 #include "handler.h"
 #include "keymap.h"
+#include "menu.h"
 #include "mutt_curses.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "ncrypt.h"
 #include "opcodes.h"
 #include "options.h"
 #include "state.h"
 
 /* These Config Variables are only used in ncrypt/smime.c */
-bool  SmimeAskCertLabel;
+bool SmimeAskCertLabel;
 char *SmimeCaLocation;
 char *SmimeCertificates;
 char *SmimeDecryptCommand;
-bool  SmimeDecryptUseDefaultKey;
+bool SmimeDecryptUseDefaultKey;
 char *SmimeEncryptCommand;
 char *SmimeGetCertCommand;
 char *SmimeGetCertEmailCommand;
@@ -73,7 +75,7 @@ char *SmimeKeys;
 char *SmimePk7outCommand;
 char *SmimeSignCommand;
 char *SmimeSignDigestAlg;
-long  SmimeTimeout;
+long SmimeTimeout;
 char *SmimeVerifyCommand;
 char *SmimeVerifyOpaqueCommand;
 
index 7c46404c2158b4d21cebc41d4d77879695f931f3..9d535bd3be87734966745f8ea4d495b931092e00 100644 (file)
@@ -50,6 +50,7 @@
 #include "mutt_logging.h"
 #include "mutt_socket.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "mx.h"
 #include "nntp.h"
 #include "options.h"
index b603293a3f5710cfc16a49dba5f0c746dbc66547..6ce1b9f6759f0f5b115c29740145d5fa64f6e5f3 100644 (file)
 /* These Config Variables are only used in nntp/nntp.c */
 char *NntpAuthenticators;
 short NntpContext;
-bool  NntpListgroup;
-bool  NntpLoadDescription;
+bool NntpListgroup;
+bool NntpLoadDescription;
 short NntpPoll;
-bool  ShowNewNews;
+bool ShowNewNews;
 
 struct NntpServer *CurrentNewsSrv;
 
index 77efaad8a2f1e0ce7c51c34028da9d359ba682e4..d5bb03bce58afc0cdb20eb7bc06ccb503ff4cc69 100644 (file)
@@ -52,6 +52,7 @@
 #include "mutt_notmuch.h"
 #include "buffy.h"
 #include "context.h"
+#include "curs_main.h"
 #include "globals.h"
 #include "mailbox.h"
 #include "maildir/maildir.h"
 #include "url.h"
 
 /* These Config Variables are only used in notmuch/mutt_notmuch.c */
-int   NmDbLimit;
+int NmDbLimit;
 char *NmDefaultUri;
 char *NmExcludeTags;
-int   NmOpenTimeout;
+int NmOpenTimeout;
 char *NmQueryType;
-int   NmQueryWindowCurrentPosition;
+int NmQueryWindowCurrentPosition;
 char *NmQueryWindowTimebase;
 char *NmRecordTags;
 char *NmUnreadTag;
diff --git a/pager.c b/pager.c
index bdd61871b89557587863df43a221fb5a66dd4dd6..5c88916d1c887e7f62f849aab1241318c0489fc5 100644 (file)
--- a/pager.c
+++ b/pager.c
 #include "pager.h"
 #include "alias.h"
 #include "buffy.h"
+#include "commands.h"
 #include "context.h"
+#include "curs_lib.h"
+#include "curs_main.h"
 #include "format_flags.h"
 #include "globals.h"
+#include "hdrline.h"
 #include "keymap.h"
 #include "mailbox.h"
+#include "menu.h"
 #include "mutt_attach.h"
 #include "mutt_curses.h"
 #include "mutt_header.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
 #include "mx.h"
 #include "ncrypt/ncrypt.h"
@@ -56,6 +60,7 @@
 #include "recvattach.h"
 #include "recvcmd.h"
 #include "sort.h"
+#include "status.h"
 #include "terminal.h"
 #ifdef USE_SIDEBAR
 #include "sidebar.h"
 #endif
 
 /* These Config Variables are only used in pager.c */
-bool          AllowAnsi;
-bool          HeaderColorPartial;
-short         PagerContext;
-short         PagerIndexLines;
-bool          PagerStop;
-short         SearchContext;
-short         SkipQuotedOffset;
-bool          SmartWrap;
+bool AllowAnsi;
+bool HeaderColorPartial;
+short PagerContext;
+short PagerIndexLines;
+bool PagerStop;
+short SearchContext;
+short SkipQuotedOffset;
+bool SmartWrap;
 struct Regex *Smileys;
-bool          Tilde;
+bool Tilde;
 
 #define ISHEADER(x) ((x) == MT_COLOR_HEADER || (x) == MT_COLOR_HDEFAULT)
 
diff --git a/pager.h b/pager.h
index aee0f589bce829836bb227259eb4594d3a3ef686..b3d74c8f17811d608f661336d3ec1601393cd2ee 100644 (file)
--- a/pager.h
+++ b/pager.h
@@ -71,9 +71,7 @@ struct Pager
   struct AttachCtx *actx; /**< attachment information */
 };
 
-int mutt_do_pager(const char *banner, const char *tempfile, int do_color, struct Pager *info);
 int mutt_pager(const char *banner, const char *fname, int flags, struct Pager *extra);
-void update_index(struct Menu *menu, struct Context *ctx, int check, int oldcount, int index_hint);
 
 void mutt_clear_pager_position(void);
 
diff --git a/parse.c b/parse.c
index e5b63d321526a2e730e24fb40c06468e5eed2d97..02c7be8844e58f0f0660dcad5a9ac88818bb4f73 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -33,6 +33,7 @@
 #include "mutt.h"
 #include "globals.h"
 #include "mailbox.h"
+#include "muttlib.h"
 #include "ncrypt/ncrypt.h"
 #include "options.h"
 #include "protos.h"
index 8b6fba6ae7c4779ef10de71fc9523125175c22b5..aa744cfd2c1004e55bee8d429228c25a89145b6e 100644 (file)
--- a/pattern.c
+++ b/pattern.c
 #include "globals.h"
 #include "group.h"
 #include "handler.h"
+#include "hdrline.h"
 #include "mailbox.h"
+#include "menu.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mx.h"
 #include "ncrypt/ncrypt.h"
 #include "opcodes.h"
index ee6f053505f7e2cd7259d6f10b8301e746d203e4..2c5a91311cc4d983538842f30dbfbf6d59c6db95 100644 (file)
--- a/pop/pop.c
+++ b/pop/pop.c
 #endif
 
 /* These Config Variables are only used in pop/pop.c */
-short         PopCheckinterval;
+short PopCheckinterval;
 unsigned char PopDelete;
-char *        PopHost;
-bool          PopLast;
+char *PopHost;
+bool PopLast;
 
 #ifdef USE_HCACHE
 #define HC_FNAME "neomutt" /* filename for hcache as POP lacks paths */
index 4c503835a33e0fe670ee02eee2fccc121e103d08..a089256ca74fb189187bc29301493849472c462e 100644 (file)
@@ -47,7 +47,7 @@
 
 /* These Config Variables are only used in pop/pop_auth.c */
 char *PopAuthenticators;
-bool  PopAuthTryAll;
+bool PopAuthTryAll;
 
 #ifdef USE_SASL
 /**
index 4d492cca052c96a5541c52f62e21120c86d028cc..eb918081ee201272095cdcf2069411224c08677d 100644 (file)
 #include "format_flags.h"
 #include "globals.h"
 #include "handler.h"
+#include "hdrline.h"
 #include "keymap.h"
 #include "mailbox.h"
+#include "menu.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_thread.h"
 #include "ncrypt/ncrypt.h"
 #include "opcodes.h"
index 357b8135fe1ec1ae8df816f585a533bc313fff75..51c8fb7f0071c5eda78adb2bcb5d937afd9f0b8c 100644 (file)
 #include <sys/time.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "mutt_logging.h"
 #include "progress.h"
+#include "curs_lib.h"
 #include "globals.h"
 #include "mutt_curses.h"
+#include "mutt_logging.h"
 #include "options.h"
 #include "protos.h"
 
index cd4f3ba1248873ca872077a15d4d4f9a46a5b189..3fb7120de58a699a8614efecf41c2d68f1904bdd 100644 (file)
--- a/protos.h
+++ b/protos.h
@@ -30,7 +30,6 @@
 #include <stdio.h>
 #include <time.h>
 #include "mutt.h"
-#include "format_flags.h"
 
 struct Address;
 struct AliasList;
@@ -46,10 +45,6 @@ struct ParameterList;
 struct stat;
 struct passwd;
 
-#define mutt_make_string(A, B, C, D, E) mutt_make_string_flags(A, B, C, D, E, 0)
-void mutt_make_string_flags(char *buf, size_t buflen, const char *s,
-                            struct Context *ctx, struct Header *hdr, enum FormatFlag flags);
-
 /**
  * struct HdrFormatInfo - Data passed to index_format_str()
  */
@@ -69,9 +64,6 @@ enum XdgType
   XDG_CONFIG_DIRS,
 };
 
-void mutt_make_string_info(char *buf, size_t buflen, int cols, const char *s,
-                           struct HdrFormatInfo *hfi, enum FormatFlag flags);
-
 int mutt_system(const char *cmd);
 
 void mutt_parse_content_type(char *s, struct Body *ct);
@@ -121,10 +113,8 @@ void mutt_alias_menu(char *buf, size_t buflen, struct AliasList *aliases);
 int mutt_bounce_message(FILE *fp, struct Header *h, struct Address *to);
 void mutt_check_stats(void);
 int mutt_count_body_parts(struct Context *ctx, struct Header *hdr);
-void mutt_check_rescore(struct Context *ctx);
 void mutt_default_save(char *path, size_t pathlen, struct Header *hdr);
 void mutt_display_address(struct Envelope *env);
-void mutt_draw_statusline(int cols, const char *buf, size_t buflen);
 int mutt_edit_content_type (struct Header *h, struct Body *b, FILE *fp);
 void mutt_edit_file(const char *editor, const char *data);
 void mutt_encode_descriptions(struct Body *b, short recurse);
@@ -162,10 +152,8 @@ void mutt_pretty_mailbox(char *s, size_t buflen);
 void mutt_pipe_message(struct Header *h);
 void mutt_print_message(struct Header *h);
 void mutt_query_exit(void);
-void mutt_query_menu(char *buf, size_t buflen);
 void mutt_safe_path(char *s, size_t l, struct Address *a);
 void mutt_save_path(char *d, size_t dsize, struct Address *a);
-void mutt_score_message(struct Context *ctx, struct Header *hdr, bool upd_ctx);
 void mutt_select_fcc(char *path, size_t pathlen, struct Header *hdr);
 void mutt_message_hook(struct Context *ctx, struct Header *hdr, int type);
 void mutt_set_flag_update(struct Context *ctx, struct Header *h, int flag, bool bf, bool upd_ctx);
@@ -183,7 +171,6 @@ int mutt_addwch(wchar_t wc);
 int mutt_alloc_color(int fg, int bg);
 int mutt_combine_color(int fg_attr, int bg_attr);
 int mutt_any_key_to_continue(const char *s);
-int mutt_builtin_editor(const char *path, struct Header *msg, struct Header *cur);
 int mutt_change_flag(struct Header *h, int bf);
 int mutt_check_encoding(const char *c);
 
@@ -214,11 +201,8 @@ int mutt_get_field_unbuffered(char *msg, char *buf, size_t buflen, int flags);
 
 int mutt_get_postponed(struct Context *ctx, struct Header *hdr, struct Header **cur, char *fcc, size_t fcclen);
 int mutt_parse_crypt_hdr(const char *p, int set_empty_signas, int crypt_app);
-int mutt_index_menu(void);
 int mutt_invoke_sendmail(struct Address *from, struct Address *to, struct Address *cc, struct Address *bcc,
                          const char *msg, int eightbit);
-bool mutt_is_mail_list(struct Address *addr);
-bool mutt_is_subscribed_list(struct Address *addr);
 bool mutt_is_text_part(struct Body *b);
 int mutt_lookup_mime_type(struct Body *att, const char *path);
 int mutt_multi_choice(char *prompt, char *letters);
@@ -231,21 +215,13 @@ int mutt_parse_mono(struct Buffer *buf, struct Buffer *s, unsigned long data, st
 int mutt_parse_unmono(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
 int mutt_rfc822_parse_line(struct Envelope *e, struct Header *hdr, char *line, char *p,
                            short user_hdrs, short weed, short do_2047);
-int mutt_parse_score(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
-int mutt_parse_unscore(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
 int mutt_parse_unhook(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
 void mutt_delete_hooks(int type);
-int mutt_query_complete(char *buf, size_t buflen);
 int mutt_save_message_ctx(struct Header *h, int delete, int decode, int decrypt, struct Context *ctx);
 int mutt_save_message(struct Header *h, int delete, int decode, int decrypt);
-#ifdef USE_SMTP
-int mutt_smtp_send(const struct Address *from, const struct Address *to, const struct Address *cc,
-                   const struct Address *bcc, const char *msgfile, int eightbit);
-#endif
 
 size_t mutt_wstr_trunc(const char *src, size_t maxlen, size_t maxwid, size_t *width);
 int mutt_strwidth(const char *s);
-int mutt_compose_menu(struct Header *msg, char *fcc, size_t fcclen, struct Header *cur, int flags);
 int mutt_thread_set_flag(struct Header *hdr, int flag, int bf, int subthread);
 void mutt_update_num_postponed(void);
 int mutt_write_fcc(const char *path, struct Header *hdr, const char *msgid, int post,
@@ -259,7 +235,6 @@ int mutt_write_one_header(FILE *fp, const char *tag, const char *value,
 int mutt_rfc822_write_header(FILE *fp, struct Envelope *env, struct Body *attach, int mode, bool privacy);
 void mutt_write_references(const struct ListHead *r, FILE *f, size_t trim);
 int mutt_yesorno(const char *msg, int def);
-void mutt_set_header_color(struct Context *ctx, struct Header *curhdr);
 void mutt_sleep(short s);
 int mutt_save_confirm(const char *s, struct stat *st);
 
diff --git a/query.c b/query.c
index 4239427fc55d39549c644d4fcdf08f2c9b936c9e..de63586e68914b6dd8b312055fc56639cad8d679 100644 (file)
--- a/query.c
+++ b/query.c
 #include "format_flags.h"
 #include "globals.h"
 #include "keymap.h"
+#include "menu.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "opcodes.h"
 #include "protos.h"
 
diff --git a/query.h b/query.h
index 42381f3cca434b054cf2fd3845c4fe0549b37391..6172705432c7b4aa3cecafa827efcfab7429b5a8 100644 (file)
--- a/query.h
+++ b/query.h
 #ifndef MUTT_QUERY_H
 #define MUTT_QUERY_H
 
+#include <stdio.h>
+
 /* These Config Variables are only used in query.c */
 extern char *QueryCommand;
 extern char *QueryFormat;
 
+int  mutt_query_complete(char *buf, size_t buflen);
+void mutt_query_menu(char *buf, size_t buflen);
+
 #endif /* MUTT_QUERY_H */
index cb9e6476fbaadcf4202dd9e9d38fcd29a2e25e80..80c3edff31d93c9960ae5133a957f66a3148a87a 100644 (file)
 #include "mutt.h"
 #include "recvattach.h"
 #include "context.h"
+#include "curs_lib.h"
 #include "filter.h"
 #include "format_flags.h"
 #include "globals.h"
 #include "handler.h"
+#include "hdrline.h"
 #include "keymap.h"
 #include "mailbox.h"
+#include "menu.h"
 #include "mutt_attach.h"
 #include "mutt_curses.h"
 #include "mutt_logging.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "mx.h"
 #include "ncrypt/ncrypt.h"
 #include "opcodes.h"
@@ -58,8 +61,8 @@
 
 /* These Config Variables are only used in recvattach.c */
 char *AttachSep;
-bool  AttachSplit;
-bool  DigestCollapse;
+bool AttachSplit;
+bool DigestCollapse;
 char *MessageFormat;
 
 static void mutt_update_recvattach_menu(struct AttachCtx *actx, struct Menu *menu, bool init);
index 7a3204f6e642c39f0d7634b9b3df2e1073564143..3ff1a5ad4192236755aad3721459d7cb91dcf5a2 100644 (file)
--- a/recvcmd.c
+++ b/recvcmd.c
@@ -32,6 +32,7 @@
 #include "copy.h"
 #include "globals.h"
 #include "handler.h"
+#include "hdrline.h"
 #include "mutt_body.h"
 #include "mutt_logging.h"
 #include "mutt_window.h"
index 981f56fa8c5f3cbaa397602d8bee58c4a6eb585c..305946bf7110836e68b66a24188604ff7e7d7fe2 100644 (file)
 #include "email/email.h"
 #include "mutt.h"
 #include "remailer.h"
+#include "curs_lib.h"
 #include "filter.h"
 #include "format_flags.h"
 #include "globals.h"
 #include "keymap.h"
+#include "menu.h"
 #include "mutt_curses.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "opcodes.h"
 #include "options.h"
 #include "protos.h"
index e69d89ef3deb82e7760baf9872e6a4a3805897af..18aebd001177760744d677a06bd4f5991b99e209 100644 (file)
--- a/rfc3676.c
+++ b/rfc3676.c
@@ -38,7 +38,7 @@
 #include "state.h"
 
 /* These Config Variables are only used in rfc3676.c */
-bool  ReflowSpaceQuotes;
+bool ReflowSpaceQuotes;
 short ReflowWrap;
 
 #define FLOWED_MAX 72
diff --git a/score.c b/score.c
index d23bb7fd13723d15d36598e6e979372e27c2e91a..023641018d91e6758094551964d817f1b026e2ed 100644 (file)
--- a/score.c
+++ b/score.c
 #include "mutt/mutt.h"
 #include "email/email.h"
 #include "mutt.h"
+#include "score.h"
 #include "context.h"
 #include "globals.h"
 #include "keymap.h"
-#include "mutt_menu.h"
+#include "menu.h"
 #include "options.h"
 #include "pattern.h"
 #include "protos.h"
diff --git a/score.h b/score.h
index c60a1055fd4046bfe55536b81928f216e559c03b..18752badf214ab81bfa9e0915aa333d7bb69d2c7 100644 (file)
--- a/score.h
+++ b/score.h
 #ifndef MUTT_SCORE_H
 #define MUTT_SCORE_H
 
+#include <stdbool.h>
+
+struct Buffer;
+struct Header;
+struct Context;
+
 /* These Config Variables are only used in score.c */
 extern short ScoreThresholdDelete;
 extern short ScoreThresholdFlag;
 extern short ScoreThresholdRead;
 
+void mutt_check_rescore(struct Context *ctx);
+int  mutt_parse_score(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
+int  mutt_parse_unscore(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
+void mutt_score_message(struct Context *ctx, struct Header *hdr, bool upd_ctx);
+
 #endif /* MUTT_SCORE_H */
diff --git a/send.c b/send.c
index 64346b870eadab37a6406bef6dc2ecb2587f7208..9afcac7cb4ccb6855ff0088e1443fa4be275b3cd 100644 (file)
--- a/send.c
+++ b/send.c
 #include "email/email.h"
 #include "mutt.h"
 #include "alias.h"
+#include "compose.h"
 #include "context.h"
 #include "copy.h"
+#include "edit.h"
 #include "filter.h"
 #include "globals.h"
+#include "hdrline.h"
 #include "mailbox.h"
 #include "mutt_attach.h"
 #include "mutt_header.h"
@@ -48,6 +51,7 @@
 #include "pattern.h"
 #include "protos.h"
 #include "rfc3676.h"
+#include "smtp.h"
 #include "sort.h"
 #include "url.h"
 #ifdef USE_NNTP
@@ -66,46 +70,46 @@ unsigned char AbortNoattach; /* forgotten attachment detector */
 struct Regex *AbortNoattachRegex;
 unsigned char AbortNosubject;
 unsigned char AbortUnmodified;
-bool          AskFollowUp;
-bool          AskXCommentTo;
-char *        ContentType;
-bool          CryptAutoencrypt;
-bool          CryptAutopgp;
-bool          CryptAutosign;
-bool          CryptAutosmime;
-bool          CryptReplyencrypt;
-bool          CryptReplysign;
-bool          CryptReplysignencrypted;
-char *        EmptySubject;
-bool          FastReply;
+bool AskFollowUp;
+bool AskXCommentTo;
+char *ContentType;
+bool CryptAutoencrypt;
+bool CryptAutopgp;
+bool CryptAutosign;
+bool CryptAutosmime;
+bool CryptReplyencrypt;
+bool CryptReplysign;
+bool CryptReplysignencrypted;
+char *EmptySubject;
+bool FastReply;
 unsigned char FccAttach;
-bool          FccClear;
-bool          FollowupTo;
-char *        ForwardAttributionIntro;
-char *        ForwardAttributionTrailer;
+bool FccClear;
+bool FollowupTo;
+char *ForwardAttributionIntro;
+char *ForwardAttributionTrailer;
 unsigned char ForwardEdit;
-char *        ForwardFormat;
-bool          ForwardReferences;
-bool          Hdrs;
+char *ForwardFormat;
+bool ForwardReferences;
+bool Hdrs;
 unsigned char HonorFollowupTo;
-bool          IgnoreListReplyTo;
+bool IgnoreListReplyTo;
 unsigned char Include;
-bool          Metoo;
-bool          NmRecord;
-bool          PgpReplyinline;
-char *        PostIndentString;
-bool          PostponeEncrypt;
-char *        PostponeEncryptAs;
+bool Metoo;
+bool NmRecord;
+bool PgpReplyinline;
+char *PostIndentString;
+bool PostponeEncrypt;
+char *PostponeEncryptAs;
 unsigned char Recall;
-bool          ReplySelf;
+bool ReplySelf;
 unsigned char ReplyTo;
-bool          ReplyWithXorig;
-bool          ReverseName;
-bool          ReverseRealname;
-bool          SigDashes;
-char *        Signature;
-bool          SigOnTop;
-bool          UseFrom;
+bool ReplyWithXorig;
+bool ReverseName;
+bool ReverseRealname;
+bool SigDashes;
+char *Signature;
+bool SigOnTop;
+bool UseFrom;
 
 static void append_signature(FILE *f)
 {
diff --git a/send.h b/send.h
index 31ba03320da4fdc1e92b46f8d87f27e8b5cf12fc..2b5a933d415cdf1251755730cf0ce311159cac37 100644 (file)
--- a/send.h
+++ b/send.h
@@ -23,6 +23,7 @@
 #ifndef MUTT_SEND_H
 #define MUTT_SEND_H
 
+#include <stdbool.h>
 #include <stdio.h>
 
 struct Address;
index c7b4e27c19a0d2e8aeceee4808c57c15f396f4f3..712a558d71ef0b466e431cc5a062c8c2368cac3a 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -41,6 +41,7 @@
 #include "buffy.h"
 #include "context.h"
 #include "copy.h"
+#include "curs_lib.h"
 #include "filter.h"
 #include "format_flags.h"
 #include "globals.h"
@@ -48,6 +49,7 @@
 #include "mailbox.h"
 #include "mutt_curses.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "mx.h"
 #include "ncrypt/ncrypt.h"
 #include "options.h"
@@ -56,6 +58,7 @@
 #include "recvattach.h"
 #include "rfc2047.h"
 #include "rfc2231.h"
+#include "smtp.h"
 #include "state.h"
 #ifdef USE_NNTP
 #include "nntp/nntp.h"
 #endif
 
 /* These Config Variables are only used in sendlib.c */
-bool  Allow8bit;
+bool Allow8bit;
 char *AttachCharset;
-bool  BounceDelivered;
-bool  EncodeFrom;
-bool  ForwardDecrypt;
-bool  HiddenHost;
+bool BounceDelivered;
+bool EncodeFrom;
+bool ForwardDecrypt;
+bool HiddenHost;
 char *Inews;
-bool  MimeForwardDecode;
-bool  MimeSubject; /**< encode subject line with RFC2047 */
+bool MimeForwardDecode;
+bool MimeSubject; /**< encode subject line with RFC2047 */
 char *MimeTypeQueryCommand;
-bool  MimeTypeQueryFirst;
+bool MimeTypeQueryFirst;
 char *Sendmail;
 short SendmailWait;
-bool  Use8bitmime;
-bool  UseEnvelopeFrom;
-bool  UserAgent;
+bool Use8bitmime;
+bool UseEnvelopeFrom;
+bool UserAgent;
 short WrapHeaders;
 
 /**
index 389a39c5c65a30af51c11d56a4ddf6acbf7b4d11..3b20133a79ed028bee86d087c17982dcdb5c70cb 100644 (file)
--- a/sidebar.c
+++ b/sidebar.c
@@ -41,8 +41,8 @@
 #include "context.h"
 #include "format_flags.h"
 #include "globals.h"
+#include "menu.h"
 #include "mutt_curses.h"
-#include "mutt_menu.h"
 #include "mutt_window.h"
 #include "muttlib.h"
 #include "mx.h"
 short SidebarComponentDepth;
 char *SidebarDelimChars;
 char *SidebarDividerChar;
-bool  SidebarFolderIndent;
+bool SidebarFolderIndent;
 char *SidebarFormat;
 char *SidebarIndentString;
-bool  SidebarNewMailOnly;
-bool  SidebarNextNewWrap;
-bool  SidebarShortPath;
+bool SidebarNewMailOnly;
+bool SidebarNextNewWrap;
+bool SidebarShortPath;
 short SidebarSortMethod;
 
 /* Previous values for some sidebar config */
diff --git a/smtp.h b/smtp.h
index e6b818b3a41f7a4f21c59689babbad1f0ddf96dd..f4fbab0d308651573777d2c578f1ac86afe3a5a3 100644 (file)
--- a/smtp.h
+++ b/smtp.h
 #ifndef MUTT_SMTP_H
 #define MUTT_SMTP_H
 
+struct Address;
+
 /* These Config Variables are only used in smtp.c */
 extern char *SmtpAuthenticators;
 
+#ifdef USE_SMTP
+int mutt_smtp_send(const struct Address *from, const struct Address *to, const struct Address *cc, const struct Address *bcc, const char *msgfile, int eightbit);
+#endif
+
 #endif /* MUTT_SMTP_H */
diff --git a/sort.c b/sort.c
index a946ea956755d7c5d36451743166d82f545e0262..c51fef0c0444d1d81143a2064c44b97eb4b05a60 100644 (file)
--- a/sort.c
+++ b/sort.c
@@ -34,6 +34,7 @@
 #include "mutt_thread.h"
 #include "options.h"
 #include "protos.h"
+#include "score.h"
 #ifdef USE_NNTP
 #include "mx.h"
 #include "nntp/nntp.h"
@@ -273,7 +274,7 @@ sort_t *mutt_get_sort_func(int method)
         return nntp_compare_order;
       else
 #endif
-      return compare_order;
+        return compare_order;
     case SORT_RECEIVED:
       return compare_date_received;
     case SORT_SCORE:
diff --git a/sort.h b/sort.h
index 7c9facba0266173ec69ffb75c4ebca22499615df..9b3548953e306db9c1ece3d738ff2de999d8470b 100644 (file)
--- a/sort.h
+++ b/sort.h
@@ -76,7 +76,6 @@ typedef int sort_t(const void *a, const void *b);
 sort_t *mutt_get_sort_func(int method);
 
 void mutt_sort_headers(struct Context *ctx, int init);
-int mutt_select_sort(int reverse);
 int perform_auxsort(int retval, const void *a, const void *b);
 
 extern const struct Mapping SortMethods[];
index 72a41851594933d8e387f996fb2c665fa712bc23..9b877dfe53d887f3623fdf55015cda36481894fc 100644 (file)
--- a/status.c
+++ b/status.c
@@ -34,8 +34,9 @@
 #include "format_flags.h"
 #include "globals.h"
 #include "mbtable.h"
-#include "mutt_menu.h"
+#include "menu.h"
 #include "mutt_window.h"
+#include "muttlib.h"
 #include "mx.h"
 #include "options.h"
 #include "protos.h"
index 4dbd13af9a4b08099bfde95336f373be417177e1..dd0bd972eb50f18371124a03e4ad05d1b2effff7 100644 (file)
--- a/status.h
+++ b/status.h
 #ifndef MUTT_STATUS_H
 #define MUTT_STATUS_H
 
+#include <stdio.h>
+
+struct Menu;
+
 /* These Config Variables are only used in status.c */
 extern struct MbTable *StatusChars;
 
+void menu_status_line(char *buf, size_t buflen, struct Menu *menu, const char *p);
+
 #endif /* MUTT_STATUS_H */