[imapfilter-devel] combining two rules

jonas at geiregat.org jonas at geiregat.org
Tue Feb 20 11:14:37 EET 2007


On Tue, Feb 20, 2007 at 09:22:24AM +0100, Michael Skibbe wrote:
> On Tuesday 20 February 2007 09:13, jonas at geiregat.org wrote:
> > Hello,
> >
> > I'm trying to combine two rules, at first I was only using one rule (To)
> > but I noticed I also needed a second rule (Cc) when combining them
> > nothing seems to happen.
> > This is the rule:
> >
> > l_debian_user = {
> > 	'to "debian-user at lists.debian.org"',
> > 	'cc "debian-user at lists.debian.org"'
> > }
> >
> > using the result to move message around:
> >
> > res = match(geiregat, 'INBOX', l_debian_user)
> >
> > move(geiregat, 'INBOX', geiregat, 'l_debian_user', l_debian_user)
> 
> look in the man page for "invert = true,"
> 

Now I've got some weird bug, even if I delete the invert = true, I just
added it's still happening.

imapfilter -v output:

S (3): * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.
See COPYING for distribution information.
C (3): 1000 CAPABILITY
S (3): 1000 OK CAPABILITY completed
C (3): 1001 STARTTLS
S (3): 1001 OK Begin SSL/TLS negotiation now.
C (3): 1002 CAPABILITY
S (3): 1002 OK CAPABILITY completed
C (3): 1003 LOGIN "jonas at geiregat.org" *
S (3): 1003 OK LOGIN Ok.
C (3): 1004 NAMESPACE
S (3): 1004 OK NAMESPACE completed.
C (3): 1005 SELECT "INBOX"
S (3): 1005 OK [READ-WRITE] Ok
C (3): 1006 UID SEARCH ALL (to "users at openoffice.org")
S (3): 1006 OK SEARCH done.
C (3): 1007 CLOSE
S (3): 1007 OK mailbox closed.
C (3): 1008 SELECT "INBOX"
S (3): 1008 OK [READ-WRITE] Ok
C (3): 1009 UID SEARCH ALL OR (to "debian-user at lists.debian.org") (cc
"debian-user at lists.debian.org")
S (3): 1009 OK SEARCH done.
C (3): 100A CLOSE
S (3): 100A OK mailbox closed.
C (3): 100B SELECT "INBOX"
S (3): 100B OK [READ-WRITE] Ok
imapfilter: /usr/share/imapfilter/interface.lua:665: attempt to perform
arithmetic on local `z' (a string value)

I'm using version 1.2.1




More information about the Imapfilter-devel mailing list