sbr/cpydgst.h \
sbr/ctype-checked.h \
sbr/discard.h \
+ sbr/encode_rfc2047.h \
sbr/error.h \
sbr/escape_addresses.h \
sbr/ext_hook.h \
char *concat (const char *, ...) ENDNULL;
-/*
- * Encode a message header using RFC 2047 encoding. If the message contains
- * no non-ASCII characters, then leave the header as-is.
- *
- * Arguments include:
- *
- * name - Message header name
- * value - Message header content; must point to allocated memory
- * (may be changed if encoding is necessary)
- * encoding - Encoding type. May be one of CE_UNKNOWN (function chooses
- * the encoding), CE_BASE64 or CE_QUOTED
- * charset - Charset used for encoding. If NULL, obtain from system
- * locale.
- *
- * Returns 0 on success, any other value on failure.
- */
-
-int encode_rfc2047(const char *name, char **value, int encoding,
- const char *charset);
-
/*
* Print null-terminated PROMPT to and flush standard output. Read answers from
* standard input until one matches an entry in SWITCHES. When one matches,
*/
#include "h/mh.h"
+#include "encode_rfc2047.h"
#include "check_charset.h"
#include "error.h"
#include "h/mhparse.h"
--- /dev/null
+/* encode_rfc2047.h -- encode message headers using RFC 2047 encoding.
+ *
+ * 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. */
+
+/*
+ * Encode a message header using RFC 2047 encoding. If the message contains
+ * no non-ASCII characters, then leave the header as-is.
+ *
+ * Arguments include:
+ *
+ * name - Message header name
+ * value - Message header content; must point to allocated memory
+ * (may be changed if encoding is necessary)
+ * encoding - Encoding type. May be one of CE_UNKNOWN (function chooses
+ * the encoding), CE_BASE64 or CE_QUOTED
+ * charset - Charset used for encoding. If NULL, obtain from system
+ * locale.
+ *
+ * Returns 0 on success, any other value on failure.
+ */
+
+int encode_rfc2047(const char *, char **, int, const char *);
*/
#include "h/mh.h"
+#include "sbr/encode_rfc2047.h"
#include "sbr/copyip.h"
#include "sbr/cpydata.h"
#include "sbr/trimcpy.h"