[imapfilter-devel] Problems With First Rule
Tom Purl
tom at tompurl.com
Fri Jul 20 05:17:10 EEST 2007
On Thu, Jul 19, 2007 at 10:45:26AM +0300, Lefteris Chatzimparmpas wrote:
> Tom Purl wrote:
>> [...]
>>
>> 1004 OK LOGIN Ok.
>
> This isn't the whole debug file, is it? Because it stops just after the
> login to the server...
Yeah, I didn't paste the whole thing. I ran it again today and posted
the full ouput below (along with the output from 1.2.1).
>> I got the same output with the new version of mailbox.lua that you sent
>> to me.
>>
>> Here's the weird part, however. I run Ubuntu 6.10, and the latest
>> version of imapfilter that's available for this distribution is 1.2.1.
>> I installed that version instead and set up the following config file:
>
> Oh, it just came to me, that maybe you're using Lua 5.0.x instead of Lua
> 5.1.x. That would explain the weird behaviour. Can you run "lua -v"
> and tell us the version?
Here's my output:
$ /usr/bin/lua -v
Lua 5.1.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio
$ /usr/local/bin/lua -v
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
$ which lua
/usr/local/bin/lua
>> This actually *worked*. I can't tell the difference between the two
>> files in a functional way, however.
>
> Can you send the debug files both from version 2.0.2 and version 1.2.1?
> You can do this with "imapfilter -d" in both versions...
Here's the debug output when running the 1.2.1 version. It should (and
does) move one file with a "from" value of "tom at tompurl.com".
getting response (4):
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
* THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS]
* Courier-IMAP ready. Copyright 1998-200
5 Double Precision, Inc. See COPYING for distribution information.
sending command (4):
1000 NOOP
getting response (4):
1000 OK NOOP completed
sending command (4):
1001 CAPABILITY
getting response (4):
* CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
* THREAD=REFERENCES SORT QUOTA IDLE STARTTLS
1001 OK CAPABILITY completed
sending command (4):
1002 STARTTLS
getting response (4):
1002 OK Begin SSL/TLS negotiation now.
sending command (4):
1003 CAPABILITY
getting response (4):
* CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
* THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN
1003 OK CAPABILITY completed
sending command (4):
1004 LOGIN "myid" *
getting response (4):
1004 OK LOGIN Ok.
sending command (4):
1005 NAMESPACE
getting response (4):
* NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
1005 OK NAMESPACE completed.
namespace (4): 'INBOX.' '.'
sending command (4):
1006 SELECT "INBOX"
getting response (4):
* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)]
* Limited
* 3 EXISTS
* 1 RECENT
* OK [UIDVALIDITY 1176130619] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
1006 OK [READ-WRITE] Ok
sending command (4):
1007 UID SEARCH ALL (from "tom at tompurl.com")
getting response (4):
* SEARCH 7282
1007 OK SEARCH done.
sending command (4):
1008 CLOSE
getting response (4):
1008 OK mailbox closed.
sending command (4):
1009 SELECT "INBOX"
getting response (4):
* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)]
* Limited
* 3 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1176130619] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
1009 OK [READ-WRITE] Ok
namespace: '@Action' -> 'INBOX. at Action'
sending command (4):
100A UID COPY 7282 "INBOX. at Action"
getting response (4):
100A OK [COPYUID 1177247261 7282 663] COPY completed.
sending command (4):
100B CLOSE
getting response (4):
100B OK mailbox closed.
sending command (4):
100C SELECT "INBOX"
getting response (4):
* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)]
* Limited
* 3 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1176130619] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
100C OK [READ-WRITE] Ok
sending command (4):
100D UID STORE 7282 +FLAGS.SILENT (\Deleted)
getting response (4):
100D OK STORE completed.
sending command (4):
100E CLOSE
getting response (4):
100E OK mailbox closed.
sending command (4):
100F LOGOUT
getting response (4):
* BYE Courier-IMAP server shutting down
100F OK LOGOUT completed
And here's a test with the same message in my INBOX using the 2.0.2
version of imapfilter:
getting response (4):
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
* THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS]
* Courier-IMAP ready. Copyright 1998-200
5 Double Precision, Inc. See COPYING for distribution information.
sending command (4):
1000 NOOP
getting response (4):
1000 OK NOOP completed
sending command (4):
1001 CAPABILITY
getting response (4):
* CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
* THREAD=REFERENCES SORT QUOTA IDLE STARTTLS
1001 OK CAPABILITY completed
sending command (4):
1002 STARTTLS
getting response (4):
1002 OK Begin SSL/TLS negotiation now.
sending command (4):
1003 CAPABILITY
getting response (4):
* CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
* THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN
1003 OK CAPABILITY completed
sending command (4):
1004 LOGIN "myid" *
getting response (4):
1004 OK LOGIN Ok.
sending command (4):
1005 NAMESPACE
getting response (4):
* NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
1005 OK NAMESPACE completed.
namespace (4): 'INBOX.' '.'
sending command (4):
1006 SELECT "INBOX"
getting response (4):
* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)]
* Limited
* 3 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1176130619] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
1006 OK [READ-WRITE] Ok
sending command (4):
1007 UID SEARCH ALL FROM "tom at tompurl.com"
getting response (4):
* SEARCH 7284
1007 OK SEARCH done.
sending command (4):
1008 LOGOUT
getting response (4):
* BYE Courier-IMAP server shutting down
1008 OK LOGOUT completed
Thanks again for all of the help!
Tom Purl
More information about the Imapfilter-devel
mailing list