# Libraries
import imapclient

# Local imports
import constants


def login_to_server(username, password):
  print 'Logging in to server as:', username
  server = imapclient.IMAPClient(constants.HOST, port=constants.PORT,
                                 ssl=constants.SSL, use_uid=True)
  server.login(username, password)
  return server

# Libraries
import imapclient

# Local imports
import constants


def login_to_server(username, password):
  print 'Logging in to server as:', username
  server = imapclient.IMAPClient(constants.HOST, port=constants.PORT,
                                 ssl=constants.SSL, use_uid=True)
  server.login(username, password)
  return server

# Libraries # Local imports