Skip to content

Instantly share code, notes, and snippets.

@teward

teward/chaos Secret

Created April 11, 2017 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teward/79dcdac64a950ffda8feecc4132ff1e6 to your computer and use it in GitHub Desktop.
Save teward/79dcdac64a950ffda8feecc4132ff1e6 to your computer and use it in GitHub Desktop.
evil
import imaplibext
import unittest
class TestIMAPMethods(unittest.TestCase):
def test_imap4_plain(self):
try:
conn = imaplibext.IMAP4('mail-server', 143)
except:
conn = None
self.assertIsNotNone(conn)
self.assertEqual(conn.state, 'NONAUTH')
def test_imap4_ssl(self):
try:
conn = imaplibext.IMAP4_SSL('mail-server', 993)
except:
conn = None
self.assertIsNotNone(conn)
self.assertEqual(conn.state, 'NONAUTH')
if __name__ == '__main__':
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment