GList *uri_list_extract_filenames (const gchar *uri_list);
void decode_uri (gchar *decoded_uri,
const gchar *encoded_uri);
+gint scan_mailto_url (const gchar *mailto,
+ gchar **to,
+ gchar **cc,
+ gchar **bcc,
+ gchar **subject,
+ gchar **body);
/* return static strings */
gchar *get_home_dir (void);
gchar *get_mime_tmp_dir (void);
gchar *get_template_dir (void);
gchar *get_header_cache_dir (void);
+gchar *get_tmp_dir (void);
gchar *get_tmp_file (void);
gchar *get_domain_name (void);
#define is_file_or_fifo_exist(file) file_exist(file, TRUE)
gint change_dir (const gchar *dir);
+gint make_dir (const gchar *dir);
gint make_dir_hier (const gchar *dir);
gint remove_all_files (const gchar *dir);
gint remove_numbered_files (const gchar *dir,
guint first,
guint last);
+gint remove_numbered_files_not_in_list(const gchar *dir,
+ GSList *numberlist);
gint remove_all_numbered_files (const gchar *dir);
+gint remove_expired_files (const gchar *dir,
+ guint hours);
gint remove_dir_recursive (const gchar *dir);
+gint append_file (const gchar *src,
+ const gchar *dest,
+ gboolean keep_backup);
gint copy_file (const gchar *src,
- const gchar *dest);
+ const gchar *dest,
+ gboolean keep_backup);
gint move_file (const gchar *src,
+ const gchar *dest,
+ gboolean overwrite);
+gint copy_file_part (FILE *fp,
+ off_t offset,
+ size_t length,
+ const gchar *dest);
+gint canonicalize_file (const gchar *src,
const gchar *dest);
+gint canonicalize_file_replace (const gchar *file);
gint change_file_mode_rw (FILE *fp,
const gchar *file);
FILE *my_tmpfile (void);
FILE *str_open_as_stream (const gchar *str);
+gint str_write_to_file (const gchar *str,
+ const gchar *file);
+gchar *file_read_to_str (const gchar *file);
/* process execution */
gint execute_async (gchar *const argv[]);