I assume that everyone who has ever used imaplib is familiar with how painful its output format is to deal with. I am wondering if anyone else has any ideas on ways it can be extended in a backward-compatible way to provide options for better parsing, handling unilateral data from the server, processing data as it comes in, etc.