From: Ralph Corderoy Date: Sat, 11 Nov 2017 14:28:05 +0000 (+0000) Subject: escape_addresses.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/6fdc3cdb023a8bf4e86e292ba3a748c6e7de788f?hp=dc5e5d68dc67a7313d1821605e5a0c13aed1b192 escape_addresses.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index a351a3a9..90c3c25a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/h/prototypes.h b/h/prototypes.h index a91b620e..465940a7 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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, diff --git a/sbr/escape_addresses.c b/sbr/escape_addresses.c index 6463ec61..b9632364 100644 --- a/sbr/escape_addresses.c +++ b/sbr/escape_addresses.c @@ -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 index 00000000..0302c2d6 --- /dev/null +++ b/sbr/escape_addresses.h @@ -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); diff --git a/sbr/mts.c b/sbr/mts.c index 639310b4..60e4c3c2 100644 --- 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" diff --git a/uip/replsbr.c b/uip/replsbr.c index 4c795ac8..c3b19f42 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -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"