tldr: Can someone show me how to properly format this Python iMAP example so it works?
from https://docs.python.org/2.4/lib/imap4-example.html
<
Did you forget to specify the IMAP host and port? Use something to the effect of:
M = imaplib.IMAP4_SSL( 'imap.gmail.com' )
or,
M = imaplib.IMAP4_SSL() M.open( 'imap.gmail.com' )