From 96569f50b15326cc6f48447b866391798a984d3a Mon Sep 17 00:00:00 2001 From: Michael Zucci Date: Wed, 9 Aug 2000 07:22:59 +0000 Subject: (rule_match_recipients): Dont set real name if its empty for the filter name. svn path=/trunk/; revision=4647 --- mail/ChangeLog | 1 + mail/mail-autofilter.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'mail') 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 * 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); } -- cgit v1.2.3