X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ebc80d39510fbd9557cbea587e4f969436488746..03e153a00cefc6ad1f2f73c6f3c78aec6d67a602:/h/prototypes.h diff --git a/h/prototypes.h b/h/prototypes.h index 89ba298f..97c6cc13 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -234,26 +234,6 @@ char *m_name (int); void m_unknown(m_getfld_state_t *, FILE *); -/* - * Return a MIME content-type string for the specified file. - * - * If the system supports it, will use the "file" command to determine - * the appropriate content-type. Otherwise it will try to determine the - * content-type from the suffix. If that fails, the file will be scanned - * and either assigned a MIME type of text/plain or application/octet-stream - * depending if binary content is present. - * - * Arguments: - * - * filename - The name of the file to determine the MIME type of. - * - * Returns a pointer to a content-type string (which may include MIME - * parameters, such as charset). Returns a NULL if it cannot determine - * the MIME type of the file. Returns allocated storage that must be - * free'd. - */ -char *mime_type(const char *filename); - /* * Clear the screen, using the appropriate entry from the terminfo database */ @@ -365,22 +345,6 @@ int ssequal (const char *, const char *); 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 **);