[imapfilter-devel] Searches only return first matching result? (v2.2.2)
Jesse Connell
jesse08 at gmail.com
Mon Dec 20 18:57:43 EET 2010
Thanks for the super-quick reply! Looks like I sent that in just after
you wrote to request it. Should be in the thread now.
Jesse
On 12/20/2010 11:41 AM, Lefteris Chatzimparmpas wrote:
> Hello!
>
> Can you rerun imapfilter with the -d option and send the debug.* file
> you get inside the ~/.imapfilter directory?
>
> Thanks
>
> On 12/20/2010 04:42 PM, Jesse Connell wrote:
>> Hi there,
>>
>> I've compiled and installed imapfilter 2.2.2 and I'm trying to run some
>> filters on my Microsoft Exchange account at work through davmail gateway
>> -- http://davmail.sourceforge.net/ . I'm basically connecting to an
>> IMAP server running locally, which converts the requests to Microsoft
>> moon-speak on the fly and then delivers the results.
>>
>> Most things work fine, but whenever I try any sort of search function
>> (like select_all, contain_subject, etc.) it only seems to return the
>> first message it finds that matches the criteria. Here's my testing
>> config.lua and the output I actually see:
>>
>>
>> account = IMAP {
>> server = 'localhost',
>> username = 'jesse08',
>> port = 1143
>> }
>> account.INBOX:check_status()
>> test = account.INBOX:select_all()
>> print('messages in INBOX:')
>> for _, message in ipairs(test) do
>> mailbox, uid = unpack(message)
>> print(mailbox[uid]:fetch_field('Subject:'))
>> end
>>
>>
>> Enter password for jesse08 at localhost:
>> 235 messages, 235 recent, 0 unseen, in jesse08 at localhost/INBOX.
>> messages in INBOX:
>> Subject: Tuition Exchange Program Notification for 2011-2012
>>
>>
>> I can't quite tell if it's imapfilter, davmail, or my own inexperience
>> with lua that's to blame. In davmail's defense, its running log shows
>> all messages in the INBOX being listed, and then a request for the
>> subject field of that single message. Any ideas? Thanks,
>>
>> Jesse
>> _______________________________________________
>> Imapfilter-devel mailing list
>> Imapfilter-devel at lists.hellug.gr
>> http://lists.hellug.gr/mailman/listinfo/imapfilter-devel
More information about the Imapfilter-devel
mailing list