Skip to content

Commit 300e887

Browse files
committed
Fixes from testing
1 parent b8c03ca commit 300e887

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

grails-app/services/io/xh/hoist/email/EmailService.groovy

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class EmailService extends BaseService {
6363
filter = parseMailConfig('xhEmailFilter'),
6464
toSpec = filterAddresses(formatAddresses(args.to), filter),
6565
ccSpec = filterAddresses(formatAddresses(args.cc), filter),
66-
bccSpec = filterAddresses(formatAddresses(args.cc), filter)
66+
bccSpec = filterAddresses(formatAddresses(args.bcc), filter)
6767

6868
List<String> toUse = override ? override : toSpec
6969
List<String> ccUse = override ? [] : ccSpec
@@ -114,11 +114,11 @@ class EmailService extends BaseService {
114114
if (bccUse) {
115115
bcc bccUse.toArray()
116116
}
117-
if (markImportant) {
118-
headers(
119-
Importance: 'High',
120-
X-MSMail-Priority: 'High'
121-
X-Priority: 1
117+
if (args.markImportant) {
118+
headers (
119+
'Importance': 'High',
120+
'X-MSMail-Priority': 'High',
121+
'X-Priority': 1
122122
)
123123
}
124124

src/main/groovy/io/xh/hoist/util/CollectionUtils.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package io.xh.hoist.util;
22

3+
import java.util.*;
4+
import java.util.function.Function;
5+
36
/**
47
* Hoist tools for creating/manipulating collections in Java using groovy
58
* like syntax.Useful for applications with large datasets and high performance

0 commit comments

Comments
 (0)