• R David Murray's avatar
    Merge: #17443: Fix buffering in IMAP4_stream. · 7889944b
    R David Murray authored
    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.
    7889944b
ACKS 19.3 KB