[imapfilter-devel] Problems With First Rule

Tom Purl tom at tompurl.com
Thu Jul 19 03:24:49 EEST 2007


On Thu, Jul 19, 2007 at 01:07:43AM +0300, Lefteris Chatzimparmpas wrote:
> Hello Tom,

Thanks for the quick reply!

> It looks like the search didn't find any messages, and that's why no
> messages are moved... To be sure of that, you can run imapfilter with
> the -d option, and look for the debug file in ~/.imapfilter/debug.*
> You can check there the results from the SEARCH FROM query sent to the
> server, or sent the debug file here.

Here's the debug output:

    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.

> But since someone else had some similar problem, and didn't respond to
> my proposed solutions, maybe you could try replacing the mailbox.lua
> file with the one I'm attaching, and tell us if that helped.  

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:

    options.timeout = 120
    options.subscribe = true

    account1 = {
        server = 'mail.tompurl.com',
        username = 'myid',
        password = 'secret',
    }

    test = {
        'from "tom at tompurl.com"'
    }

    results = match(account1, 'INBOX', test)
    move(account1, 'INBOX', account1, '@Action', results)

This actually *worked*.  I can't tell the difference between the two
files in a functional way, however.  

Thanks again for the help!

Tom Purl




More information about the Imapfilter-devel mailing list