projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops :)
[apps/madmutt.git]
/
handler.c
diff --git
a/handler.c
b/handler.c
index
fe2a0f7
..
e7ca176
100644
(file)
--- a/
handler.c
+++ b/
handler.c
@@
-1259,7
+1259,7
@@
static int external_body_handler (BODY * b, STATE * s)
void mutt_decode_attachment (BODY * b, STATE * s)
{
int istext = mutt_is_text_part (b);
void mutt_decode_attachment (BODY * b, STATE * s)
{
int istext = mutt_is_text_part (b);
- iconv_t cd =
(iconv_t) (-1)
;
+ iconv_t cd =
MUTT_ICONV_ERROR
;
Quotebuf[0] = '\0';
Quotebuf[0] = '\0';
@@
-1268,7
+1268,7
@@
void mutt_decode_attachment (BODY * b, STATE * s)
const char *charset = mutt_get_parameter ("charset", b->parameter);
if (!option (OPTSTRICTMIME) && !charset)
const char *charset = mutt_get_parameter ("charset", b->parameter);
if (!option (OPTSTRICTMIME) && !charset)
- charset =
mutt_get_first_charset
(AssumedCharset);
+ charset =
charset_getfirst
(AssumedCharset);
if (charset && Charset)
cd = mutt_iconv_open (Charset, charset, M_ICONV_HOOK_FROM);
}
if (charset && Charset)
cd = mutt_iconv_open (Charset, charset, M_ICONV_HOOK_FROM);
}
@@
-1298,7
+1298,7
@@
void mutt_decode_attachment (BODY * b, STATE * s)
break;
}
break;
}
- if (cd !=
(iconv_t) (-1)
)
+ if (cd !=
MUTT_ICONV_ERROR
)
iconv_close (cd);
}
iconv_close (cd);
}