IMAP4.search by message-id ?
Max M
maxm at mxm.dk
Wed Mar 30 02:16:15 EST 2005
Sean Dodsworth wrote:
> Can anyone tell me how to get a message's number from the message-id
> using IMAP4.search?
> I've tried this:
> resp, items = server.search(None, 'HEADER', '"Message-id"', msgID)
> but it gives me a 'bogus search criteria' error
Why do you need the 'HEADER'
Wouldn't this be enough?
resp, items = server.search(None, 'Message-id', msgID)
I am note shure if the msgId should be quoted. I assume not, as it will
allways be an integer.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
More information about the Python-list
mailing list