split ml_core into MCore and MTransport modules.
[apps/madmutt.git] / lib-lua / madmutt.cpkg
index 9d1ffd7..aefb74f 100644 (file)
@@ -77,7 +77,7 @@ static const char *luaM_path_post(const char *val)
 #  define HCACHE_BACKEND "unknown"
 #endif
 
-@package madmutt {
+@package MCore {
     const string_t version    = VERSION;
     const string_t sysconfdir = SYSCONFDIR;
     const string_t bindir     = BINDIR;
@@ -86,7 +86,6 @@ static const char *luaM_path_post(const char *val)
 
     path_t dotlock  = BINDIR "/mutt_dotlock";
     path_t editor   = getenv("VISUAL") ?: getenv("EDITOR") ?: "vi";
-    path_t sendmail = SENDMAIL " -eom -oi";
     path_t shell    = madmutt_init_shell();
 
     quadopt_t quit     = M_YES;
@@ -94,6 +93,13 @@ static const char *luaM_path_post(const char *val)
     bool      beep_new = 0;
 
     const string_t pwd(void) = madmutt_pwd();
-} ml_core;
+} MCore;
+
+@package MTransport {
+    path_t sendmail = SENDMAIL " -eom -oi";
+
+    string_t dsn_notify = NULL;
+    string_t dsn_return = NULL;
+} MTransport;
 
 /* vim:set ft=c: */