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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for socksimap-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 622e047f2138770bb2d2296cbb6777c1928764f7bcf3eb8d355a9115e88bb859 |
|
MD5 | 7c6c677f24358434173bd22e6b149ec7 |
|
BLAKE2b-256 | 396ab40ac19975b1360c1f748c564b94e309837b8a0e76a9912d1bc598692864 |