X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-mime%2Fmime.cpkg;h=ddb7a1419b9307ad293917b515a5d8e5563de1cf;hb=9d1d3eb0666af7f3f3551579601920f1bced8407;hp=1340ad442c242eaf9d571857324d26e5dbd43f53;hpb=92c3d4c767ddbc0e0c64dd6e132ce10627550580;p=apps%2Fmadmutt.git diff --git a/lib-mime/mime.cpkg b/lib-mime/mime.cpkg index 1340ad4..ddb7a14 100644 --- a/lib-mime/mime.cpkg +++ b/lib-mime/mime.cpkg @@ -54,6 +54,7 @@ const char *BodyEncodings[] = { rx_t *SpamList = NULL, *NoSpamList = NULL; string_list_t *AutoViewList, *AlternativeOrderList, *MimeLookupList; +string_list_t *Ignore, *UnIgnore, *HeaderOrderList; static char *mailcap_init(void) { @@ -64,7 +65,7 @@ static char *mailcap_init(void) return m_strdup(getenv("MAILCAPS") ?: path); } -@package Mime { +@package mod_mime { /* ** .pp ** ``$spam_separator'' controls what happens when multiple spam headers @@ -150,6 +151,38 @@ static char *mailcap_init(void) } RETURN(); }; + + void hdr_order(string_t s) { + string_list_add(&HeaderOrderList, s); + RETURN(); + }; + void unhdr_order(string_t s) { + if (m_strcmp(s, "*")) { + string_list_remove(&HeaderOrderList, s); + } else { + string_list_wipe(&HeaderOrderList); + } + RETURN(); + }; + + void ignore(string_t s) { + if (m_strcmp(s, "*")) { + string_list_remove(&UnIgnore, s); + } else { + string_list_wipe(&UnIgnore); + } + string_list_add(&Ignore, s); + RETURN(); + }; + void unignore(string_t s) { + if (m_strcmp(s, "*")) { + string_list_add(&UnIgnore, s); + string_list_remove(&Ignore, s); + } else { + string_list_wipe(&Ignore); + } + RETURN(); + }; }; /****************************************************************************/ @@ -259,7 +292,6 @@ void envelope_wipe(ENVELOPE *p) p_delete(&p->newsgroups); p_delete(&p->xref); p_delete(&p->followup_to); - p_delete(&p->x_comment_to); #endif mutt_buffer_free (&p->spam);