X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=h%2Fprototypes.h;h=42767f571e00c258fc7780ff77c8c3cba41c715c;hp=848115fdb842bfd54ed659cde1575dc392cb55f0;hb=4c30d368bca8b3f108a7e86a5b890e33470cdebf;hpb=33516e5b74bb4bb5c626d4ee42bd3a7a9faaabef diff --git a/h/prototypes.h b/h/prototypes.h index 848115f..42767f5 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -112,6 +112,23 @@ int uprf(char *, char *); int vfgets(FILE *, char **); char *write_charset_8bit(void); +/* + * 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 mh_strcasecmp(const char *s1, const char *s2);