use my own APIS for headers, parameters and so on
[apps/madmutt.git] / buffy.c
diff --git a/buffy.c b/buffy.c
index 105e809..6dd5457 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -100,13 +100,13 @@ static int test_last_status_new (FILE * f)
   if (fseeko_last_message (f) == -1)
     return (0);
 
-  hdr = mutt_new_header ();
+  hdr = header_new();
   tmp_envelope = mutt_read_rfc822_header (f, hdr, 0, 0);
   if (!(hdr->read || hdr->old))
     result = 1;
 
-  mutt_free_envelope (&tmp_envelope);
-  mutt_free_header (&hdr);
+  envelope_delete(&tmp_envelope);
+  header_delete(&hdr);
 
   return result;
 }