aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-03-13 02:27:45 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-03-13 02:27:45 +0800
commit3f727f063b1e13a89588f9cd1e5cf45a89c391e1 (patch)
tree379fc5060d1e8e0db70fbb7e7c1b1907179430cd /mail/mail-ops.c
parente38174d76c6aad5d3f177c2a7e2ff2611941df9a (diff)
downloadgsoc2013-evolution-3f727f063b1e13a89588f9cd1e5cf45a89c391e1.tar
gsoc2013-evolution-3f727f063b1e13a89588f9cd1e5cf45a89c391e1.tar.gz
gsoc2013-evolution-3f727f063b1e13a89588f9cd1e5cf45a89c391e1.tar.bz2
gsoc2013-evolution-3f727f063b1e13a89588f9cd1e5cf45a89c391e1.tar.lz
gsoc2013-evolution-3f727f063b1e13a89588f9cd1e5cf45a89c391e1.tar.xz
gsoc2013-evolution-3f727f063b1e13a89588f9cd1e5cf45a89c391e1.tar.zst
gsoc2013-evolution-3f727f063b1e13a89588f9cd1e5cf45a89c391e1.zip
remove junk learning thread, it's handled in camel-folder.c:folder_changed
2004-03-11 Radek Doulik <rodo@ximian.com> * mail-ops.c: remove junk learning thread, it's handled in camel-folder.c:folder_changed now * em-folder-view.c (emfv_popup_mark_junk): use em_folder_view_mark_selected, set junk, junk-learn and seen flags (emfv_popup_mark_nojunk): similar, reset junk, set junk-learn flags svn path=/trunk/; revision=25046
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c85
1 files changed, 0 insertions, 85 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 99a7367378..ca2027c25d 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -2349,88 +2349,3 @@ mail_execute_shell_command (CamelFilterDriver *driver, int argc, char **argv, vo
gnome_execute_async_fds (NULL, argc, argv, TRUE);
}
-
-/* [Un]mark junk flag */
-
-struct _mark_junk_mail_msg {
- struct _mail_msg msg;
-
- CamelFolder *folder;
- GPtrArray *uids;
- gboolean junk;
-};
-
-static char *
-mark_junk_describe (struct _mail_msg *mm, int complete)
-{
- return g_strdup (_("Changing junk status"));
-}
-
-static void
-mark_junk_mark (struct _mail_msg *mm)
-{
- struct _mark_junk_mail_msg *m = (struct _mark_junk_mail_msg *) mm;
- CamelJunkPlugin *csp = ((CamelService *)m->folder->parent_store)->session->junk_plugin;
- gboolean commit_reports = FALSE;
- void (*report)(CamelJunkPlugin *, CamelMimeMessage *);
- int i;
-
- if (csp == NULL)
- return;
-
- /* FIXME: This should probably be implictly handled by the
- folder when you apply the junk bit, e.g. at sync time. */
-
- if (m->junk)
- report = camel_junk_plugin_report_junk;
- else
- report = camel_junk_plugin_report_notjunk;
-
- for (i=0; i<m->uids->len; i++) {
- CamelMimeMessage *msg = camel_folder_get_message(m->folder, m->uids->pdata[i], NULL);
-
- if (msg) {
- report(csp, msg);
- commit_reports = TRUE;
- camel_object_unref(msg);
- }
- }
-
- if (commit_reports)
- camel_junk_plugin_commit_reports(csp);
-}
-
-static void
-mark_junk_marked (struct _mail_msg *mm)
-{
-}
-
-static void
-mark_junk_free (struct _mail_msg *mm)
-{
- struct _mark_junk_mail_msg *m = (struct _mark_junk_mail_msg *)mm;
-
- camel_object_unref(m->folder);
- em_utils_uids_free(m->uids);
-}
-
-static struct _mail_msg_op mark_junk_op = {
- mark_junk_describe,
- mark_junk_mark,
- mark_junk_marked,
- mark_junk_free,
-};
-
-void
-mail_mark_junk(CamelFolder *folder, GPtrArray *uids, gboolean junk)
-{
- struct _mark_junk_mail_msg *m;
-
- m = mail_msg_new(&mark_junk_op, NULL, sizeof (*m));
- m->folder = folder;
- camel_object_ref(folder);
- m->uids = uids;
- m->junk = junk;
-
- e_thread_put(mail_thread_queued, (EMsg *) m);
-}