diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 1 | ||||
-rw-r--r-- | mail/mail-autofilter.c | 2 |
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); } |