diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-08-11 15:47:47 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-08-11 15:47:47 +0800 |
commit | f0b6de3f0fd945e5fdaaa3d5c160e6ed94fa9ae0 (patch) | |
tree | 509bb55fdd8f49679e8878cee60a8cdd82ff8a15 /filter/filter-driver.c | |
parent | 0227bb16b26c2d59c4c2ed6495da1bcd8c3d525d (diff) | |
download | gsoc2013-evolution-f0b6de3f0fd945e5fdaaa3d5c160e6ed94fa9ae0.tar.gz gsoc2013-evolution-f0b6de3f0fd945e5fdaaa3d5c160e6ed94fa9ae0.tar.zst gsoc2013-evolution-f0b6de3f0fd945e5fdaaa3d5c160e6ed94fa9ae0.zip |
Use proper accessor function instead of poking the structure.
2000-08-11 Not Zed <NotZed@HelixCode.com>
* filter-driver.c (do_colour): Use proper accessor function
instead of poking the structure.
svn path=/trunk/; revision=4730
Diffstat (limited to 'filter/filter-driver.c')
-rw-r--r-- | filter/filter-driver.c | 7 |
1 files changed, 1 insertions, 6 deletions
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); } } |