4482c4041eff924ed592402a2b1beeb4bf23d3b8
- Copy Cargo files first to leverage Docker layer caching - Build dependencies separately before copying source code - Use cache mounts for cargo registry to speed up builds - Fix binary path in final stage from cargo bin to target release
POP to IMAP Importer
A Rust application that downloads emails from a POP3 server and imports them into an IMAP server's INBOX.
Features
- Downloads all emails from a POP3 server
- Imports emails to the INBOX of an IMAP server
- Secure TLS connections
- Environment-based configuration
Setup
-
Copy
.env.exampleto.env:cp .env.example .env -
Edit
.envwith your server credentials:# POP3 Source Server Configuration POP3_HOST=pop.example.com POP3_PORT=995 POP3_USERNAME=your_pop3_username POP3_PASSWORD=your_pop3_password # IMAP Destination Server Configuration IMAP_HOST=imap.example.com IMAP_PORT=993 IMAP_USERNAME=your_imap_username IMAP_PASSWORD=your_imap_password
Usage
Run the application:
cargo run
Description
Languages
Rust
90.5%
Makefile
5.6%
Dockerfile
3.9%