In Python2 Popen uses *FILE objects, which wind up buffering even though
subprocess defaults to no buffering. In Python3, subprocess streams really
are unbuffered by default, but the imaplib code assumes read is buffered. This
patch uses the default buffer size from the io module to get buffered streams
from Popen.
Much debugging work and patch by Diane Trout.
The imap protocol is too complicated to write a test for this simple
change with our current level of test infrastructure.
__version__ = "2.58"
import binascii, errno, random, re, socket, subprocess, sys, time, calendar
+from datetime import datetime, timezone, timedelta
+ from io import DEFAULT_BUFFER_SIZE
+
try:
import ssl
HAVE_SSL = True
Matias Torchinsky
Sandro Tosi
Richard Townsend
+David Townshend
Nathan Trapuzzano
Laurence Tratt
+Alberto Trevino
+Matthias Troffaes
+Tom Tromey
John Tromp
+ Diane Trout
Jason Trowbridge
Brent Tubbs
Anthony Tuininga