]> diplodocus.org Git - nmh/blobdiff - h/prototypes.h
Use pref_encoding() to select the default encoding for all headers.
[nmh] / h / prototypes.h
index 57e51d7b47128b74673f91ba00f6922cf9f71bc6..6db999584ac21bce99b56ce5654979f0e87c9b6a 100644 (file)
@@ -212,6 +212,23 @@ int ssequal (char *, char *);
 int stringdex (char *, char *);
 char *trimcpy (char *);
 int unputenv (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 (char *, char *);
 int vfgets (FILE *, char **);
 char *write_charset_8bit (void);