[1/2] james-project git commit: JAMES-2237 Size related tests were platform dependant
Repository: james-project Updated Branches: refs/heads/master 0cca81325 -> aee6cc7d3 JAMES-2237 Size related tests were platform dependant Depending on the host system, you could end up with a `,` or a `.`, leading to test failures. We should enforce a locale choice in order to not be platform dependant. Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/f0e3c3ac Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/f0e3c3ac Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/f0e3c3ac Branch: refs/heads/master Commit: f0e3c3ac6221e67728347c3b2fe915073f38d580 Parents: 90e28ec Author: benwaAuthored: Mon Dec 11 10:06:57 2017 +0700 Committer: benwa Committed: Mon Dec 11 10:06:57 2017 +0700 -- .../main/java/org/apache/james/transport/util/SizeUtils.java | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/james-project/blob/f0e3c3ac/server/mailet/mailets/src/main/java/org/apache/james/transport/util/SizeUtils.java -- diff --git a/server/mailet/mailets/src/main/java/org/apache/james/transport/util/SizeUtils.java b/server/mailet/mailets/src/main/java/org/apache/james/transport/util/SizeUtils.java index e1c4cb4..843dffd 100644 --- a/server/mailet/mailets/src/main/java/org/apache/james/transport/util/SizeUtils.java +++ b/server/mailet/mailets/src/main/java/org/apache/james/transport/util/SizeUtils.java @@ -19,10 +19,15 @@ package org.apache.james.transport.util; +import java.text.DecimalFormat; +import java.text.DecimalFormatSymbols; +import java.util.Locale; + import com.jakewharton.byteunits.BinaryByteUnit; public class SizeUtils { +public static final DecimalFormat DECIMAL_FORMAT = new DecimalFormat("#.#", DecimalFormatSymbols.getInstance(Locale.US)); public static String humanReadableSize(Number size) { return humanReadableSize(size.longValue()); @@ -32,7 +37,7 @@ public class SizeUtils { if (size < 0) { return "-" + humanReadableSize(-size); } else { -return BinaryByteUnit.format(size, "#.#"); +return BinaryByteUnit.format(size, DECIMAL_FORMAT); } } } - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[2/2] james-project git commit: Merge remote-tracking branch 'btellier/JAMES-2237-fix'
Merge remote-tracking branch 'btellier/JAMES-2237-fix' Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/aee6cc7d Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/aee6cc7d Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/aee6cc7d Branch: refs/heads/master Commit: aee6cc7d341fe8e77a6b5671f5b50e05cc4da94a Parents: 0cca813 f0e3c3a Author: Antoine DupratAuthored: Mon Dec 11 11:32:06 2017 +0100 Committer: Antoine Duprat Committed: Mon Dec 11 11:32:06 2017 +0100 -- .../main/java/org/apache/james/transport/util/SizeUtils.java | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) -- - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[jira] [Created] (JAMES-2257) SetMessage::update JMAP call should allow passing a isDraft property
Tellier Benoit created JAMES-2257: - Summary: SetMessage::update JMAP call should allow passing a isDraft property Key: JAMES-2257 URL: https://issues.apache.org/jira/browse/JAMES-2257 Project: James Server Issue Type: Improvement Components: JMAP Affects Versions: master Reporter: Tellier Benoit Assignee: Antoine Duprat Today this property is missing. We should add it... -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[jira] [Created] (JAMES-2256) VacationAction should rely on AutomaticallySentMailDetector
Tellier Benoit created JAMES-2256: - Summary: VacationAction should rely on AutomaticallySentMailDetector Key: JAMES-2256 URL: https://issues.apache.org/jira/browse/JAMES-2256 Project: James Server Issue Type: Improvement Components: Mailet Contributions Affects Versions: master Reporter: Tellier Benoit `VacationAction` contains logic for not sending emails to mailing lists. This is a duplicate of `AutomaticallySentMailDetector`, which also exposes this functionnality. `VacationAction` should thus rely on `AutomaticallySentMailDetector`. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org