projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplifications around mutt_is_message_type
[apps/madmutt.git]
/
attach.c
diff --git
a/attach.c
b/attach.c
index
5d9b51f
..
ccc0a8d
100644
(file)
--- a/
attach.c
+++ b/
attach.c
@@
-375,7
+375,7
@@
int mutt_view_attachment (FILE * fp, BODY * a, int flag, HEADER * hdr,
int unlink_tempfile = 0;
int pagerfd = -1;
int unlink_tempfile = 0;
int pagerfd = -1;
- is_message = mutt_is_message_type
(a->type, a->subtype
);
+ is_message = mutt_is_message_type
(a
);
if (is_message && a->hdr && (a->hdr->security & ENCRYPT) &&
!crypt_valid_passphrase (a->hdr->security))
return (rc);
if (is_message && a->hdr && (a->hdr->security & ENCRYPT) &&
!crypt_valid_passphrase (a->hdr->security))
return (rc);
@@
-683,7
+683,7
@@
int mutt_save_attachment (FILE * fp, BODY * m, char *path, int flags,
m->hdr &&
m->encoding != ENCBASE64 &&
m->encoding != ENCQUOTEDPRINTABLE &&
m->hdr &&
m->encoding != ENCBASE64 &&
m->encoding != ENCQUOTEDPRINTABLE &&
- mutt_is_message_type
(m->type, m->subtype
)) {
+ mutt_is_message_type
(m
)) {
/* message type attachments are written to mail folders. */
char buf[HUGE_STRING];
/* message type attachments are written to mail folders. */
char buf[HUGE_STRING];