aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-autofilter.c
diff options
context:
space:
mode:
authorGediminas Paulauskas <menesis@delfi.lt>2001-04-22 06:52:56 +0800
committerGediminas Paulauskas <menesis@src.gnome.org>2001-04-22 06:52:56 +0800
commitb50306c3800b30c2cd1256ebdd8902c8a4c8486d (patch)
tree1b179a29f216d9b40cdd14d6ea9ee5e8ca469cd9 /mail/mail-autofilter.c
parentadb3761ed62ffc0fbfc840b07ef409c0a6f36f67 (diff)
downloadgsoc2013-evolution-b50306c3800b30c2cd1256ebdd8902c8a4c8486d.tar.gz
gsoc2013-evolution-b50306c3800b30c2cd1256ebdd8902c8a4c8486d.tar.zst
gsoc2013-evolution-b50306c3800b30c2cd1256ebdd8902c8a4c8486d.zip
use system = EVOLUTION_DATADIR "/file" instead of g_strdup_printf. Rename
2001-04-22 Gediminas Paulauskas <menesis@delfi.lt> * folder-browser.c, mail-autofilter.c, mail-callbacks.c, mail-ops.c, mail-summary.c, mail-vfolder.c: use system = EVOLUTION_DATADIR "/file" instead of g_strdup_printf. Rename userrules to user (and system) to be consistent. * mail-send-recv.c: set window icon to send-receive.xpm 2001-04-21 Gediminas Paulauskas <menesis@delfi.lt> * mail-summary.c: translate "Mail summary". svn path=/trunk/; revision=9490
Diffstat (limited to 'mail/mail-autofilter.c')
-rw-r--r--mail/mail-autofilter.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/mail/mail-autofilter.c b/mail/mail-autofilter.c
index e2e783342e..63dfb4e643 100644
--- a/mail/mail-autofilter.c
+++ b/mail/mail-autofilter.c
@@ -318,23 +318,22 @@ void
filter_gui_add_from_message (CamelMimeMessage *msg, int flags)
{
FilterContext *fc;
- char *userrules, *systemrules;
+ char *user, *system;
FilterRule *rule;
extern char *evolution_dir;
g_return_if_fail (msg != NULL);
fc = filter_context_new ();
- userrules = g_strdup_printf ("%s/filters.xml", evolution_dir);
- systemrules = g_strdup_printf ("%s/evolution/filtertypes.xml", EVOLUTION_DATADIR);
- rule_context_load ((RuleContext *)fc, systemrules, userrules);
+ user = g_strdup_printf ("%s/filters.xml", evolution_dir);
+ system = EVOLUTION_DATADIR "/evolution/filtertypes.xml";
+ rule_context_load ((RuleContext *)fc, system, user);
rule = filter_rule_from_message (fc, msg, flags);
filter_rule_set_source (rule, FILTER_SOURCE_INCOMING);
- rule_context_add_rule_gui ((RuleContext *)fc, rule, _("Add Filter Rule"), userrules);
- g_free (userrules);
- g_free (systemrules);
+ rule_context_add_rule_gui ((RuleContext *)fc, rule, _("Add Filter Rule"), user);
+ g_free (user);
gtk_object_unref (GTK_OBJECT (fc));
}
@@ -342,20 +341,19 @@ void
filter_gui_add_from_mlist (const char *mlist)
{
FilterContext *fc;
- char *userrules, *systemrules;
+ char *user, *system;
FilterRule *rule;
extern char *evolution_dir;
fc = filter_context_new ();
- userrules = g_strdup_printf ("%s/filters.xml", evolution_dir);
- systemrules = g_strdup_printf ("%s/evolution/filtertypes.xml", EVOLUTION_DATADIR);
- rule_context_load ((RuleContext *)fc, systemrules, userrules);
+ user = g_strdup_printf ("%s/filters.xml", evolution_dir);
+ system = EVOLUTION_DATADIR "/evolution/filtertypes.xml";
+ rule_context_load ((RuleContext *)fc, system, user);
rule = filter_rule_from_mlist(fc, mlist);
filter_rule_set_source (rule, FILTER_SOURCE_INCOMING);
- rule_context_add_rule_gui ((RuleContext *)fc, rule, _("Add Filter Rule"), userrules);
- g_free (userrules);
- g_free (systemrules);
+ rule_context_add_rule_gui ((RuleContext *)fc, rule, _("Add Filter Rule"), user);
+ g_free (user);
gtk_object_unref (GTK_OBJECT (fc));
}