sbr/makedir.h \
sbr/message_id.h \
sbr/mime_type.h \
+ sbr/unquote.h \
thirdparty/jsmn/jsmn.h \
uip/mhfree.h \
uip/mhoutsbr.h \
int stringdex (char *, char *);
char *trimcpy (char *);
-/*
- * Remove quotes and quoted-pair sequences from RFC-5322 atoms.
- *
- * Currently the actual algorithm is simpler than it technically should
- * be: any quotes are simply eaten, unless they're preceded by the escape
- * character (\). This seems to be sufficient for our needs for now.
- *
- * Arguments:
- *
- * input - The input string
- * output - The output string; is assumed to have at least as much
- * room as the input string. At worst the output string will
- * be the same size as the input string; it might be smaller.
- *
- */
-void unquote_string(const char *input, char *output);
int uprf (const char *, const char *);
int vfgets (FILE *, char **);
#include <h/fmt_scan.h>
#include "h/tws.h"
#include "h/utils.h"
+#include "unquote.h"
/*
* This doesn't try to support all of the myriad date-time formats
#include <h/mhparse.h>
#include <h/addrsbr.h>
#include <h/utils.h>
+#include "unquote.h"
/*
* List of headers that contain addresses and as a result require special
#include <h/tws.h>
#include <h/fmt_compile.h>
#include <h/utils.h>
+#include "unquote.h"
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
*/
#include <h/mh.h>
+#include "unquote.h"
/*
* Remove quotes (and handle escape strings) from RFC 5322 quoted-strings.
--- /dev/null
+/* unquote.h -- Handle quote removal and quoted-pair strings on
+ * RFC 2822-5322 atoms.
+ *
+ * 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.
+ */
+
+/* Remove quotes and quoted-pair sequences from RFC-5322 atoms.
+ *
+ * Currently the actual algorithm is simpler than it technically should
+ * be: any quotes are simply eaten, unless they're preceded by the escape
+ * character (\). This seems to be sufficient for our needs for now.
+ *
+ * Arguments:
+ *
+ * input - The input string
+ * output - The output string; is assumed to have at least as much
+ * room as the input string. At worst the output string
+ * will be the same size as the input string; it might be
+ * smaller. */
+void unquote_string(const char *input, char *output);