projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
begin to move ui code into the lib-ui
[apps/madmutt.git]
/
commands.c
diff --git
a/commands.c
b/commands.c
index
83604ca
..
d3ee541
100644
(file)
--- a/
commands.c
+++ b/
commands.c
@@
-19,10
+19,11
@@
#include <lib-mime/mime.h>
#include <lib-mime/mime.h>
+#include <lib-ui/curses.h>
+
#include "mutt.h"
#include "enter.h"
#include "recvattach.h"
#include "mutt.h"
#include "enter.h"
#include "recvattach.h"
-#include "mutt_curses.h"
#include "mutt_menu.h"
#include "sort.h"
#include "copy.h"
#include "mutt_menu.h"
#include "sort.h"
#include "copy.h"
@@
-854,7
+855,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);
@@
-891,14
+892,14
@@
void mutt_edit_content_type (HEADER * h, BODY * b, FILE * fp)
b->force_charset |= charset_changed ? 1 : 0;
b->force_charset |= charset_changed ? 1 : 0;
- if (!is_multipart
(b) && b->parts)
+ if (!is_multipart(b) && b->parts)
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)))
mutt_parse_part (fp, b);
if (h) {
mutt_parse_part (fp, b);
if (h) {