aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-01-08 08:48:54 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-01-08 08:48:54 +0800
commit1cca6b24335a9de963ced4b6127f4558ed19cf48 (patch)
tree0484e61f01c9c16cf6e87f5f0d9558ce424d09c3 /mail/mail-ops.c
parente96bfc58ca850606a7c787636bc6e787266e6598 (diff)
downloadgsoc2013-evolution-1cca6b24335a9de963ced4b6127f4558ed19cf48.tar.gz
gsoc2013-evolution-1cca6b24335a9de963ced4b6127f4558ed19cf48.tar.zst
gsoc2013-evolution-1cca6b24335a9de963ced4b6127f4558ed19cf48.zip
Renamed. (mail_config_get_new_mail_notify_sound_file): Renamed.
2002-01-07 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_set_new_mail_notify_sound_file): Renamed. (mail_config_get_new_mail_notify_sound_file): Renamed. * mail-accounts.c (notify_radio_toggled): Replace EXEC with PLAY_SOUND. (construct): renamed the exec_command stuff to play_sound. * main.c (main): Init and shutdown gnome_sound. * mail-ops.c (fetch_mail_fetch): Don't do any new-mail notification here. (filter_folder_filter): call camel_filter_driver_flush. * mail-session.c (main_get_filter_driver): Set the filter-driver exec_func here instead. * mail-ops.c (mail_fetch_mail): Don't set the filter-driver exec_func here. svn path=/trunk/; revision=15263
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 8a3b4076df..a8b515c832 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -120,6 +120,7 @@ filter_folder_filter (struct _mail_msg *mm)
folder_uids = uids = camel_folder_get_uids (folder);
camel_filter_driver_filter_folder (m->driver, folder, m->cache, uids, m->delete, &mm->ex);
+ camel_filter_driver_flush (m->driver, &mm->ex);
if (folder_uids)
camel_folder_free_uids (folder, folder_uids);
@@ -255,7 +256,7 @@ fetch_mail_fetch (struct _mail_msg *mm)
{
struct _fetch_mail_msg *m = (struct _fetch_mail_msg *)mm;
struct _filter_mail_msg *fm = (struct _filter_mail_msg *)mm;
- int count, i;
+ int i;
if (m->cancel)
camel_operation_register (m->cancel);
@@ -347,22 +348,6 @@ fetch_mail_fetch (struct _mail_msg *mm)
if (m->cancel)
camel_operation_unregister (m->cancel);
- count = camel_filter_driver_get_filtered_count (fm->driver);
- camel_filter_driver_reset_filtered_count (fm->driver);
-
- if (count > 0) {
- switch (mail_config_get_new_mail_notify ()) {
- case MAIL_CONFIG_NOTIFY_BEEP:
- gdk_beep ();
- break;
- case MAIL_CONFIG_NOTIFY_EXEC:
- mail_execute_shell_command (fm->driver, mail_config_get_new_mail_notify_command (), NULL);
- break;
- default:
- break;
- }
- }
-
/* we unref this here as it may have more work to do (syncing
folders and whatnot) before we are really done */
/* should this be cancellable too? (i.e. above unregister above) */
@@ -422,7 +407,6 @@ mail_fetch_mail (const char *source, int keep, const char *type, CamelOperation
fm->driver = camel_session_get_filter_driver (session, type, NULL);
camel_filter_driver_set_folder_func (fm->driver, get_folder, get_data);
- camel_filter_driver_set_shell_exec_func (fm->driver, mail_execute_shell_command, NULL);
if (status)
camel_filter_driver_set_status_func (fm->driver, status, status_data);