Open Bug 1818382 Opened 1 year ago Updated 1 year ago

[imap-js] can't access property "length", res.attributes.messages is undefined ImapClient.jsm:720

Categories

(MailNews Core :: Networking: IMAP, defect)

defect

Tracking

(Not tracked)

People

(Reporter: mkmelin, Unassigned)

References

(Blocks 1 open bug)

Details

No direct STR atm, but I got

TypeError: can't access property "length", res.attributes.messages is undefined ImapClient.jsm:720:13
https://searchfox.org/comm-central/rev/db81589f13e9d7b1d47c2a466d19b15715dcf277/mailnews/imap/src/ImapClient.jsm#720

Some context:

mailnews.imap.1: C: 29 STATUS "Archive" (UIDNEXT MESSAGES UNSEEN) ImapClient.jsm:933:20
mailnews.imap.1: S: 28 OK [CAPABILITY IMAP4rev1 ID MOVE NAMESPACE XYMHIGHESTMODSEQ UIDPLUS LITERAL+ CHILDREN UNSELECT X-MSG-EXT OBJECTID IDLE ENABLE UIDONLY X-ALL-MAIL X-UIDONLY LIST-EXTENDED LIST-STATUS SPECIAL-USE MESSAGELIMIT=1000 PARTIAL APPENDLIMIT=41697280] AUTHENTICATE completed  ImapClient.jsm:870:18

TypeError: can't access property "length", res.attributes.messages is undefinedImapClient.jsm:720:13

Looking at https://bugzilla.mozilla.org/attachment.cgi?id=9319413 I suspect the client is handling the wrong response? Client sent the C: 20... but then the late response for authenticate S: 19 OK [CAPAB... which of course doesn't have messages.

I also saw C: 82 ID responses coming in late causing this.

You need to log in before you can comment on or make changes to this bug.