aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Zucci <zucchi@src.gnome.org>2000-08-09 15:22:59 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-08-09 15:22:59 +0800
commit96569f50b15326cc6f48447b866391798a984d3a (patch)
treeeba3283066e2057a1d83a2535a244126da88c19b
parent443b5a82a99f5b3ea9e82d7c05508c0140ee87a1 (diff)
downloadgsoc2013-evolution-96569f50b15326cc6f48447b866391798a984d3a.tar
gsoc2013-evolution-96569f50b15326cc6f48447b866391798a984d3a.tar.gz
gsoc2013-evolution-96569f50b15326cc6f48447b866391798a984d3a.tar.bz2
gsoc2013-evolution-96569f50b15326cc6f48447b866391798a984d3a.tar.lz
gsoc2013-evolution-96569f50b15326cc6f48447b866391798a984d3a.tar.xz
gsoc2013-evolution-96569f50b15326cc6f48447b866391798a984d3a.tar.zst
gsoc2013-evolution-96569f50b15326cc6f48447b866391798a984d3a.zip
(rule_match_recipients): Dont set real name if its empty for the filter name.
svn path=/trunk/; revision=4647
-rw-r--r--mail/ChangeLog1
-rw-r--r--mail/mail-autofilter.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index fbd10ed9e4..6b80ef7d27 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,6 +1,7 @@
2000-08-09 Not Zed <NotZed@HelixCode.com>
* mail-autofilter.c (filter_gui_add_from_message): Helper function to add with confirm.
+ (rule_match_recipients): Dont set real name if its empty for the filter name.
* message-list.c (on_right_click): Added menu to install vfolders/filters from message.
diff --git a/mail/mail-autofilter.c b/mail/mail-autofilter.c
index 7f1b9bc69a..77a851e9b5 100644
--- a/mail/mail-autofilter.c
+++ b/mail/mail-autofilter.c
@@ -49,7 +49,7 @@ rule_match_recipients(RuleContext *context, FilterRule *rule, CamelInternetAddre
element = filter_part_find_element(part, "recipient");
filter_input_set_value((FilterInput *)element, addr);
- namestr = g_strdup_printf("Mail to %s", real?real:addr);
+ namestr = g_strdup_printf("Mail to %s", real&&real[0]?real:addr);
filter_rule_set_name(rule, namestr);
g_free(namestr);
}