Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/as1100k/mailbridge
Mail Bridge is a simple Python program that let you choose what mailbox (i.e. Outlook or Gmail) you want to use for storage of all your emails.
https://github.com/as1100k/mailbridge
Last synced: 8 days ago
JSON representation
Mail Bridge is a simple Python program that let you choose what mailbox (i.e. Outlook or Gmail) you want to use for storage of all your emails.
- Host: GitHub
- URL: https://github.com/as1100k/mailbridge
- Owner: AS1100K
- License: mit
- Created: 2024-02-03T16:42:02.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-05T10:03:49.000Z (10 months ago)
- Last Synced: 2024-04-29T10:04:08.865Z (7 months ago)
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mail Bridge
Mail Bridge is a simple Python program that let you choose what mailbox _(i.e. Outlook or Gmail)_ you want to use for storage of all your emails.# Installation
1. Create a `compose.yml` file:
```yaml
services:
mailbridge:
container_name: mailbridge
image: adityaji/mailbridge
volumes:
- /path/to/your/config:/app/config
environment:
O_EMAIL_USERNAME: "[email protected]"
O_PASSWORD: "your_very_secure_outlook_password"
G_EMAIL_USERNAME: "[email protected]"
G_PASSWORD: "your_very_secure_gmail_password"
```
2. Create `config/config.yml`:
```yaml
save_emails_in: outlook
delete_emails_after_transfer: true
sync_unread_emails: true
sync_emails_folder:
- Inbox
- Draft
- All Mail
save_emails_folder:
- Inbox
- Inbox.Draft
- Archive
```
3. Run the container
```bash
docker compose up -d
```# Configuring you own `config.yml`
| Parameter | Use case | Values | Required |
|------------------------------|------------------------------------------------------------|----------------------|----------|
| save_emails_in | Mailbox you want to save all your new emails in | `outlook` or `gmail` | `True` |
| delete_emails_after_transfer | Delete the emails after tranfering into your other mailbox | `true` or `false` | `True` |
| sync_unread_emails | To transfer only unread emails | `true` | `True` |
| sync_emails_folder | Email folder from which emails will be transferred | `Array` | `True` |
| save_emails_folder | Email folder to which emails will be transferred | `Array` | `True` |_**NOTE: `sync_emails_folder` and `save_emails_folder` must be in same order from top to bottom as you intend them to work.**_