Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
8c58b7ab
Commit
8c58b7ab
authored
Apr 10, 2016
by
wroot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1120 Additional fix for the default behavior
parent
279a998f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
changelog.html
src/plugins/emailOnAway/changelog.html
+5
-0
plugin.xml
src/plugins/emailOnAway/plugin.xml
+2
-2
readme.html
src/plugins/emailOnAway/readme.html
+2
-2
emailOnAway.java
...lugins/emailOnAway/src/java/com/tempstop/emailOnAway.java
+3
-3
No files found.
src/plugins/emailOnAway/changelog.html
View file @
8c58b7ab
...
...
@@ -44,6 +44,11 @@
Email on Away Plugin Changelog
</h1>
<p><b>
1.0.3
</b>
-- April 10, 2016
</p>
<ul>
<li>
[
<a
href=
'http://www.igniterealtime.org/issues/browse/OF-1120'
>
OF-1120
</a>
] Additional fix for the default behavior
</li>
</ul>
<p><b>
1.0.2
</b>
-- March 26, 2016
</p>
<ul>
<li>
[
<a
href=
'http://www.igniterealtime.org/issues/browse/OF-1120'
>
OF-1120
</a>
] Change default behavior of Email on Away plugin
</li>
...
...
src/plugins/emailOnAway/plugin.xml
View file @
8c58b7ab
...
...
@@ -6,8 +6,8 @@
<name>
Email on Away
</name>
<description>
Messages sent to alternate location when recipient is away
</description>
<author>
Nick Mossie
</author>
<version>
1.0.
2
</version>
<date>
0
3/26
/2016
</date>
<version>
1.0.
3
</version>
<date>
0
4/10
/2016
</date>
<minServerVersion>
2.3.0
</minServerVersion>
</plugin>
src/plugins/emailOnAway/readme.html
View file @
8c58b7ab
...
...
@@ -58,8 +58,8 @@ installation or install it via Admin Console. The plugin will then be automatica
<h2>
Configuration
</h2>
<p>
Configuration can be changed and tested in Admin Console > Server Manager > Email settings.
To not show email in the automated message create a system property "plugin.emailonaway.
hide
email" with
the value "
tru
e".
To not show email in the automated message create a system property "plugin.emailonaway.
show
email" with
the value "
fals
e".
</p>
</body>
...
...
src/plugins/emailOnAway/src/java/com/tempstop/emailOnAway.java
View file @
8c58b7ab
...
...
@@ -54,9 +54,9 @@ public class emailOnAway implements Plugin, PacketInterceptor {
message
.
setTo
(
to
);
message
.
setFrom
(
from
);
message
.
setSubject
(
"I'm away"
);
if
(
JiveGlobals
.
getBooleanProperty
(
"plugin.emailonaway.
hide
email"
,
true
))
{
message
.
setBody
(
"I'm currently away. Your message has been forwarded to my email address."
);
}
else
{
message
.
setBody
(
"I'm currently away. Your message has been forwarded to my email address ("
+
emailTo
+
")."
);
}
if
(
JiveGlobals
.
getBooleanProperty
(
"plugin.emailonaway.
show
email"
,
true
))
{
message
.
setBody
(
"I'm currently away. Your message has been forwarded to my email address ("
+
emailTo
+
")."
);
}
else
{
message
.
setBody
(
"I'm currently away. Your message has been forwarded to my email address."
);
}
return
message
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment