]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_rfc2047.c
Add basic support for the STLS command in POP
[nmh] / sbr / fmt_rfc2047.c
index d98b50081ce3dd1abe7e3a870c8241a5264027ab..8022c2f69939e3b39e58777bffa8c028a9560665 100644 (file)
@@ -5,8 +5,10 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "fmt_rfc2047.h"
+#include "check_charset.h"
+#include "h/utils.h"
 #ifdef HAVE_ICONV
 #  include <iconv.h>
 #endif
@@ -91,7 +93,9 @@ decode_rfc2047 (char *str, char *dst, size_t dstlen)
     if (!strchr (str, '='))
        return 0;
 
+#ifdef HAVE_ICONV
     bool use_iconv = false; /* are we converting encoding with iconv? */
+#endif
     bool between_encodings = false;
     bool equals_pending = false;
     for (p = str, q = dst; *p; p++) {