I'm working my way through Gmail access using imaplib and came across:
# Count the unread emails
status, response = imap_server.status('INBOX', "(UNSEEN)")
unreadcount = int(response[0].split()[2].strip(').,]'))
print unreadcount
I just wish to know what:
status,
does in front of the "response =". I would google it, but I have no idea what I'd even ask to find an answer for that :(.
Thanks.