feat: initialize newsletter project with IMAP email processing and Discord integration
- Add Cargo.toml for project dependencies - Create Dockerfile for building and running the application - Add docker-compose configuration for service management - Implement email monitoring and processing in main.rs - Parse emails and send notifications to Discord - Include configuration file for IMAP and Discord settings
This commit is contained in:
commit
d9cc3c37b2
8 changed files with 2040 additions and 0 deletions
16
config.toml
Normal file
16
config.toml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
imap_server = "imap.gmail.com"
|
||||
imap_port = 993
|
||||
imap_username = "newsletter.imnyang@gmail.com"
|
||||
imap_password = "clff bevg toji slvy"
|
||||
discord_webhook_url = "https://discord.com/api/webhooks/1463015024799776870/CkA_QMSOz9MIplB-zkgqqK_Blv6BBjFe-MI6KE0Nw8OANTb2jORguyQycVgmIwmuGp8b"
|
||||
|
||||
# Ignore emails from these senders (exact match or partial match)
|
||||
ignored_senders = [
|
||||
"no-reply@accounts.google.com"
|
||||
]
|
||||
|
||||
# Ignore emails with these subjects (partial match)
|
||||
ignored_subjects = [
|
||||
"Security Alert",
|
||||
"보안"
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue