# Connect to IMAP through Socks
## Dependencies
- PySocks 1.7.1+
## Installation
```bash
pip install socksimap
```
or
```bash
pip install git+https://github.com/optinsoft/socksimap.git
```
## Usage
```python
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()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/optinsoft/socksimap",
"name": "socksimap",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "socks,imap",
"author": "optinsoft",
"author_email": "optinsoft@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/69/73/72122f0a79170853414ccccc9f4b8a8636e0df954851e616f6610758cf0f/socksimap-1.0.1.tar.gz",
"platform": null,
"description": "# Connect to IMAP through Socks\r\n\r\n## Dependencies\r\n\r\n- PySocks 1.7.1+\r\n\r\n## Installation\r\n\r\n```bash\r\npip install socksimap\r\n```\r\n\r\nor\r\n\r\n```bash\r\npip install git+https://github.com/optinsoft/socksimap.git\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nfrom socksimap import SocksIMAP4_SSL\r\n\r\nemail_address = 'YOUR_ACCOUNT@hotmail.com'\r\npassword = 'YOUR_PASSWORD'\r\nimap_server = 'outlook.office365.com'\r\nimap_port = 993\r\nsocks_addr = '127.0.0.1'\r\nsocks_port = 1080\r\nsocks_type = 'socks5'\r\n\r\nimap = SocksIMAP4_SSL(host=imap_server, port=imap_port, timeout=15,\r\n proxy_addr=socks_addr, proxy_port=socks_port, proxy_type=socks_type)\r\nimap.login(email_address, password)\r\nimap.logout()\r\n\r\n```\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Connect to IMAP through Socks",
"version": "1.0.1",
"project_urls": {
"Homepage": "https://github.com/optinsoft/socksimap"
},
"split_keywords": [
"socks",
"imap"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "396ab40ac19975b1360c1f748c564b94e309837b8a0e76a9912d1bc598692864",
"md5": "7c6c677f24358434173bd22e6b149ec7",
"sha256": "622e047f2138770bb2d2296cbb6777c1928764f7bcf3eb8d355a9115e88bb859"
},
"downloads": -1,
"filename": "socksimap-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7c6c677f24358434173bd22e6b149ec7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3858,
"upload_time": "2023-08-18T05:40:45",
"upload_time_iso_8601": "2023-08-18T05:40:45.852171Z",
"url": "https://files.pythonhosted.org/packages/39/6a/b40ac19975b1360c1f748c564b94e309837b8a0e76a9912d1bc598692864/socksimap-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "697372122f0a79170853414ccccc9f4b8a8636e0df954851e616f6610758cf0f",
"md5": "fb873c97bcbd5cc8018eae1b1f7d779b",
"sha256": "19efc33d809672710274c681eca470f1f607878645b94f9ed3f910cbea221954"
},
"downloads": -1,
"filename": "socksimap-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "fb873c97bcbd5cc8018eae1b1f7d779b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3001,
"upload_time": "2023-08-18T05:40:47",
"upload_time_iso_8601": "2023-08-18T05:40:47.043458Z",
"url": "https://files.pythonhosted.org/packages/69/73/72122f0a79170853414ccccc9f4b8a8636e0df954851e616f6610758cf0f/socksimap-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-18 05:40:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "optinsoft",
"github_project": "socksimap",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "socksimap"
}