aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-12-15 07:50:04 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-12-15 07:50:04 +0800
commit33e0c3723477661731e126889a11b92b0f8248d1 (patch)
treebda967f7d0eb467a84b1456d1697b54f24f197ff
parent097aa981dad92fa08c17e717ceb1834a86437531 (diff)
downloadgsoc2013-evolution-33e0c3723477661731e126889a11b92b0f8248d1.tar.gz
gsoc2013-evolution-33e0c3723477661731e126889a11b92b0f8248d1.tar.zst
gsoc2013-evolution-33e0c3723477661731e126889a11b92b0f8248d1.zip
Set the filter driver's shell-exec callback.
2001-12-14 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_fetch_mail): Set the filter driver's shell-exec callback. svn path=/trunk/; revision=15088
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-ops.c3
-rw-r--r--mail/mail-ops.h3
3 files changed, 9 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 0b0a1ac86e..321865beb9 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-14 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-ops.c (mail_fetch_mail): Set the filter driver's shell-exec
+ callback.
+
2001-12-12 Jeffrey Stedfast <fejJ@ximian.com>
* mail-config.c (mail_config_check_service): Connect to the
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 6bb3f5b5f0..023d1781d1 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -406,6 +406,7 @@ 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);
@@ -2213,7 +2214,7 @@ static struct _mail_msg_op execute_shell_command_op = {
};
void
-mail_execute_shell_command (const char *command)
+mail_execute_shell_command (CamelFilterDriver *driver, const char *command, void *data)
{
struct _execute_shell_command_msg *m;
diff --git a/mail/mail-ops.h b/mail/mail-ops.h
index 2f28807272..262515501b 100644
--- a/mail/mail-ops.h
+++ b/mail/mail-ops.h
@@ -150,7 +150,8 @@ void mail_store_set_offline (CamelStore *store, gboolean offline,
void (*done)(CamelStore *, void *data),
void *data);
-void mail_execute_shell_command (const char *command);
+/* filter driver execute shell command async callback */
+void mail_execute_shell_command (CamelFilterDriver *driver, const char *command, void *data);
#ifdef __cplusplus
}