Skip to content

Instantly share code, notes, and snippets.

@vigneshmanix
Last active January 4, 2016 11:57
Show Gist options
  • Select an option

  • Save vigneshmanix/2043f7aa59f40d96e379 to your computer and use it in GitHub Desktop.

Select an option

Save vigneshmanix/2043f7aa59f40d96e379 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import sys;
import imaplib;
host = 'webmail.nitt.edu';
port = 143;
uname = sys.argv[1];
passwd = sys.argv[2];
conn = imaplib.IMAP4(host,port);
try:
conn.login(uname,passwd)
print 1
except conn.error:
print 0
@vigneshmanix

Copy link
Copy Markdown
Author

Usage

nitt_imap_login.py roll pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment