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
12a26741
Commit
12a26741
authored
Mar 11, 2016
by
wroot
Committed by
Christian Schudt
Mar 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1107 Option to not show email, added readme and changelog
parent
3d569e25
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
132 additions
and
5 deletions
+132
-5
changelog.html
src/plugins/emailOnAway/changelog.html
+61
-0
plugin.xml
src/plugins/emailOnAway/plugin.xml
+2
-2
readme.html
src/plugins/emailOnAway/readme.html
+66
-0
emailOnAway.java
...lugins/emailOnAway/src/java/com/tempstop/emailOnAway.java
+3
-3
No files found.
src/plugins/emailOnAway/changelog.html
0 → 100644
View file @
12a26741
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>
Email on Away Plugin Changelog
</title>
<style
type=
"text/css"
>
BODY
{
font-size
:
100%
;
}
BODY
,
TD
,
TH
{
font-family
:
tahoma
,
verdana
,
arial
,
helvetica
,
sans-serif
;
font-size
:
0.8em
;
}
H2
{
font-size
:
10pt
;
font-weight
:
bold
;
padding-left
:
1em
;
}
A
:hover
{
text-decoration
:
none
;
}
H1
{
font-family
:
tahoma
,
arial
,
helvetica
,
sans-serif
;
font-size
:
1.4em
;
font-weight
:
bold
;
border-bottom
:
1px
#ccc
solid
;
padding-bottom
:
2px
;
}
TT
{
font-family
:
courier
new
;
font-weight
:
bold
;
color
:
#060
;
}
PRE
{
font-family
:
courier
new
;
font-size
:
100%
;
}
</style>
</head>
<body>
<h1>
Email on Away Plugin Changelog
</h1>
<p><b>
1.0.1
</b>
-- March 11, 2016
</p>
<ul>
<li>
[
<a
href=
'http://www.igniterealtime.org/issues/browse/OF-1107'
>
OF-1107
</a>
] Option to not expose email address
</li>
<li>
Added readme and changelog (wroot)
</li>
</ul>
<p><b>
1.0
</b>
-- December 15, 2005
</p>
<ul>
<li>
Initial release.
</li>
</ul>
</body>
</html>
\ No newline at end of file
src/plugins/emailOnAway/plugin.xml
View file @
12a26741
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<name>
Email on Away
</name>
<name>
Email on Away
</name>
<description>
Messages sent to alternate location when recipient is away
</description>
<description>
Messages sent to alternate location when recipient is away
</description>
<author>
Nick Mossie
</author>
<author>
Nick Mossie
</author>
<version>
1.0
</version>
<version>
1.0
.1
</version>
<date>
12/15/2005
</date>
<date>
03/11/2016
</date>
<minServerVersion>
2.3.0
</minServerVersion>
<minServerVersion>
2.3.0
</minServerVersion>
</plugin>
</plugin>
src/plugins/emailOnAway/readme.html
0 → 100644
View file @
12a26741
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>
Email on Away Plugin Readme
</title>
<style
type=
"text/css"
>
BODY
{
font-size
:
100%
;
}
BODY
,
TD
,
TH
{
font-family
:
tahoma
,
verdana
,
arial
,
helvetica
,
sans-serif
;
font-size
:
0.8em
;
}
H2
{
font-size
:
10pt
;
font-weight
:
bold
;
}
A
:hover
{
text-decoration
:
none
;
}
H1
{
font-family
:
tahoma
,
arial
,
helvetica
,
sans-serif
;
font-size
:
1.4em
;
font-weight
:
bold
;
border-bottom
:
1px
#ccc
solid
;
padding-bottom
:
2px
;
}
TT
{
font-family
:
courier
new
;
font-weight
:
bold
;
color
:
#060
;
}
PRE
{
font-family
:
courier
new
;
font-size
:
100%
;
}
</style>
</head>
<body>
<h1>
Email on Away Plugin Readme
</h1>
<h2>
Overview
</h2>
<p>
The email on away plugin allows to forward messages to user's email address
when the user is away (not offline).
</p>
<h2>
Installation
</h2>
<p>
Copy the emailonaway.jar into the plugins directory of your Openfire
installation or install it via Admin Console. The plugin will then be automatically deployed.
</p>
<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.showemail" with
the value "false".
</p>
</body>
</html>
\ No newline at end of file
src/plugins/emailOnAway/src/java/com/tempstop/emailOnAway.java
View file @
12a26741
...
@@ -15,8 +15,6 @@ import org.jivesoftware.openfire.PresenceManager;
...
@@ -15,8 +15,6 @@ import org.jivesoftware.openfire.PresenceManager;
import
org.jivesoftware.openfire.vcard.VCardManager
;
import
org.jivesoftware.openfire.vcard.VCardManager
;
import
org.jivesoftware.util.JiveGlobals
;
import
org.jivesoftware.util.JiveGlobals
;
import
org.jivesoftware.util.EmailService
;
import
org.jivesoftware.util.EmailService
;
import
org.xmpp.packet.Presence
;
import
org.xmpp.packet.JID
;
import
org.xmpp.packet.Message
;
import
org.xmpp.packet.Message
;
import
org.xmpp.packet.Packet
;
import
org.xmpp.packet.Packet
;
...
@@ -56,7 +54,9 @@ public class emailOnAway implements Plugin, PacketInterceptor {
...
@@ -56,7 +54,9 @@ public class emailOnAway implements Plugin, PacketInterceptor {
message
.
setTo
(
to
);
message
.
setTo
(
to
);
message
.
setFrom
(
from
);
message
.
setFrom
(
from
);
message
.
setSubject
(
"I'm away"
);
message
.
setSubject
(
"I'm away"
);
message
.
setBody
(
"I'm currently away. Your message has been forwarded to my service email address ("
+
emailTo
+
")."
);
if
(
JiveGlobals
.
getBooleanProperty
(
"plugin.emailonaway.showemail"
,
false
)
)
{
message
.
setBody
(
"I'm currently away. Your message has been forwarded to my service email address ("
+
emailTo
+
")."
);
}
else
{
message
.
setBody
(
"I'm currently away. Your message has been forwarded to my service email address."
);
}
return
message
;
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