Add support for the iso-8859-8-i encoding
[claws.git] / src / codeconv.h
index 5856d876ecf21fa246f21033a33806e5bbff54c0..9cf2596b8d68e284e8635e14b4fc4bd41d369d36 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2009 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@
 #define __CODECONV_H__
 
 #ifdef HAVE_CONFIG_H
-#  include "config.h"
+#include "claws-features.h"
 #endif
 
 #include <glib.h>
@@ -69,6 +69,7 @@ typedef enum
        C_WINDOWS_1257,
        C_WINDOWS_1258,
        C_KOI8_R,
+       C_MACCYR,
        C_KOI8_T,
        C_KOI8_U,
        C_ISO_2022_JP,
@@ -115,6 +116,7 @@ struct _CodeConverter
 #define CS_ISO_8859_6          "ISO-8859-6"
 #define CS_ISO_8859_7          "ISO-8859-7"
 #define CS_ISO_8859_8          "ISO-8859-8"
+#define CS_ISO_8859_8_I        "ISO-8859-8-I"
 #define CS_ISO_8859_9          "ISO-8859-9"
 #define CS_ISO_8859_10         "ISO-8859-10"
 #define CS_ISO_8859_11         "ISO-8859-11"
@@ -141,6 +143,8 @@ struct _CodeConverter
 #define CS_WINDOWS_1257                "Windows-1257"
 #define CS_WINDOWS_1258                "Windows-1258"
 #define CS_KOI8_R              "KOI8-R"
+#define CS_X_MACCYR            "x-mac-cyrillic"
+#define CS_MACCYR              "Mac-Cyrillic"
 #define CS_KOI8_T              "KOI8-T"
 #define CS_KOI8_U              "KOI8-U"
 #define CS_ISO_2022_JP         "ISO-2022-JP"
@@ -168,6 +172,7 @@ struct _CodeConverter
 #define CS_WINDOWS_874         "Windows-874"
 #define CS_GEORGIAN_PS         "GEORGIAN-PS"
 #define CS_TCVN5712_1          "TCVN5712-1"
+#define CS_X_VIET_VPS          "X-VIET-VPS"
 
 #define C_INTERNAL             C_UTF_8
 #define CS_INTERNAL            CS_UTF_8
@@ -196,7 +201,8 @@ const gchar *conv_get_outgoing_charset_str  (void);
 const gchar *conv_get_current_locale           (void);
 
 gchar *conv_unmime_header              (const gchar    *str,
-                                         const gchar   *default_encoding);
+                                         const gchar   *default_encoding,
+                                         gboolean       addr_field);
 void conv_encode_header                        (gchar          *dest,
                                         gint            len,
                                         const gchar    *src,