
Mailbox: Do not use if imap.use is false
@bab4acc84dfd12d775fff5c93f31ff83699d600c
--- app/mailbox/MailboxService.java
+++ app/mailbox/MailboxService.java
... | ... | @@ -157,6 +157,10 @@ |
157 | 157 |
return; |
158 | 158 |
} |
159 | 159 |
|
160 |
+ if (!imapConfig.getBoolean("use")) { |
|
161 |
+ return; |
|
162 |
+ } |
|
163 |
+ |
|
160 | 164 |
List<User> users = User.find.where() |
161 | 165 |
.ilike("email", imapConfig.getString("user") + "+%").findList(); |
162 | 166 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?