Skip to content

Commit

Permalink
fix handling of greenmail.sieve.ignore.detail
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomi-lr committed Nov 26, 2024
1 parent cf514ee commit 43535a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public GreenMailConfiguration build(Properties properties) {
}

String sieveIgnoreDetail = properties.getProperty(GREENMAIL_SIEVE_IGNORE_DETAIL, "false");
if (null != sieveIgnoreDetail) {
if (Boolean.TRUE.toString().equalsIgnoreCase(sieveIgnoreDetail)) {
configuration.withSieveIgnoreDetail();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void testBuildWithSieveIgnoreDetailEnabledSetting() {
GreenMailConfiguration config = new PropertiesBasedGreenMailConfigurationBuilder().build(props);

assertThat(config).isNotNull();
assertThat(config.isSieveIgnoreDetailEnabled()).isTrue();
assertThat(config.isSieveIgnoreDetailEnabled()).isFalse();
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void testApi() {
"{\"port\":3143,\"address\":\"127.0.0.1\",\"protocol\":\"imap\",\"isSecure\":false,\"readTimeout\":-1," +
"\"writeTimeout\":-1,\"connectionTimeout\":-1,\"serverStartupTimeout\":2000,\"isDynamicPort\":false}]," +
"\"authenticationDisabled\":false," +
"\"sieveIgnoreDetail\":true," +
"\"sieveIgnoreDetail\":false," +
"\"preloadDirectory\":null" +
"}");

Expand Down

0 comments on commit 43535a8

Please sign in to comment.