use my own APIS for headers, parameters and so on
[apps/madmutt.git] / main.c
diff --git a/main.c b/main.c
index 56030ee..e8f4ef3 100644 (file)
--- a/main.c
+++ b/main.c
@@ -588,9 +588,9 @@ int main (int argc, char **argv)
     case 'b':
     case 'c':
       if (!msg)
-        msg = mutt_new_header ();
+        msg = header_new();
       if (!msg->env)
-        msg->env = mutt_new_envelope ();
+        msg->env = envelope_new();
       if (i == 'b')
         msg->env->bcc = rfc822_parse_adrlist (msg->env->bcc, optarg);
       else
@@ -793,13 +793,13 @@ int main (int argc, char **argv)
       mutt_flushinp ();
 
     if (!msg)
-      msg = mutt_new_header ();
+      msg = header_new();
 
     if (draftFile)
       infile = draftFile;
     else {
       if (!msg->env)
-        msg->env = mutt_new_envelope ();
+        msg->env = envelope_new();
 
       for (i = optind; i < argc; i++) {
         if (url_check_scheme (argv[i]) == U_MAILTO)