Commit fd3b36c6 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Initial version that is still under development. It connects to the email...

Initial version that is still under development. It connects to the email server and gets new messages but no IMs are being sent (yet).

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9684 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7878db5a
<?xml version="1.0" encoding="UTF-8"?>
<!--
Plugin configuration for the broadcast plugin.
-->
<plugin>
<class>org.jivesoftware.openfire.plugin.EmailListenerPlugin</class>
<name>Email Listener</name>
<description>Listen for emails and send alerts to specific users.</description>
<author>Jive Software</author>
<version>1.0</version>
<date>12/25/2007</date>
<url>http://www.igniterealtime.org</url>
<minServerVersion>3.4.3</minServerVersion>
<adminconsole>
<tab id="tab-server">
<sidebar id="sidebar-server-settings">
<item id="email-listener" name="Email Listener" url="email-listener.jsp"
description="Click to configure email listener" />
</sidebar>
</tab>
</adminconsole>
</plugin>
\ No newline at end of file
/**
* $RCSfile$
* $Revision: $
* $Date: $
*
* Copyright (C) 2007 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Public License (GPL),
* a copy of which is included in this distribution.
*/
package org.jivesoftware.openfire.plugin;
import org.jivesoftware.openfire.container.Plugin;
import org.jivesoftware.openfire.container.PluginManager;
import org.jivesoftware.openfire.plugin.emailListener.EmailListener;
import java.io.File;
/**
* Plugin that connects to a mail server using IMAP and sends instant messages
* to specified users when new email messages are found.
*
* @author Gaston Dombiak
*/
public class EmailListenerPlugin implements Plugin {
public void initializePlugin(PluginManager manager, File pluginDirectory) {
// Start the email listener process
EmailListener.getInstance().start();
}
public void destroyPlugin() {
// Stop the email listener process
EmailListener.getInstance().stop();
}
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment