aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-session.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-01-20 01:15:24 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-01-20 01:15:24 +0800
commita0bee77c3a2a0f3d071149566413b4273cc4c8de (patch)
treea8e9a314c6a45b28361c56724e09f9f5dfb269c6 /mail/mail-session.c
parentfa2e93cedc1396a3e323c3a4a1bfdfee8ac3bf53 (diff)
downloadgsoc2013-evolution-a0bee77c3a2a0f3d071149566413b4273cc4c8de.tar.gz
gsoc2013-evolution-a0bee77c3a2a0f3d071149566413b4273cc4c8de.tar.zst
gsoc2013-evolution-a0bee77c3a2a0f3d071149566413b4273cc4c8de.zip
** Fix for bug #204891
2009-01-19 Milan Crha <mcrha@redhat.com> ** Fix for bug #204891 * filtertypes.xml: * em-composer-utils.h: (em_utils_forward_message_raw): * em-composer-utils.c: (emu_forward_raw_done), (em_utils_forward_message_raw): * mail-session.c: (ms_forward_to), (class_init): Implement "forward-to" rule for message filters. Note: Be sure you've eds of revision 9956 or higher. svn path=/trunk/; revision=37101
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r--mail/mail-session.c13
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)
{