diff options
-rw-r--r-- | filter/ChangeLog | 5 | ||||
-rw-r--r-- | filter/filter-driver.c | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index 9aaad2cb22..5315178316 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,8 @@ +2000-08-11 Not Zed <NotZed@HelixCode.com> + + * filter-driver.c (do_colour): Use proper accessor function + instead of poking the structure. + 2000-08-10 Christopher James Lahey <clahey@helixcode.com> * filter-driver.c, filter-folder.c, rule-context.c, diff --git a/filter/filter-driver.c b/filter/filter-driver.c index d27bbe4acf..78145f5086 100644 --- a/filter/filter-driver.c +++ b/filter/filter-driver.c @@ -332,16 +332,11 @@ do_colour(struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterDriver * int i; char *uid; struct _FilterDriverPrivate *p = _PRIVATE(d); - CamelMessageInfo *info; if (argc>0 && argv[0]->type == ESEXP_RES_STRING) { for (i=0 ; i<p->matches->len; i++) { uid = p->matches->pdata[i]; - info = (CamelMessageInfo *)camel_folder_get_message_info(p->source, uid); - if (info) { - printf("assinging colour %s to %s\n", argv[0]->value.string, info->uid); - camel_tag_set(&info->user_tags, "colour", argv[0]->value.string); - } + camel_folder_set_message_user_tag(p->source, uid, "colour", argv[0]->value.string); } } |