projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cosmetics
[apps/madmutt.git]
/
recvcmd.c
diff --git
a/recvcmd.c
b/recvcmd.c
index
a8e4b6b
..
0c99da8
100644
(file)
--- a/
recvcmd.c
+++ b/
recvcmd.c
@@
-32,7
+32,7
@@
static short check_msg (BODY * b, short err)
{
static short check_msg (BODY * b, short err)
{
- if (!mutt_is_message_type
(b->type, b->subtype
)) {
+ if (!mutt_is_message_type
(b
)) {
if (err)
mutt_error _("You may only bounce message/rfc822 parts.");
if (err)
mutt_error _("You may only bounce message/rfc822 parts.");
@@
-239,8
+239,7
@@
static HEADER *find_common_parent (ATTACHPTR ** idx, short idxlen,
break;
while (--i >= 0) {
break;
while (--i >= 0) {
- if (mutt_is_message_type
- (idx[i]->content->type, idx[i]->content->subtype)) {
+ if (mutt_is_message_type(idx[i]->content)) {
nchildren = count_tagged_children (idx, idxlen, i);
if (nchildren == nattach)
return idx[i]->content->hdr;
nchildren = count_tagged_children (idx, idxlen, i);
if (nchildren == nattach)
return idx[i]->content->hdr;
@@
-278,8
+277,7
@@
static HEADER *find_parent (ATTACHPTR ** idx, short idxlen, BODY * cur,
if (cur) {
for (i = 0; i < idxlen; i++) {
if (cur) {
for (i = 0; i < idxlen; i++) {
- if (mutt_is_message_type
- (idx[i]->content->type, idx[i]->content->subtype)
+ if (mutt_is_message_type(idx[i]->content)
&& is_parent (i, idx, idxlen, cur))
parent = idx[i]->content->hdr;
if (idx[i]->content == cur)
&& is_parent (i, idx, idxlen, cur))
parent = idx[i]->content->hdr;
if (idx[i]->content == cur)
@@
-329,8
+327,7
@@
static int mutt_copy_body (FILE * fp, BODY ** tgt, BODY * src)
if (src->filename) {
use_disp = 1;
m_strcpy(tmp, sizeof(tmp), src->filename);
if (src->filename) {
use_disp = 1;
m_strcpy(tmp, sizeof(tmp), src->filename);
- }
- else {
+ } else {
use_disp = 0;
tmp[0] = '\0';
}
use_disp = 0;
tmp[0] = '\0';
}
@@
-543,21
+540,15
@@
static void attach_forward_bodies (FILE * fp, HEADER * hdr,
}
mutt_forward_trailer (tmpfp);
}
mutt_forward_trailer (tmpfp);
-
- fclose (tmpfp);
- tmpfp = NULL;
+ m_fclose(&tmpfp);
/* now that we have the template, send it. */
ci_send_message (flags, tmphdr, tmpbody, NULL, parent);
return;
bail:
/* now that we have the template, send it. */
ci_send_message (flags, tmphdr, tmpbody, NULL, parent);
return;
bail:
-
- if (tmpfp) {
- fclose (tmpfp);
- mutt_unlink (tmpbody);
- }
-
+ m_fclose(&tmpfp);
+ mutt_unlink(tmpbody);
header_delete(&tmphdr);
}
header_delete(&tmphdr);
}
@@
-651,7
+642,7
@@
static void attach_forward_msgs (FILE * fp, HEADER * hdr __attribute__ ((unused)
}
}
}
}
}
}
-
fclose (
tmpfp);
+
m_fclose(&
tmpfp);
}
else if (rc == M_YES) { /* do MIME encapsulation - we don't need to do much here */
last = &tmphdr->content;
}
else if (rc == M_YES) { /* do MIME encapsulation - we don't need to do much here */
last = &tmphdr->content;
@@
-921,12
+912,12
@@
void mutt_attach_reply (FILE * fp, HEADER * hdr,
copy_problematic_attachments (fp, &tmphdr->content, idx, idxlen,
0) == NULL) {
header_delete(&tmphdr);
copy_problematic_attachments (fp, &tmphdr->content, idx, idxlen,
0) == NULL) {
header_delete(&tmphdr);
-
fclose (
tmpfp);
+
m_fclose(&
tmpfp);
return;
}
}
return;
}
}
-
fclose (
tmpfp);
+
m_fclose(&
tmpfp);
if (ci_send_message (flags, tmphdr, tmpbody, NULL, parent) == 0)
mutt_set_flag (Context, hdr, M_REPLIED, 1);
if (ci_send_message (flags, tmphdr, tmpbody, NULL, parent) == 0)
mutt_set_flag (Context, hdr, M_REPLIED, 1);