add some lua in the mime module as well.
[apps/madmutt.git] / lib-mime / mime.cpkg
similarity index 92%
rename from lib-mime/mime.c
rename to lib-mime/mime.cpkg
index 8f10d56..e953211 100644 (file)
  */
 
 #include <lib-lib/lib-lib.h>
-
+#include <lib-lua/lib-lua.h>
 #include "mime.h"
+@import "../lib-lua/base.cpkg"
 
 #define BOUNDARYLEN 16
-
 const char MimeSpecials[] = "@.,;:<>[]\\\"()?/= \t";
 
 const char *BodyTypes[] = {
@@ -52,6 +52,18 @@ const char *BodyEncodings[] = {
     "x-uuencoded",
 };
 
+@package Mime {
+    /*
+     ** .pp
+     ** ``$spam_separator'' controls what happens when multiple spam headers
+     ** are matched: if \fIunset\fP, each successive header will overwrite any
+     ** previous matches value for the spam label. If \fIset\fP, each successive
+     ** match will append to the previous, using ``$spam_separator'' as a
+     ** separator.
+     */
+    string_t spam_separator = m_strdup(",");
+};
+
 /****************************************************************************/
 /* rfc822 header parameters                                                 */
 /****************************************************************************/
@@ -243,3 +255,4 @@ int mutt_is_text_part(BODY * b)
     }
 }
 
+/* vim:set ft=c: */