Skip to content

Receive Email with POP3 protocol from mail server in CLI

Notifications You must be signed in to change notification settings

arashkhavari/ReceiveMail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Receive email from POP3 mail server

Root cause : POP3 not get unseen message or email folder.

Configuration

Absolute path /opt/.env :

pop_server=pop.mail.server
pop_server_username=pop@mail.server
pop_server_password=password
last_hour=3
receive_from=from@mail.server
search_subject=search_text
mysql_url=jdbc:mysql://db_address:3306/dbname
mysql_user=username
mysql_pass=password
table_name=table
Last hour

Check email from spesific last hour cause POP3 not get unseen message.

Search subject

Search spesific word/words in mail subject.

Sample
java -jar target/ReceiveMail-1.0-SNAPSHOT-jar-with-dependencies.jar

output

Email from=test@mail.com at=2020-04-11 03:07:50 about=test_subject request=test_body

About

Receive Email with POP3 protocol from mail server in CLI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages