]> diplodocus.org Git - nmh/commitdiff
escape_addresses.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 14:28:05 +0000 (14:28 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:29 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/escape_addresses.c
sbr/escape_addresses.h [new file with mode: 0644]
sbr/mts.c
uip/replsbr.c

index a351a3a..90c3c25 100644 (file)
@@ -375,6 +375,7 @@ noinst_HEADERS = \
     sbr/context_save.h \
     sbr/ctype-checked.h \
     sbr/error.h \
+    sbr/escape_addresses.h \
     sbr/ext_hook.h \
     sbr/fdcompare.h \
     sbr/folder_addmsg.h \
index a91b620..465940a 100644 (file)
@@ -70,9 +70,6 @@ int decode_qp(unsigned char byte1, unsigned char byte2) CONST;
 int encode_rfc2047(const char *name, char **value, int encoding,
                   const char *charset);
 
-void escape_display_name (char *, size_t);
-void escape_local_part (char *, size_t);
-
 /*
  * Print null-terminated PROMPT to and flush standard output.  Read answers from
  * standard input until one matches an entry in SWITCHES.  When one matches,
index 6463ec6..b963236 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "escape_addresses.h"
 #include "h/utils.h"
 
 static void escape_component (char *name, size_t namesize, char *chars);
diff --git a/sbr/escape_addresses.h b/sbr/escape_addresses.h
new file mode 100644 (file)
index 0000000..0302c2d
--- /dev/null
@@ -0,0 +1,8 @@
+/* escape_addresses.h -- Escape address components, hopefully per RFC 5322.
+ *
+ * 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. */
+
+void escape_display_name(char *, size_t);
+void escape_local_part(char *, size_t);
index 639310b..60e4c3c 100644 (file)
--- a/sbr/mts.c
+++ b/sbr/mts.c
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "escape_addresses.h"
 #include "context_find.h"
 #include "error.h"
 #include "h/utils.h"
index 4c795ac..c3b19f4 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/escape_addresses.h"
 #include "sbr/pidstatus.h"
 #include "sbr/arglist.h"
 #include "sbr/error.h"