I use emailjs-imap-client (3.0.7) in order to get back some emails from a Dovecot server (2.3.2.1) on a Node (v11.x). It seems that the login runs correctly, but the fetch fails with the error : item.toUpperCase is not a function (see below).
Thanks in advance for the support
Fred
[DEBUG][...] Connecting to mail.voxvalues.com : 993
[DEBUG][...] Entering state: 1
[DEBUG][...] Socket opened, waiting for greeting from the server...
[DEBUG][...] S: OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN] Dovecot (Ubuntu) ready.
[DEBUG][...] Entering state: 2
[DEBUG][...] Updating id...
[DEBUG][...] C: W1 ID ("name" "emailjs-imap-client")
[DEBUG][...] S: ID ("name" "Dovecot")
[DEBUG][...] S: W1 OK ID completed.
[DEBUG][...] Server id updated! [object Object]
[DEBUG][...] Logging in...
[DEBUG][...] C: W2 login "( 24B string )" "( value hidden )"
[DEBUG][...] S: W2 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE] Logged in
[DEBUG][...] Entering state: 3
[DEBUG][...] Login successful, post-auth capabilites updated! IMAP4REV1,SASL-IR,LOGIN-REFERRALS,ID,ENABLE,IDLE,SORT,SORT=DISPLAY,THREAD=REFERENCES,THREAD=REFS,THREAD=ORDEREDSUBJECT,MULTIAPPEND,URL-PARTIAL,CATENATE,UNSELECT,CHILDREN,NAMESPACE,UIDPLUS,LIST-EXTENDED,I18NLEVEL=1,CONDSTORE,QRESYNC,ESEARCH,ESORT,SEARCHRES,WITHIN,CONTEXT=SEARCH,LIST-STATUS,BINARY,MOVE,SNIPPET=FUZZY,LITERAL+,NOTIFY,SPECIAL-USE
[DEBUG][...] Connection established, ready to roll!
[DEBUG][...] Fetching messages 1:10 from INBOX ...
[...] [ERROR] ... TypeError: item.toUpperCase is not a function
[DEBUG][...] Entering state: 5
[DEBUG][...] Closing connection...
Hi
I use emailjs-imap-client (3.0.7) in order to get back some emails from a Dovecot server (2.3.2.1) on a Node (v11.x). It seems that the login runs correctly, but the fetch fails with the error : item.toUpperCase is not a function (see below).
Thanks in advance for the support
Fred
[DEBUG][...] Connecting to mail.voxvalues.com : 993 [DEBUG][...] Entering state: 1 [DEBUG][...] Socket opened, waiting for greeting from the server... [DEBUG][...] S: OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN] Dovecot (Ubuntu) ready. [DEBUG][...] Entering state: 2 [DEBUG][...] Updating id... [DEBUG][...] C: W1 ID ("name" "emailjs-imap-client") [DEBUG][...] S: ID ("name" "Dovecot") [DEBUG][...] S: W1 OK ID completed. [DEBUG][...] Server id updated! [object Object] [DEBUG][...] Logging in... [DEBUG][...] C: W2 login "( 24B string )" "( value hidden )" [DEBUG][...] S: W2 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE] Logged in [DEBUG][...] Entering state: 3 [DEBUG][...] Login successful, post-auth capabilites updated! IMAP4REV1,SASL-IR,LOGIN-REFERRALS,ID,ENABLE,IDLE,SORT,SORT=DISPLAY,THREAD=REFERENCES,THREAD=REFS,THREAD=ORDEREDSUBJECT,MULTIAPPEND,URL-PARTIAL,CATENATE,UNSELECT,CHILDREN,NAMESPACE,UIDPLUS,LIST-EXTENDED,I18NLEVEL=1,CONDSTORE,QRESYNC,ESEARCH,ESORT,SEARCHRES,WITHIN,CONTEXT=SEARCH,LIST-STATUS,BINARY,MOVE,SNIPPET=FUZZY,LITERAL+,NOTIFY,SPECIAL-USE [DEBUG][...] Connection established, ready to roll! [DEBUG][...] Fetching messages 1:10 from INBOX ... [...] [ERROR] ... TypeError: item.toUpperCase is not a function [DEBUG][...] Entering state: 5 [DEBUG][...] Closing connection...