Issue Details (XML | Word | Printable)

Key: JM-236
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Gaston Dombiak
Reporter: Ryan Graham
Votes: 23
Watchers: 11
Operations

If you were logged in you would be able to see more operations.
Openfire (ARCHIVED)

Offline Email Notification

Created: 03/31/05 02:38 PM   Updated: 09/20/06 12:33 PM
Component/s: Plugins
Affects Version/s: 2.1.2
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
Create a plugin that allows users to recieve an email notification if they are sent a message while offline. A couple of initial questions I have are:
  • Should the email notification be configurable on a per user basis?
  • Should a user be able to configure this feature themselves? If so, this may require individual/group permissions for the admin console.


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Matt Tucker added a comment - 03/31/05 04:37 PM
The plugin should probably collect all messages from another user within X seconds before sending of an email. A typical exchange might be:

user1: Hey, how's it going?
server: user2 is offline, your message will be stored.
user1: oops, I see you're offline. In that case, I'll give you a call to give you the details about blah...

So, as soon as the plugin gets the first message from another user, it would wait 30-45 seconds to see if any other messages come in from the same user and then send out the email.


Matt Tucker added a comment - 03/31/05 04:38 PM
Oh, if we do allow users to configure feature themselves, config could prob be done through data forms.

Ryan Graham added a comment - 03/31/05 05:51 PM
> So, as soon as the plugin gets the first message from another user, it would wait 30-45
> seconds to see if any other messages come in from the same user and then send out the
> email.

Are you thinking then that it would just send a single aggregated email for all messages received during that time span?

> config could prob be done through data forms.

Yup, that's what I was thinking too.


wroot added a comment - 03/31/05 07:19 PM
yea, i was thinking about agregation function. user should be able to select whether get instant email notification or all offline messages for some period of time at once. Maybe some deviding by users (separated mails). I can think of many things, but it could be hard to implement them all. So we just need plain notofication plugin at first

Ryan Graham added a comment - 06/07/05 01:42 PM
A nice feature would be to give users the ability to send email to Messenger that would then be delivered as an IM. See the discussion in the thread below:

http://www.jivesoftware.org/forums/thread.jspa?messageID=98794&#98794


Ryan Graham added a comment - 06/07/05 04:27 PM
Link to forums discussion about receiving email:

http://www.jivesoftware.org/forums/thread.jspa?threadID=14840


Jörg Weinmann added a comment - 06/20/05 10:05 PM
Hi!

I am interested in developing a plugin for this issue. In a first iteration I would like to include just a primitive message>email transformation.

Jörg


Ryan Graham added a comment - 06/22/05 03:51 PM
Hi Jörg,

Thanks for volunteering! A plugin that handles converting messages to email has actually already been written. But, after writing it and taking a step back I'm not sure if the way it works is the best approach. Basically what I'm doing is using a PacketIntereceptor to look for Message packets, if I find one I check to see if the recipient is offline, and if they are I queue the message up to be sent via email. The obvious problem with this approach is every Message packet needs to be inspected and every recipient needs to queried to see if they're offline. After talking it over with Matt, it was decided an offline message listener (similiar to the UserEventListener) would be the best way to go. Would you be interested in working on the offline message listener? If so, send me a email or private message me on the forums (username 'ryang') and we can discuss this further.

~Ryan


Peter Awad added a comment - 07/24/05 07:34 PM
I've thought a lot about this sort of feature and would like to throw some ideas on the table if its not to late.

First the feature will need to be configurable by the user.
An option to choose email or SMS for sending would be great but email should be a necessity.
This feature should only apply when a user is offline.
When a message is received, an AI of sorts should respond back advising the user is offline and what options are available for messaging.
This could be a "handoff" to a full blown bot, I'll call it Simon for simplicty.

Simon would reply back - The user is not available how ever I have 3 messaging options available, an offline message, email, or SMS, which would you like.
User would reply back - offline / message , email, or SMS
Simon would reply back - I am ready for your message (in the event of SMS Simon should advise short message limits)
User would reply with message
Simon would reply - Your message (repeat message) has been received, would you like to start over, add more, or save?
User would reply with save and the transaction would be complete.

Any thoughts ideas or ojections?

Thanks Peter


Nicholas Mossie added a comment - 01/03/06 08:16 PM
Pretty close to emailing IMs while offline, but when away instead.. and integrated into vcard entries.

http://www.jivesoftware.org/community/thread.jspa?threadID=17208

download link:
http://www.tempstop.net/emailOnAway-plugin.tgz


niranjan added a comment - 09/20/06 12:33 PM
Hi All,

I am a new guy in this group.
Thought ofg joining the discussion.

The working of the pluggin is i think somewhat similar the way you
subscribe to google groups. You can get all the messages posted
delivered to your email instantly or you can get all the messages
posted delivered to you once in a day.
The frequency of emails is configurable

So once the user installs the pluggin and configures the setting
(frequency of mails) which i think we can be stored in jiveuserprop
The Email Service should count him in and check for the offline messages for
the user and mail should be dispatched.

regards
Niranjan