aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2001-01-03 09:48:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-03 09:48:59 +0800
commit71bf4380a14b21d61b228255df2aeb014e25cdb4 (patch)
treefcc43c823d331d8c0191f641f17cd9df28896937 /filter
parenta16344fff4780b6b1c5d8c2d6531963e1fe07d52 (diff)
downloadgsoc2013-evolution-71bf4380a14b21d61b228255df2aeb014e25cdb4.tar.gz
gsoc2013-evolution-71bf4380a14b21d61b228255df2aeb014e25cdb4.tar.zst
gsoc2013-evolution-71bf4380a14b21d61b228255df2aeb014e25cdb4.zip
Set the 'dirty' flag - this should fix the problem of flags not being set
2001-01-02 Jeffrey Stedfast <fejj@helixcode.com> * filter-driver.c (do_flag): Set the 'dirty' flag - this should fix the problem of flags not being set (or, more precisely, synced). (filter_driver_filter_message): Here too. svn path=/trunk/; revision=7224
Diffstat (limited to 'filter')
-rw-r--r--filter/ChangeLog7
-rw-r--r--filter/filter-driver.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 671960400c..9e931c4294 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,10 @@
+2001-01-02 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * filter-driver.c (do_flag): Set the 'dirty' flag - this should
+ fix the problem of flags not being set (or, more precisely,
+ synced).
+ (filter_driver_filter_message): Here too.
+
2000-12-21 Jeffrey Stedfast <fejj@helixcode.com>
* filter-message-search.c (header_contains): Use
diff --git a/filter/filter-driver.c b/filter/filter-driver.c
index deeb075d11..502fe7ebcc 100644
--- a/filter/filter-driver.c
+++ b/filter/filter-driver.c
@@ -442,7 +442,7 @@ do_flag (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterDriver *d
d(fprintf (stderr, "setting flag\n"));
if (argc == 1 && argv[0]->type == ESEXP_RES_STRING) {
- p->info->flags |= camel_system_flag (argv[0]->value.string);
+ p->info->flags |= camel_system_flag (argv[0]->value.string) | CAMEL_MESSAGE_FOLDER_FLAGGED;
filter_driver_log (driver, FILTER_LOG_ACTION, "Set %s flag", argv[0]->value.string);
}
@@ -761,7 +761,7 @@ filter_driver_filter_message (FilterDriver *driver, CamelMimeMessage *message, C
/* *Now* we can set the DELETED flag... */
if (p->deleted)
- info->flags = info->flags | CAMEL_MESSAGE_DELETED;
+ info->flags = info->flags | CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_FOLDER_FLAGGED;
if (freeinfo)
camel_message_info_free (info);