aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMichael Zucci <zucchi@src.gnome.org>2000-08-09 15:39:31 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-08-09 15:39:31 +0800
commit8bfd6dadb25a9ae9286ad1a6dcfa27464dd0c690 (patch)
treef139e5aa48bc186790131c11496daacb8e8193b7 /mail
parent733a8c4ccd84a8dafc2377db5bfe25bbcc3f23cb (diff)
downloadgsoc2013-evolution-8bfd6dadb25a9ae9286ad1a6dcfa27464dd0c690.tar
gsoc2013-evolution-8bfd6dadb25a9ae9286ad1a6dcfa27464dd0c690.tar.gz
gsoc2013-evolution-8bfd6dadb25a9ae9286ad1a6dcfa27464dd0c690.tar.bz2
gsoc2013-evolution-8bfd6dadb25a9ae9286ad1a6dcfa27464dd0c690.tar.lz
gsoc2013-evolution-8bfd6dadb25a9ae9286ad1a6dcfa27464dd0c690.tar.xz
gsoc2013-evolution-8bfd6dadb25a9ae9286ad1a6dcfa27464dd0c690.tar.zst
gsoc2013-evolution-8bfd6dadb25a9ae9286ad1a6dcfa27464dd0c690.zip
(rule_match_subject): was cutting ] off mailing list names.
svn path=/trunk/; revision=4649
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog1
-rw-r--r--mail/mail-autofilter.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 6b80ef7d27..7aedc1924d 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -2,6 +2,7 @@
* 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.
+ (rule_match_subject): was cutting ] off mailing list names.
* 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 77a851e9b5..4aa246666a 100644
--- a/mail/mail-autofilter.c
+++ b/mail/mail-autofilter.c
@@ -153,9 +153,9 @@ rule_match_subject(RuleContext *context, FilterRule *rule, const char *subject)
s2 = strchr(s, ']');
if (s1 && s2 && s1<s2) {
/* probably a mailing list, match on the mailing list name */
- tmp = alloca(s2-s1+1);
- memcpy(tmp, s1, s2-s1);
- tmp[s2-s1] = 0;
+ tmp = alloca(s2-s1+2);
+ memcpy(tmp, s1, s2-s1+1);
+ tmp[s2-s1+1] = 0;
g_strstrip(tmp);
rule_add_subject(context, rule, tmp);
s = s2+1;