From 33e0c3723477661731e126889a11b92b0f8248d1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 14 Dec 2001 23:50:04 +0000 Subject: Set the filter driver's shell-exec callback. 2001-12-14 Jeffrey Stedfast * mail-ops.c (mail_fetch_mail): Set the filter driver's shell-exec callback. svn path=/trunk/; revision=15088 --- mail/ChangeLog | 5 +++++ mail/mail-ops.c | 3 ++- mail/mail-ops.h | 3 ++- 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 + + * mail-ops.c (mail_fetch_mail): Set the filter driver's shell-exec + callback. + 2001-12-12 Jeffrey Stedfast * 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 } -- cgit v1.2.3