]> diplodocus.org Git - nmh/commitdiff
fmt_rfc2047.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 17:33:36 +0000 (17:33 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:32 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/fmt_rfc2047.c
sbr/fmt_rfc2047.h [new file with mode: 0644]
sbr/fmt_scan.c
uip/mhfixmsg.c
uip/mhparse.c
uip/picksbr.c

index 3d1353b..2797949 100644 (file)
@@ -385,6 +385,7 @@ noinst_HEADERS = \
     sbr/escape_addresses.h \
     sbr/ext_hook.h \
     sbr/fdcompare.h \
+    sbr/fmt_rfc2047.h \
     sbr/folder_addmsg.h \
     sbr/folder_delmsgs.h \
     sbr/folder_free.h \
index 5f8f8e0..dfc4e51 100644 (file)
@@ -16,19 +16,6 @@ char *etcpath(char *) NONNULL(1);
 struct msgs_array;
 
 char *concat (const char *, ...) ENDNULL;
-int decode_rfc2047 (char *, char *, size_t);
-
-/*
- * Decode two characters into their quoted-printable representation.
- *
- * Arguments are:
- *
- * byte1       - First character of Q-P representation
- * byte2       - Second character of Q-P representation
- *
- * Returns the decoded value, -1 if the conversion failed.
- */
-int decode_qp(unsigned char byte1, unsigned char byte2) CONST;
 
 /*
  * Encode a message header using RFC 2047 encoding.  If the message contains
index 6609389..2fe63e5 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "fmt_rfc2047.h"
 #include "check_charset.h"
 #include "h/utils.h"
 #ifdef HAVE_ICONV
diff --git a/sbr/fmt_rfc2047.h b/sbr/fmt_rfc2047.h
new file mode 100644 (file)
index 0000000..8b6ec09
--- /dev/null
@@ -0,0 +1,19 @@
+/* fmt_rfc2047.h -- decode RFC-2047 header format 
+ *
+ * This code is Copyright (c) 2017, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information. */
+
+/*
+ * Decode two characters into their quoted-printable representation.
+ *
+ * Arguments are:
+ *
+ * byte1       - First character of Q-P representation
+ * byte2       - Second character of Q-P representation
+ *
+ * Returns the decoded value, -1 if the conversion failed.
+ */
+int decode_qp(unsigned char byte1, unsigned char byte2) CONST;
+
+int decode_rfc2047(char *, char *, size_t);
index 7400087..3c4c8d7 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "h/mh.h"
+#include "fmt_rfc2047.h"
 #include "uprf.h"
 #include "context_find.h"
 #include "error.h"
index 68c1bf7..dd0d8a2 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/fmt_rfc2047.h"
 #include "sbr/cpydata.h"
 #include "sbr/trimcpy.h"
 #include "sbr/m_convert.h"
index d4a239c..110ed4e 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/fmt_rfc2047.h"
 #include "sbr/uprf.h"
 #include "sbr/check_charset.h"
 #include "sbr/getcpy.h"
index 346dcc7..aff2fea 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/fmt_rfc2047.h"
 #include "sbr/brkstring.h"
 #include "sbr/ambigsw.h"
 #include "sbr/error.h"