diff options
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r-- | mail/mail-session.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c index a627866823..4997a29db0 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -47,6 +47,7 @@ #include "e-util/e-util-private.h" #include "e-account-combo-box.h" +#include "em-composer-utils.h" #include "em-filter-context.h" #include "em-filter-rule.h" #include "em-utils.h" @@ -93,6 +94,7 @@ static gboolean lookup_addressbook(CamelSession *session, const char *name); static void ms_thread_status(CamelSession *session, CamelSessionThreadMsg *msg, const char *text, int pc); static void *ms_thread_msg_new(CamelSession *session, CamelSessionThreadOps *ops, unsigned int size); static void ms_thread_msg_free(CamelSession *session, CamelSessionThreadMsg *m); +static void ms_forward_to (CamelSession *session, CamelFolder *folder, CamelMimeMessage *message, const char *address, CamelException *ex); static void init (MailSession *session) @@ -124,6 +126,7 @@ class_init (MailSessionClass *mail_session_class) camel_session_class->thread_msg_new = ms_thread_msg_new; camel_session_class->thread_msg_free = ms_thread_msg_free; camel_session_class->thread_status = ms_thread_status; + camel_session_class->forward_to = ms_forward_to; } static CamelType @@ -618,6 +621,16 @@ static void ms_thread_status(CamelSession *session, CamelSessionThreadMsg *msg, printf("Thread status '%s' %d%%\n", text, pc); } +static void +ms_forward_to (CamelSession *session, CamelFolder *folder, CamelMimeMessage *message, const char *address, CamelException *ex) +{ + g_return_if_fail (session != NULL); + g_return_if_fail (message != NULL); + g_return_if_fail (address != NULL); + + em_utils_forward_message_raw (folder, message, address, ex); +} + char * mail_session_get_password (const char *url_string) { |