-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZCS-16489: Add LDAP Attributes for zimbra_external_warning_message #1700
base: develop
Are you sure you want to change the base?
Conversation
store/src/java-test/com/zimbra/cs/service/mail/ExternalEmailWarningTest.java
Outdated
Show resolved
Hide resolved
@@ -68,8 +73,23 @@ public static ExternalEmailWarning getInstance() { | |||
* | |||
* @return true if EEW feature is enabled. | |||
*/ | |||
public boolean isEnabled() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why delete this public method? you already got the override methods that you need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've deleted it because it will no longer be called anywhere, I've replaced all the usages with the below methods.
store/src/java/com/zimbra/cs/lmtpserver/ExternalEmailWarning.java
Outdated
Show resolved
Hide resolved
store/src/java/com/zimbra/cs/lmtpserver/ExternalEmailWarning.java
Outdated
Show resolved
Hide resolved
c09f75f
to
44f454c
Compare
The existing LC zimbra_external_email_warning_enabled and zimbra_external_email_warning_message if unused should be removed. |
store/src/java-test/com/zimbra/cs/service/mail/ExternalEmailWarningTest.java
Outdated
Show resolved
Hide resolved
store/src/java-test/com/zimbra/cs/service/mail/ExternalEmailWarningTest.java
Outdated
Show resolved
Hide resolved
store/src/java/com/zimbra/cs/lmtpserver/ExternalEmailWarning.java
Outdated
Show resolved
Hide resolved
…bled and modified condition to check for feature enabled Unit tests added for EEW Refactored code to store the flag and accounts to avoid multiple LDAP calls modified LDAP attrs at domain/globalConfig Modified delivery methods to create different blobs for each recipient modified flags for LDAP attrs Unit tests updated and deprecated LC Updated LDAP attrs id Modified conditions to reduce number of LDAP queries
https://synacor.atlassian.net/browse/ZCS-16489
Problem: Move External Email Warning attributes from LC to LDAP.
Solution: Created 2 LDAP attributes:-
Modified conditions to check whether the feature is enabled for each recipient account's domain and fetch EEW message to append in the message.