[kdepim-users] Monitoring my mailing list threads in KMail

Ingo Klöcker kloecker at kde.org
Mon Oct 27 22:32:00 GMT 2008


On Monday 27 October 2008, Dexter Filmore wrote:
> Am Montag, 27. Oktober 2008 19:56:43 schrieb Anne Wilson:
> > On Monday 27 October 2008 06:26:31 Dexter Filmore wrote:
> > > > What about creating a filter based on a header content, such as
> > > >
> > > > Anywhere in Headers     Contains     References:
> > > > <200810172341.01704.Dexter.Filmore at gmx.de>
> > >
> > > That would only match *this* thread, right?
> > > I now set up a regex filter for References and my email, so I'm
> > > posting this to see if it works.
> > > Can someone reply please?
> >
> > Yes, you'd have to make a filter for every thread you want to
> > watch, which would be a pain.  It would work, I'm sure, but....
> >
> > If yoiu do get a solution please be sure to post it here, to help
> > others
> >
> > Anne
>
> I now set up the filter to mark the message as watched if:
>
> -"from" contains my email address
>
> OR
>
> the headers match the regex
> References\:*Dexter\.Filmore\@gmx\.de*

This regular expression does not match what you want it to match.

In regular expressions '*' is not a wildcard (as in filename patterns), 
but a multiplier. It means "zero or more occurrences of the preceding 
character (or other regex entity)". If you want to match anything you 
have to use '.*'.

If you want to know the complete syntax for regular expressions 
understood by KMail have a look at:
  http://doc.trolltech.com/4.4/qregexp.html#introduction

> but somehow this doesn't work.

I suggest to use
  [References] [matches regexp] "Dexter\.Filmore\@gmx\.de"

Since "matches regexp" always looks for matching parts of the text of a 
header you can omit wildcards at start and end of the regular 
expression.


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdepim-users/attachments/20081027/7a36e1df/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM users mailing list
kdepim-users at kde.org
https://mail.kde.org/mailman/listinfo/kdepim-users


More information about the kdepim-users mailing list