aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2006-02-08 19:51:32 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2006-02-08 19:51:32 +0800
commitf6e0e26a6febd0c934a166437bb344f2dbb735a9 (patch)
treee0020bed35ced9e71df75bc9c015f844c4645707 /mail/em-utils.c
parentea9e711fe9b31a61fa9ace5dd5d84740d216f182 (diff)
downloadgsoc2013-evolution-f6e0e26a6febd0c934a166437bb344f2dbb735a9.tar.gz
gsoc2013-evolution-f6e0e26a6febd0c934a166437bb344f2dbb735a9.tar.zst
gsoc2013-evolution-f6e0e26a6febd0c934a166437bb344f2dbb735a9.zip
s/int/guint/g for 1-bit bitfield. Remove cruft use guint for 1-bit
2006-01-09 Kjartan Maraas <kmaraas@gnome.org> * em-account-editor.h: s/int/guint/g for 1-bit bitfield. * em-composer-utils.c: (em_utils_redirect_message): Remove cruft * em-folder-tree.c: (emft_drop_target): use guint for 1-bit bitfield and rename a variable with a name clash. * em-folder-utils.c: (em_folder_utils_rename_folder): Rename var to avoid name clashes. * em-folder-view.c: guint for 1-bit bitfields. * em-folder-view.h: Same as above. * em-format-html-print.h: Again. * em-format-html.c: (efh_text_html), (efh_multipart_related): Add comments * em-format.c: (emf_multipart_alternative): Add comment about using var that is passed in rather than a local variable. * em-inline-filter.c: (emif_scan): Remove unused var. Mark code static. * em-mailer-prefs.h: guint for 1-bit bitfields. * em-migrate.c: (em_migrate_folder): mark a struct static. remove unused var * em-subscribe-editor.c: guint for 1-bit bitfield * em-utils.c: remove unused function * em-vfolder-rule.c: mark array static * importers/mail-importer.c: (decode_status): Remove unused code. Use guint for 1-bit bitfield. * mail-autofilter.c: (rule_from_message): rename a variable * mail-component.c: guint for 1-bit bitfield * mail-folder-cache.c: (update_1folder): remove unused code * mail-mt.c: mark some structs static * message-list.c: (message_list_select_uid), (ml_value_to_string), (ml_tree_value_at), (find_next_undeleted), (build_tree), (build_flat): Remove unused code and fix some format specifiers. svn path=/trunk/; revision=31448
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index ccc93ea224..eed1a3b49a 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -136,44 +136,6 @@ em_utils_prompt_user(GtkWindow *parent, const char *promptkey, const char *tag,
return button == GTK_RESPONSE_YES;
}
-
-char *
-em_utils_temp_save_attachments (GSList *attachments)
-{
- char *path = NULL;
- GSList *selected;
-
- path = e_mkdtemp("evolution-attachments-XXXXXX");
-
- for ( selected = attachments; selected != NULL; selected = selected->next) {
- const char *file_name;
- char *safe_name = NULL;
- char *file_path;
- CamelMimePart *part = (CamelMimePart *)((EAttachment *)selected->data)->body;
-
- file_name = camel_mime_part_get_filename(part);
- if (file_name == NULL) {
- file_name = _("attachment");
- } else {
- safe_name = g_strdup(file_name);
- e_filename_make_safe(safe_name);
- file_name = safe_name;
- }
-
- file_path = g_build_filename (path, file_name, NULL);
-
- if (!g_file_test(file_path, (G_FILE_TEST_EXISTS)))
- mail_save_part(part, file_path, NULL, NULL);
- else
- g_warning ("Could not save %s. File already exists", file_path);
-
- g_free (file_path);
- g_free (safe_name);
- }
-
- return path;
-}
-
/**
* em_utils_uids_copy:
* @uids: array of uids