Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
witold.brzozowski committed Nov 20, 2024
1 parent bff12ba commit c9ad8d0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ mails.bot= (Mail address of mailing bot)
mails.storage= (Mail address of emails storage)
mail.title.prefix = (Prefix for mail title - can be empty)
mail.sender.enabled= (Boolean flag to set sending mail)
mail.receiver.enabled= (Boolean flag to set observing incoming mail)
# slack
slack.bot-token=
slack.signing-secret=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ public class MailReceiver extends Thread {
@Value("${mail.receiver.idle.time}")
private int keepAliveFreq; //time unit: milliseconds

@Value("${mail.receiver.enabled:true}")
private boolean isEnabled;

private Store store;
private IMAPFolder inbox;

Expand Down Expand Up @@ -136,7 +133,7 @@ private void keepInboxIdle() {

@Override
public void run() {
if (isEnabled){
if (!host.isBlank()){
log.info("Initializing MailReceiver");

// Configuring the inbox
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ mail.receiver.idle.time=300000
mails.bot=
mails.storage=
mail.sender.enabled=false
mail.receiver.enabled=false
# slack
slack.bot-token=
slack.signing-secret=
Expand Down

0 comments on commit c9ad8d0

Please sign in to comment.