https://github.com/alswl/imap-auto-forward
reading email message by IMAP/EXCHANGE protocol, forward(origin message) to another by SMTP protocol / sendmail
https://github.com/alswl/imap-auto-forward
Last synced: over 1 year ago
JSON representation
reading email message by IMAP/EXCHANGE protocol, forward(origin message) to another by SMTP protocol / sendmail
- Host: GitHub
- URL: https://github.com/alswl/imap-auto-forward
- Owner: alswl
- Created: 2017-04-03T05:38:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-14T02:17:57.000Z (over 3 years ago)
- Last Synced: 2025-03-17T00:41:26.974Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# imap-auto-forward
Reading email message by IMAP/EXCHANGE protocol, forward(origin message) to another by senmail.
## Use Case
I want using Gmail to manage a third email, but Gmail only support POP3,
do not support IMAP.
And the third email only support IMAP,
so I use this script to forward(redirect) all new message to Gmail.
## Usage
install:
```
pip3 install -r requirements.txt
```
imap:
```
// (optional)
// export IMAP_AUTO_FORWARD_DSN=your_sentry_auth_code
// (optional)
// export IMAP_AUTO_FORWARD_PASSWORD=your_imap_password
python3 imap-auto-forward.py -u username@from.com -s mail.from.com -r to@gmail.com
```
exchange:
```
// (optional)
// export EXCHANGE_AUTO_FORWARD_DSN=your_sentry_auth_code
// (optional)
// export EXCHANGE_AUTO_FORWARD_PASSWORD=your_exchange_password
python3 exchange-auto-forward.py -u username@from.com -s mail.from.com -r to@gmail.com
```