[imapfilter-devel] trouble with matching regular expressions

Lefteris Chatzimparmpas lefcha at hellug.gr
Fri Dec 7 00:38:10 EET 2007


On Thu, Dec 06, 2007 at 11:43:36AM -0500, Jared wrote:
> Hello,
> 
> I'm having trouble getting regular expression matching working with  
> imapfilter.  I installed imapfilter from the deb package on a Ubuntu  
> Gutsy (7.10) machine.  I saw on the mailing list that this version was  
> broken, so I replaced the common.lua and mailbox.lua files from this  
> post:
> http://lists.hellug.gr/pipermail/imapfilter-devel/2007/000752.html
> 
> Testing things out, a simple rule using "contain_subject" works fine.   
> However, if I then change the rule to use "match_subject", and a  
> simple regular expression, it doesn't seem to match.  Any pointers to  
> what I'm missing is appreciated.
> 
> I have a few test messages in a folder called, "test".  One of which  
> has the subject, "the quick brown fox jumps over the lazy dog".  I'm  
> using the regex: '.*brown.*' and trying to move the matched message to  
> a folder called, "test2".
> 
> config file and debug out is below.
> 
> Thanks,
> -jared

Hello

Can you try with the attached mailbox.lua? Better get all the *.lua
files from the latest version (2.0.6) and then overwrite mailbox.lua
with the one I'm attaching.

I think their is a bug in the match_*() methods...

Unfortunately, I'll be away for about 10 days, so I won't be able to get
back to you about this... Sorry...

Hope this solves the problem, otherwise I will look into the issue when
I'll be back...

L.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailbox.lua.gz
Type: application/octet-stream
Size: 3127 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20071207/d1563bc0/attachment.obj>


More information about the Imapfilter-devel mailing list