WHERE struct ListHead TempAttachmentsList INITVAL(STAILQ_HEAD_INITIALIZER(TempAttachmentsList)); ///< List of temporary files for displaying attachments
WHERE struct ListHead UserHeader INITVAL(STAILQ_HEAD_INITIALIZER(UserHeader)); ///< List of custom headers to add to outgoing emails
-/* Lists of AttachMatch */
-WHERE struct ListHead AttachAllow INITVAL(STAILQ_HEAD_INITIALIZER(AttachAllow)); ///< List of attachment types to be counted
-WHERE struct ListHead AttachExclude INITVAL(STAILQ_HEAD_INITIALIZER(AttachExclude)); ///< List of attachment types to be ignored
-WHERE struct ListHead InlineAllow INITVAL(STAILQ_HEAD_INITIALIZER(InlineAllow)); ///< List of inline types to counted
-WHERE struct ListHead InlineExclude INITVAL(STAILQ_HEAD_INITIALIZER(InlineExclude)); ///< List of inline types to ignore
WHERE struct RegexList Alternates INITVAL(STAILQ_HEAD_INITIALIZER(Alternates)); ///< List of regexes to match the user's alternate email addresses
WHERE struct RegexList UnAlternates INITVAL(STAILQ_HEAD_INITIALIZER(UnAlternates)); ///< List of regexes to blacklist false matches in Alternates
#include "keymap.h"
#include "monitor.h"
#include "mutt_menu.h"
+#include "mutt_parse.h"
#include "mutt_window.h"
#include "mx.h"
#include "myvar.h"
int mutt_init(bool skip_sys_rc, struct ListHead *commands);
struct ConfigSet *init_config(size_t size);
-/**
- * struct AttachMatch - An attachment matching a regex
- *
- * for attachment counter
- */
-struct AttachMatch
-{
- const char *major;
- enum ContentType major_int;
- const char *minor;
- regex_t minor_regex;
-};
-
#define EXEC_SHELL "/bin/sh"
char *mutt_compile_help(char *buf, size_t buflen, enum MenuType menu, const struct Mapping *items);
#include <stdio.h>
#include "mutt/mutt.h"
#include "email/lib.h"
-#include "mutt.h"
#include "mutt_parse.h"
-#include "globals.h"
#include "mx.h"
#include "ncrypt/ncrypt.h"
+struct ListHead AttachAllow = STAILQ_HEAD_INITIALIZER(AttachAllow); ///< List of attachment types to be counted
+struct ListHead AttachExclude = STAILQ_HEAD_INITIALIZER(AttachExclude); ///< List of attachment types to be ignored
+struct ListHead InlineAllow = STAILQ_HEAD_INITIALIZER(InlineAllow); ///< List of inline types to counted
+struct ListHead InlineExclude = STAILQ_HEAD_INITIALIZER(InlineExclude); ///< List of inline types to ignore
+
/**
* mutt_parse_mime_message - Parse a MIME email
* @param m Mailbox
#ifndef MUTT_MUTT_PARSE_H
#define MUTT_MUTT_PARSE_H
+#include "mutt/queue.h"
+
struct Email;
struct Mailbox;
+/**
+ * struct AttachMatch - An attachment matching a regex for attachment counter
+ */
+struct AttachMatch
+{
+ const char *major;
+ enum ContentType major_int;
+ const char *minor;
+ regex_t minor_regex;
+};
+
+extern struct ListHead AttachAllow;
+extern struct ListHead AttachExclude;
+extern struct ListHead InlineAllow;
+extern struct ListHead InlineExclude;
+
int mutt_count_body_parts(struct Mailbox *m, struct Email *e);
void mutt_parse_mime_message(struct Mailbox *m, struct Email *e);