]> khamidou — GitHub mirrors - imapclient.git/commit
Tests for bad data in folder_status, more robust handling
authorBen Gotow <bengotow@gmail.com>
Sat, 3 Sep 2016 02:07:47 +0000 (19:07 -0700)
committerBen Gotow <bengotow@gmail.com>
Thu, 8 Sep 2016 17:21:39 +0000 (10:21 -0700)
commit04a88c67cce77f690be7b1041eb495121a5a9a14
tree166a03d17a9d83f4d9205795c4925dd3d91d64ef
parentd74efd4715217434ea4c482a2287f9abf60a0d85
Tests for bad data in folder_status, more robust handling

In the last day we’ve seen this ValueError 249,915 times. It looks like the response can be more than two parts if A) the folder name contains spaces or B) the server decides to send us other data (or IMAPClient rolls it into the response buffer, not clear yet.) Either way, we should be able to handle these scenarios without crashing.

Relevant internal logs: https://nylas.loggly.com/search#terms=%22folder_status%20ValueError%22&from=2016-09-02T01%3A57%3A05.585Z&until=2016-09-03T01%3A57%3A05.585Z&source_group=
imapclient/imapclient.py
imapclient/test/test_imapclient.py