-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathActiveSyncMailGrailsPlugin.groovy
39 lines (32 loc) · 1.14 KB
/
ActiveSyncMailGrailsPlugin.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import grails.plugin.eas.EASMailSender;
class ActiveSyncMailGrailsPlugin {
// the plugin version
def version = "0.2"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.3 > *"
// resources that are excluded from plugin packaging
def pluginExcludes = [
"grails-app/views/error.gsp"
]
// TODO Fill in these fields
def title = "Activesync Mail Plugin" // Headline display name of the plugin
def author = "Your name"
def authorEmail = ""
def description = '''\
Brief summary/description of the plugin.
'''
// URL to the plugin's documentation
def documentation = "http://grails.org/plugin/grails-activesync-mail"
ConfigObject easMailConfig
def doWithSpring = {
easMailConfig = application.config.grails.plugin.eas
if (!easMailConfig.disabled || easMailConfig.disabled == 'false') {
mailSender(EASMailSender) {
easServer = easMailConfig.server ?: 'https://outlook.office365.com'
domain = easMailConfig.userDomain ?: 'foo'
username = easMailConfig.username ?: 'bar'
password = easMailConfig.password ?: 'password'
}
}
}
}