send2pbsync is a bridge between Calibre-Web-Automated (CWA) and PBSync, ensuring seamless delivery of eBooks from CWA to your PocketBook by reformatting email attachments for compatibility. ππ§π
This tool automates the process of:
- Downloading
.epub
attachments from emails sent by Calibre-Web-Automated (CWA). - Repackaging them into a correctly formatted ZIP archive.
- Sending the archive to PBSync, enabling you to read your eBooks on a PocketBook device.
- Automatically fetches emails with eBooks sent by CWA.
- Reformats attachments to ensure compatibility with PBSync.
- Sends the corrected archive to PBSync via email.
- Runs periodically using a scheduler for hands-free operation.
Before setting up send2pbsync, ensure you have:
- Access to an IMAP and SMTP email account (e.g., Gmail).
- Docker installed on your system.
- Basic knowledge of environment variables.
git clone https://github.com/your-username/send2pbsync.git
cd send2pbsync
Edit the docker-compose.yaml
file and replace the placeholder values in the environment
section with your actual email credentials and settings:
environment:
- IMAP_SERVER=imap.gmail.com
- [email protected]
- IMAP_PASSWORD=your-imap-password
- SMTP_SERVER=smtp.gmail.com
- SMTP_PORT=587
- [email protected]
- SMTP_PASSWORD=your-smtp-password
- [email protected]
- SMTP_USE_TLS=True
- [email protected]
Start the application using Docker Compose:
docker-compose up -d
Check the logs to ensure everything is running smoothly:
docker logs scheduler
- The scheduler runs the send2pbsync service every 10 minutes (configurable).
- The service connects to your IMAP server, downloads
.epub
attachments from emails sent by CWA, and deletes the processed emails. - It creates a ZIP archive of the downloaded
.epub
files. - The ZIP file is sent to your PBSync email address, making it available on your PocketBook device.
- Change the Schedule: Modify the
ofelia.job-run.send2pbsync.schedule
label indocker-compose.yaml
to adjust how often the service runs (e.g.,@every 5m
for every 5 minutes). - Use a Different Email Provider: Update the
IMAP_SERVER
,SMTP_SERVER
, and related variables to match your email provider's settings.
We welcome contributions! If you'd like to improve send2pbsync, feel free to fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
If you encounter any issues or have questions, feel free to open an issue in the repository.
Happy reading! πβ¨