X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/96646146f2dcca09a23108ef3d9b6bedd7da8a39..28a967a12cfb0b16a136223082e07884eecba715:/h/prototypes.h diff --git a/h/prototypes.h b/h/prototypes.h index 74e66319..eefbfec5 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -191,6 +191,7 @@ int m_putenv (char *, char *); int m_rand (unsigned char *, size_t); char *m_mktemp(const char *, int *, FILE **); char *m_mktemp2(const char *, const char *, int *, FILE **); +char *get_temp_dir(); void m_unknown(m_getfld_state_t *, FILE *); int makedir (char *); char *message_id (time_t, int); @@ -350,11 +351,18 @@ int writeBase64raw (unsigned char *, size_t, unsigned char *); */ int attach(char *, char *, char *, size_t, char *, size_t, int); void clean_up_temporary_files(const char *, const char *); -char *mime_type (const char *); - +char *mime_type(const char *); +char *construct_build_directive(char *, const char *, int); /* * credentials management */ void init_credentials_file (); int nmh_get_credentials (char *, char *, int, nmh_creds_t); + +/* + * temporary file management + */ +int nmh_init(const char *argv0, int read_context); +int m_unlink(const char *); +void unregister_for_removal(int remove_files);