From f0b6de3f0fd945e5fdaaa3d5c160e6ed94fa9ae0 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 11 Aug 2000 07:47:47 +0000 Subject: Use proper accessor function instead of poking the structure. 2000-08-11 Not Zed * filter-driver.c (do_colour): Use proper accessor function instead of poking the structure. svn path=/trunk/; revision=4730 --- filter/ChangeLog | 5 +++++ filter/filter-driver.c | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'filter') 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 + + * filter-driver.c (do_colour): Use proper accessor function + instead of poking the structure. + 2000-08-10 Christopher James Lahey * 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 ; imatches->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); } } -- cgit v1.2.3