aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-03 06:01:03 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-03 06:01:03 +0800
commit8d4f5ab1c8b538084e80ccee917168902f92b14e (patch)
tree6092c553c3222300a04002b953ad870c73409b10 /mail/component-factory.c
parentc44b422cd64cd68a2d9b87261bdbe44fd0b61059 (diff)
downloadgsoc2013-evolution-8d4f5ab1c8b538084e80ccee917168902f92b14e.tar
gsoc2013-evolution-8d4f5ab1c8b538084e80ccee917168902f92b14e.tar.gz
gsoc2013-evolution-8d4f5ab1c8b538084e80ccee917168902f92b14e.tar.bz2
gsoc2013-evolution-8d4f5ab1c8b538084e80ccee917168902f92b14e.tar.lz
gsoc2013-evolution-8d4f5ab1c8b538084e80ccee917168902f92b14e.tar.xz
gsoc2013-evolution-8d4f5ab1c8b538084e80ccee917168902f92b14e.tar.zst
gsoc2013-evolution-8d4f5ab1c8b538084e80ccee917168902f92b14e.zip
Pass an empty flags argument to mail_tool_uri_to_folder.
2001-10-02 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (vfolder_setup_do): Pass an empty flags argument to mail_tool_uri_to_folder. (vfolder_adduri_do): Same. * mail-session.c (get_folder): Pass an empty flags argument to mail_tool_uri_to_folder. * mail-send-recv.c (receive_get_folder): Pass an empty flags argument to mail_tool_uri_to_folder. * mail-ops.c (get_folder_get): Pass the flags to mail_tool_uri_to_folder. (mail_get_folder): Now takes a flags argument. (remove_folder_get): Pass an empty flags argument to mail_tool_uri_to_folder. (mail_send_message): Pass an empty argument flag to mail_tool_uri_to_folder. (transfer_messages_transfer): Same. Destination folder should already be created by this time. * folder-info.c (do_get_info): Pass an empty flags argument to mail_tool_uri_to_folder. * importers/evolution-mbox-importer.c (folder_created_cb): Pass the CREATE flag here too. (load_file_fn): And here. (load_file_fn): And here too. * importers/evolution-outlook-importer.c (load_file_fn): Pass the CREATE flag to mail_tool_uri_to_folder. * folder-browser.c (folder_browser_new): Pass an empty flags argument. (x_evolution_message_parse): Pass an empty flags argument to mail_tool_uri_to_folder. * component-factory.c (create_folder): Pass a CREATE flag to mail_get_folder here too. (owner_set_cb): And here. (xfer_folder): Shouldn't need the CREATE flag here, so not passing any flags. (destination_folder_handle_drop): Same. * mail-local.c (mail_local_store_add_folder): Pass a CREATE flag to mail_get_folder. (reconfigure_folder_reconfigure): Pass an empty flags argument to mail_tool_uri_to_folder. * mail-tools.c (mail_tool_uri_to_folder): Take a flags argument. (mail_tool_get_local_inbox): Pass an empty flags argument to mail_tool_uri_to_folder. svn path=/trunk/; revision=13353
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 804829a491..b34fcc77d9 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -207,7 +207,8 @@ create_folder (EvolutionShellComponent *shell_component,
CORBA_exception_init (&ev);
if (!strcmp (type, "mail")) {
- mail_get_folder(physical_uri, create_folder_done, CORBA_Object_duplicate (listener, &ev), mail_thread_new);
+ mail_get_folder (physical_uri, CAMEL_STORE_FOLDER_CREATE, create_folder_done,
+ CORBA_Object_duplicate (listener, &ev), mail_thread_new);
} else {
GNOME_Evolution_ShellComponentListener_notifyResult (
listener, GNOME_Evolution_ShellComponentListener_UNSUPPORTED_TYPE, &ev);
@@ -323,7 +324,7 @@ xfer_folder (EvolutionShellComponent *shell_component,
}
camel_exception_init (&ex);
- source = mail_tool_uri_to_folder (source_physical_uri, &ex);
+ source = mail_tool_uri_to_folder (source_physical_uri, 0, &ex);
camel_exception_clear (&ex);
CORBA_exception_init (&ev);
@@ -485,7 +486,7 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *des
switch (type) {
case ACCEPTED_DND_TYPE_TEXT_URI_LIST:
- folder = mail_tool_uri_to_folder (physical_uri, NULL);
+ folder = mail_tool_uri_to_folder (physical_uri, 0, NULL);
if (!folder)
return FALSE;
@@ -527,7 +528,7 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *des
g_free (urls);
break;
case ACCEPTED_DND_TYPE_MESSAGE_RFC822:
- folder = mail_tool_uri_to_folder (physical_uri, &ex);
+ folder = mail_tool_uri_to_folder (physical_uri, 0, &ex);
if (!folder) {
camel_exception_clear (&ex);
return FALSE;
@@ -551,7 +552,7 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *des
inptr = strchr (in, ' ');
url = g_strndup (in, inptr - in);
- folder = mail_tool_uri_to_folder (url, &ex);
+ folder = mail_tool_uri_to_folder (url, 0, &ex);
g_free (url);
if (!folder) {
@@ -685,7 +686,8 @@ owner_set_cb (EvolutionShellComponent *shell_component,
for (i = 0; i < sizeof (standard_folders) / sizeof (standard_folders[0]); i++) {
*standard_folders[i].uri = g_strdup_printf ("file://%s/local/%s", evolution_dir, standard_folders[i].name);
- mail_msg_wait(mail_get_folder(*standard_folders[i].uri, got_folder, standard_folders[i].folder, mail_thread_new));
+ mail_msg_wait (mail_get_folder (*standard_folders[i].uri, CAMEL_STORE_FOLDER_CREATE,
+ got_folder, standard_folders[i].folder, mail_thread_new));
}
mail_session_enable_interaction (TRUE);