rename a bunch of modules
[apps/madmutt.git] / imap / utf7.c
index ae194e6..ca40c8d 100644 (file)
@@ -208,10 +208,10 @@ bail:
 
 void imap_utf7_encode (char **s)
 {
-  if (MCharset.charset) {
+  if (mod_cset.charset) {
     char *t = m_strdup(*s);
 
-    if (!mutt_convert_string (&t, MCharset.charset, "utf-8", 0)) {
+    if (!mutt_convert_string (&t, mod_cset.charset, "utf-8", 0)) {
       char *u7 = utf8_to_utf7 (t, strlen (t), NULL, 0);
       p_delete(s);
       *s = u7;
@@ -222,10 +222,10 @@ void imap_utf7_encode (char **s)
 
 void imap_utf7_decode (char **s)
 {
-  if (MCharset.charset) {
+  if (mod_cset.charset) {
     char *t = utf7_to_utf8 (*s, m_strlen(*s), 0, 0);
 
-    if (t && !mutt_convert_string (&t, "utf-8", MCharset.charset, 0)) {
+    if (t && !mutt_convert_string (&t, "utf-8", mod_cset.charset, 0)) {
       p_delete(s);
       *s = t;
     }