After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 343450 - E-mail "start with" filter requires an extra leading space to work
E-mail "start with" filter requires an extra leading space to work
Status: RESOLVED DUPLICATE of bug 370012
Product: evolution
Classification: Applications
Component: Mailer
2.12.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: ayesha
Evolution QA team
evolution[filters]
: 349346 400304 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-05-31 00:12 UTC by Sebastien Bacher
Modified: 2012-02-09 14:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
the patch attempts to increment the pointer pointing to the the subject as long as there is a space in the beginning (394 bytes, patch)
2007-04-10 03:21 UTC, ayesha
rejected Details | Review

Description Sebastien Bacher 2006-05-31 00:12:13 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/evolution/+bug/39554

"...
It appears as if 'Subject starts with "[Bug"' doesn't work. However, 'Subject contains "[Bug"' works. It might be a problem with the "stars with" filter.
...
in evolution 2.6.1-0ubuntu7 it is the same. the filter rule
"subject start with" don't work. if i change the rule to
"contain"-condition it works fine.
..."

using a space to the filter between the actual string starting the title seems to fix the issue
Comment 1 André Klapper 2006-05-31 02:35:23 UTC
sounds a bit similar to bug 343316.
Comment 2 Jeffrey Stedfast 2006-05-31 13:29:10 UTC
Subject: foo bar
        ----

starts with " foo"

Subject:foo bar
        ---

starts with "foo"
Comment 3 Sebastien Bacher 2006-05-31 13:51:41 UTC
* start evolution
* write a new mail
* use "subject" as subject

you typed "subject", when you receive the mail the preview pane has "subject" selectable with no space before, the space added by the mailer after the ":" is a technical detail the user should not have to care about it
Comment 4 André Klapper 2006-08-01 13:59:47 UTC
confirming as per duplicate.
Comment 5 André Klapper 2006-08-01 14:00:35 UTC
*** Bug 349346 has been marked as a duplicate of this bug. ***
Comment 6 Matthew Barnes 2007-01-02 17:12:10 UTC
Confirming on Evolution 2.9.4.

This was also reported downstream:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206485

Interesting that search folders with "subject starts with" rules don't exhibit this problem.
Comment 7 Jeffrey Stedfast 2007-04-08 19:40:20 UTC
I agree (after a while thinking on it) that the filter code should strip leading lwsp
Comment 8 ayesha 2007-04-10 03:21:44 UTC
Created attachment 86086 [details] [review]
the patch attempts to increment the pointer pointing to the the subject as long as there is a space in the beginning
Comment 9 Jeffrey Stedfast 2007-04-10 14:05:38 UTC
that loop already did what you are trying to make it do :)

camel_utf8_getc() increments ptr to the end of the char it returns, if it didn't - that loop would be an infinite loop :)
Comment 10 Jeffrey Stedfast 2007-04-13 15:28:50 UTC
*** Bug 400304 has been marked as a duplicate of this bug. ***
Comment 11 Milan Crha 2007-05-17 13:02:42 UTC
Looks like a problem with compiler, when I remove keyword "inline" before function camel_utf8_getc in camel-search-private.c, then everything works like expected. With this inline declaration it works wrong.

Maybe a bug for gcc? My gcc version is:
gcc (GCC) 4.1.2 20070424 (Red Hat 4.1.2-11)
Comment 12 Milan Crha 2007-09-12 09:06:14 UTC
I fixed this issue at bug #469007, which is resolved/fixed now, and this can be marked as a duplicate of that one (because that one contains a patch for this). You can see that this works with actual Evolution (2.11.92). Feel free to close this bug.
Comment 13 Sebastien Bacher 2007-09-20 15:35:21 UTC
That's still an issue according to the ubuntu user who replied to the comment
Comment 14 Milan Crha 2007-09-21 06:07:55 UTC
Can you check, somehow, if he uses "right" version in Gutsy (with applied patch) and if he doesn't have there a preceding space in a value for which rule looks? (I meant, if he didn't forget that space in the rule because of a workaround to let it work on ancient Evolution.) Because the patch isn't there so long, it's in 2.12.0 only two weeks. And what's his architecture? This was only for 64bit, AFAIK.
Comment 15 Matthew Barnes 2007-12-17 13:24:00 UTC
I think this may be fixed now in 2.12 (see bug #370012).  Can someone confirm?
Comment 16 André Klapper 2012-02-09 14:58:49 UTC
This works correctly in 3.2.3. Closing.

*** This bug has been marked as a duplicate of bug 370012 ***