projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace the pathetic mutt_parse_rfc822_line function with a really better
[apps/madmutt.git]
/
commands.c
diff --git
a/commands.c
b/commands.c
index
a9f3298
..
34de35e
100644
(file)
--- a/
commands.c
+++ b/
commands.c
@@
-28,7
+28,7
@@
#include "copy.h"
#include "mx.h"
#include "pager.h"
#include "copy.h"
#include "mx.h"
#include "pager.h"
-#include
"mutt_crypt.h"
+#include
<lib-crypt/crypt.h>
#include "mutt_idna.h"
#include "rfc1524.h"
#include <sys/types.h>
#include "mutt_idna.h"
#include "rfc1524.h"
#include <sys/types.h>
@@
-854,7
+854,7
@@
void mutt_edit_content_type (HEADER * h, BODY * b, FILE * fp)
return;
/* clean up previous junk */
return;
/* clean up previous junk */
-
mutt_free_parameter
(&b->parameter);
+
parameter_delete
(&b->parameter);
p_delete(&b->subtype);
mutt_parse_content_type (buf, b);
p_delete(&b->subtype);
mutt_parse_content_type (buf, b);
@@
-895,7
+895,7
@@
void mutt_edit_content_type (HEADER * h, BODY * b, FILE * fp)
mutt_free_body (&b->parts);
if (!mutt_is_message_type (b->type, b->subtype) && b->hdr) {
b->hdr->content = NULL;
mutt_free_body (&b->parts);
if (!mutt_is_message_type (b->type, b->subtype) && b->hdr) {
b->hdr->content = NULL;
-
mutt_free_header
(&b->hdr);
+
header_delete
(&b->hdr);
}
if (fp && (is_multipart (b) || mutt_is_message_type (b->type, b->subtype)))
}
if (fp && (is_multipart (b) || mutt_is_message_type (b->type, b->subtype)))