[imapfilter-devel] 2.0.2 search syntax not working?
Lefteris Chatzimparmpas
lefcha at hellug.gr
Sun Jul 1 23:37:36 EEST 2007
Ryan Nielsen wrote:
> I'm just now giving imapfilter a try for the first time and am trying
> to use the new 2.0 config file format. Unfortunately, on two different
> IMAP servers, I am unable to get searching to work properly. Simple
> example, here's a basic config script:
>
> messages = foo['Inbox']:contain_from("bankofamerica")
> print(#messages)
> messages = match(legacy_foo, 'Inbox', {'from "bankofamerica"'})
> print(#messages)
>
> When run with imapfilter -v:
>
> [...]
>> C (3): 1004 UID SEARCH FROM "bankofamerica"
>> S (3): 1004 OK UID SEARCH completed
>> 0
This doesn't make sense, the server should report the same result as
with the next SEARCH...
>> C (3): 1006 UID SEARCH ALL (from "bankofamerica")
>> S (3): 1006 OK UID SEARCH completed
>> 115
The only difference seems to be the "ALL" search key...
According to the IMAP specs, both SEARCH queries should report the same
results...
Can you try the attached patch? You should apply it like this:
...
cd imapfilter-2.0.2
patch < patch-all.diff
...
> From what I can tell, searching with the new 2.0 syntax is busted. Am
> I missing something blatantly obvious? Should I simply revert to the
> deprecated syntax? (I'd prefer not to, since I'm just now adopting
> imapfilter.)
...
L.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-all.diff
Type: text/x-patch
Size: 497 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20070701/28b6e308/attachment.bin>
More information about the Imapfilter-devel
mailing list