mattia95 Posted August 31, 2018 Share Posted August 31, 2018 Hi!I'm trying to run this python code on tommy: import imaplibimport email mail = imaplib.IMAP4_SSL('imap.gmail.com')mail.login('email@example.com', 'mypwd')x,y=mail.status('INBOX','(MESSAGES UNSEEN)')messages=int(re.search('MESSAGES\s+(\d+)',y).group(1))unseen=int(re.search('UNSEEN\s+(\d+)',y).group(1))print messagesprint unseen It doesn't execute it because it doen't print anything. Can you help me?Simpler codes with only a print execute well Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.