Closed numkem closed 11 years ago
I think you may want: [['HEADER', 'Keywords', 'testword']]
EDIT: Additionally, it seems Exchange's support for 'KEYWORD' searches is dismal. According to this document, the only "keyword" you can search for is one called "$MDNSent".
I tried that with every way of writting 'Keywords' and I get no results...
This is against Exchange 2010 and here is part of the header show the keywords with the show()
function that is in the README.
date: [ 'Sat, 11 Dec 2010 01:27:17 -0500' ],
'message-id': [ '<201012110627.oBB6RHK0024962@localhost>' ],
keywords: [ 'testword' ],
'content-language': [ 'en-US' ],
I don't know. If it's the same mailbox and there is no error being generated, then Exchange's IMAP implementation is just being wonky (no surprise there).
Definitly no surprises there... Why would it say that the arguement is bad tho? Is it because something isn't quoted right?
If you're referring to the 'KEYWORD' search response, see my original comment.
I was, thank you for the documentation. It's really lame on their part but not surprising. I might just have to use it like that.
Thanks for your time.
Hello,
I've been looking at using keywords with exchange to help me tag messages once they are processed and I'm running into the issue where searching by either uid or sequence number doesn't work with keywords.
I get this output when setting debug mode on :
I've also tried using
[[ 'HEADER' 'KEYWORD' 'testword' ]]
as the criteria and while it passes the checks and doesn't throw an error. I don't get any results.I also tried playing with the actual command sent to Exchage (ex. quoting the argument in various ways) to no avail.
Changing the
SEARCH KEYWORD
command toSEARCH KEYWORDS
makes exchange say this :Which makes me think that Exchange knows what
SEARCH KEYWORD
means since it's not saying the same error. I've taken a look at the implementation documentation of IMAP for Exchange and it says not so clearly that it 'should' work.Dumping the full headers of a message shows that the keywords are indeed in the headers as
keywords
.Has anyone else ran into this issue or is this a known thing that doesn't work?
Thanks.