[imapfilter-devel] Searches only return first matching result? (v2.2.2)
Jesse Connell
jesse08 at gmail.com
Mon Dec 20 16:42:48 EET 2010
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
More information about the Imapfilter-devel
mailing list