Skip to main content

Connect to IMAP through Socks

Project description

Connect to IMAP through Socks

Dependencies

  • PySocks 1.7.1+

Installation

pip install socksimap

or

pip install git+https://github.com/optinsoft/socksimap.git

Usage

from socksimap import SocksIMAP4_SSL

email_address = 'YOUR_ACCOUNT@hotmail.com'
password = 'YOUR_PASSWORD'
imap_server = 'outlook.office365.com'
imap_port = 993
socks_addr = '127.0.0.1'
socks_port = 1080
socks_type = 'socks5'

imap = SocksIMAP4_SSL(host=imap_server, port=imap_port, timeout=15,
                      proxy_addr=socks_addr, proxy_port=socks_port, proxy_type=socks_type)
imap.login(email_address, password)
imap.logout()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

socksimap-1.0.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

socksimap-1.0.1-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page