* src/imap.c
[claws.git] / src / utils.h
index bc4e79615668fa924a0b0e52cb432dd6e915c43c..0383a780aaeab616b42bfeceb84627d1055f5ced 100644 (file)
@@ -292,6 +292,12 @@ gchar *trim_string                 (const gchar    *str,
 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);
@@ -302,6 +308,7 @@ gchar *get_mbox_cache_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);
 
@@ -325,16 +332,35 @@ 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[]);