IMAPListMessages error code (-1307)
Amazing. You are right on the money, and so 1307 must be about the headers. Omnis added a function in v6 that allows you add an extra param to get back other headers, even ones that you have added yourself when you use the SMTPSend command. Very cool, as now you can read a list of messages and NOT have to read the whole message, do MailSplit, just to get the subject and date sent, etc. So much faster and a good enhancement.
So I ask for X-Mailer (recognised) and X-origin (my addition) so I can decide if I want to do further actions if the email came from Omnis in the first place when I use the IMAPListMessages command.
For some reason, the X-origin header request was stopping the IMAPListMessages command, but earlier this year, all was groovy.
Take it out for now, and all fine.
Thank you for decoding the error message to back my solution.
PS. Currently in Poldark country and wondered onto the film set today.
Mike Matthews, Managing Director, Lineal Software Solutions Ltd
Apple Reseller, Microsoft Partner, SQLWorks Business Partner
phone: 01271 375999 | web: lineal.co.uk <www.lineal.co.uk/> | email: firstname.lastname@example.org <mailto:email@example.com>
> On 18 Sep 2017, at 08:57, Kelly Burgess <firstname.lastname@example.org> wrote:
> Hi Mike,
>> So what does -1307 mean, and then I might know how to fix it.
> Here’s a batch of strings from the Localizable.strings file in the wecommand.u_external file in Studio 8.0.3. Given that the documentation of the group ends with
> -1302: IMAP: the server response to the CHECK command was incorrect
> I think you can extrapolate from these strings that -1307 is probably “Received a header that was not requested in a FETCH response”.
> “COMP_RES_2299” = “Web Enabler: IMAP: bad message length in FETCH response”;
> “COMP_RES_2300” = “Web Enabler: IMAP: unrecognized data item in response when FETCHing message or headers”;
> “COMP_RES_2301” = “Web Enabler: IMAP: the server response to the NOOP command was incorrect”;
> “COMP_RES_2302” = “Web Enabler: IMAP: the server response to the CHECK command was incorrect”;
> “COMP_RES_2303” = “Web Enabler: IMAP: The length of the additional headers requested is too long”;
> “COMP_RES_2304” = “Web Enabler: IMAP: FETCH response invalid”;
> “COMP_RES_2305” = “Web Enabler: IMAP: Selected headers not returned in FETCH response when listing messages”;
> “COMP_RES_2306” = “Web Enabler: IMAP: Invalid header line in FETCH response”;
> “COMP_RES_2307” = “Web Enabler: IMAP: Received a header that was not requested in a FETCH response”;
> “COMP_RES_11004” = “Web Enabler: Sockets: Interrupted function call”;
> “COMP_RES_11009” = “Web Enabler: Sockets: Bad file descriptor”;
> Manage your list subscriptions at lists.omnis-dev.com
Manage your list subscriptions at lists.omnis-dev.com