Skip to content
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

fix handling of greenmail.sieve.ignore.detail prop #824

Conversation

shlomi-lr
Copy link
Contributor

No description provided.

@shlomi-lr shlomi-lr changed the title #823 fix handling of greenmail.sieve.ignore.detail prop fix handling of greenmail.sieve.ignore.detail prop Nov 26, 2024
@shlomi-lr shlomi-lr force-pushed the fix-handling-of-greenmail-sieve-ignore-detail-prop branch from 11055a4 to 43535a8 Compare November 26, 2024 17:06
@@ -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)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be easier to read:
if (Boolean.parseBoolean(sieveIgnoreDetail)) ...

Copy link
Contributor Author

@shlomi-lr shlomi-lr Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is! I just wanted the review to show the details of the actual string comparison taking place but parseBoolean is really:

public static boolean parseBoolean(String s) {
        return "true".equalsIgnoreCase(s);
    }

thank you! :)

Copy link
Member

@marcelmay marcelmay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've only a rather cosmetical comment.

Feel free to update PR regarding the comment, otherwise I'll merge the PR ~ tomorrow.

Thx alot, @shlomi-lr !

@marcelmay marcelmay added this to the 2.1.x milestone Nov 26, 2024
@marcelmay marcelmay added the bug label Nov 26, 2024
@marcelmay marcelmay merged commit bc11fd1 into greenmail-mail-test:master Nov 27, 2024
3 checks passed
marcelmay added a commit that referenced this pull request Nov 30, 2024
@marcelmay marcelmay modified the milestones: 2.1.x, 2.1.2 Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants