When I fetch data using imaplib
rv, data = imap.fetch("1", '(RFC822)')
I get response of the following shape
[(b'1 (RFC822 {35661}',
b'Delivered-To: ... here goes the message' ),
b')']
What is the rationale here? Why opening (b'1 (RFC822 {35661}'
is part of the first tuple, but closing b')'
is a separate element?