[imapfilter-devel] Searches only return first matching result? (v2.2.2)

Lefteris Chatzimparmpas lefcha at hellug.gr
Mon Dec 20 19:10:46 EET 2010


Hello!

Yes, I've seen your other mail.

The problem is that this server, probably the gateway, returns multiple
untagged "* SEARCH" responses instead of just one, unlike what 99% of
the software out there does.  Although from a first look it seems that
this is supported by the IMAP specification.

So I'll have to implement this in imapfilter.  I'll send you a patch
that you can try soon, and probably a new release will follow, since
there are some other minor patches waiting in my queue for some time
now.

Thanks for reporting this!


On 12/20/2010 06:57 PM, Jesse Connell wrote:
> 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
> _______________________________________________
> 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