projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify pop code further.
[apps/madmutt.git]
/
imap
/
utf7.c
diff --git
a/imap/utf7.c
b/imap/utf7.c
index
e9ae15d
..
ae194e6
100644
(file)
--- a/
imap/utf7.c
+++ b/
imap/utf7.c
@@
-7,11
+7,7
@@
* please see the file GPL in the top level source directory.
*/
* please see the file GPL in the top level source directory.
*/
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <lib-lib/mem.h>
+#include <lib-lib/lib-lib.h>
#include "mutt.h"
#include "charset.h"
#include "mutt.h"
#include "charset.h"
@@
-212,10
+208,10
@@
bail:
void imap_utf7_encode (char **s)
{
void imap_utf7_encode (char **s)
{
- if (
C
harset) {
+ if (
MCharset.c
harset) {
char *t = m_strdup(*s);
char *t = m_strdup(*s);
- if (!mutt_convert_string (&t,
Charset, "UTF
-8", 0)) {
+ if (!mutt_convert_string (&t,
MCharset.charset, "utf
-8", 0)) {
char *u7 = utf8_to_utf7 (t, strlen (t), NULL, 0);
p_delete(s);
*s = u7;
char *u7 = utf8_to_utf7 (t, strlen (t), NULL, 0);
p_delete(s);
*s = u7;
@@
-226,10
+222,10
@@
void imap_utf7_encode (char **s)
void imap_utf7_decode (char **s)
{
void imap_utf7_decode (char **s)
{
- if (
C
harset) {
+ if (
MCharset.c
harset) {
char *t = utf7_to_utf8 (*s, m_strlen(*s), 0, 0);
char *t = utf7_to_utf8 (*s, m_strlen(*s), 0, 0);
- if (t && !mutt_convert_string (&t, "
UTF-8", C
harset, 0)) {
+ if (t && !mutt_convert_string (&t, "
utf-8", MCharset.c
harset, 0)) {
p_delete(s);
*s = t;
}
p_delete(s);
*s = t;
}