IMAP4.search by message-id ?

2005-03-29 Thread Sean Dodsworth
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 Any ideas? -- http://mail.python.org/mailman/listinfo/python-list

Re: IMAP4.search by message-id ?

2005-03-30 Thread Sean Dodsworth
Max M wrote: > 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) &g

RE: IMAP4.search by message-id ?

2005-03-31 Thread Sean Dodsworth
Tony Meyer 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 > import imaplib i = imaplib.