[sip-comm-dev] Internship project : E-mail notification plugin for all protocols


#1

hello,

I'm presenting me Matthieu Helleringer ,and Alain Knaebel. We are students in computing and we do an internship with Emil Ivov. This is our first experience working in an open source project an we have to work on the E-mail notification plugin on sip-communicator.

We have seen that Yahoo and MSN E-mail notifications are already implemented on SC.
During this week, we search to understand how Yahoo and MSN notifications work .We try to make a call tree program to map the function called when a new E-mail arrives. With this programm we hope to understand how yahoo and msn mechanims work .

Our Main matter is that we don't understand how the protocol knows when a new E-mail is available ( if the protocol asks a server , or if the server contacts the protocol and calls "public void newMailReceived(SessionNewMailEvent ev)" ? ). Could somebody explain us how the jml-1.0b2.jar and the ymsg_network_v0_63.jar work ( we found the javadoc of jml and ymsg , but some parts appear not understood for us ) ?

If somebody has already begin the googleTalk (jabber) E-mail notification, can you explain us what you have do and how we can help you ?

Regards,
Matthieu Helleringer
Alain Knaebel

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hello Matthieu and Alain,

Sorry for not answering earlier. We've already discussed most of this
offline but I thought I should also post a reply here so that it would
be available in the archives:

shadowgate67 wrote:

hello,

I'm presenting me Matthieu Helleringer ,and Alain Knaebel. We are
students in computing and we do an internship with Emil Ivov. This is
our first experience working in an open source project an we have to
work on the E-mail notification plugin on sip-communicator.

We have seen that Yahoo and MSN E-mail notifications are already
implemented on SC.

Well, they aren't actually. At least not the way we'd like to have them.
Currently e-mail notifications would result in fake instant messages
that look as though they've been received from the person sending the
mail. Ideally we'd like it to be clearly visible that these are
notifications for mails and not IMs.

During this week, we search to understand how Yahoo and MSN
notifications work .We try to make a call tree program to map the
function called when a new E-mail arrives. With this programm we hope to
understand how yahoo and msn mechanims work .

Our Main matter is that we don't understand how the protocol knows when
a new E-mail is available ( if the protocol asks a server , or if the
server contacts the protocol and calls "public void
newMailReceived(SessionNewMailEvent ev)" ? ). Could somebody explain us
how the jml-1.0b2.jar and the ymsg_network_v0_63.jar work ( we found the
javadoc of jml and ymsg , but some parts appear not understood for us ) ?

That would depend on the protocol but in most cases these are server
triggered notifications. These notifications are delivered to us through
protocol specific listeners. In the case of Yahoo! for example this
happens through the ymsg SessionListener that we implement in
OperationSetBasicInstantMessagingYahooImpl via the SessionAdapter. We
receive new mail notifications there through the newMailReceived()
method. Eventually you would need to move this implementation in a mail
notification specific operation set like for example
OperationSetNewMailNotificationsYahooImpl. Alternately you could simply
add the new OperationSetNewMailNotifications to the list of interfaces
implemented by the OperationSetBasicInstantMessagingYahooImpl class.

In the case of MSN this happens in
OperationSetBasicInstantMessagingMsnImpl. Notifications are delivered to
us via the implementation of the newEmailNotificationReceived() method.

Concerning XMPP and smack. During our conversation yesterday you
mentioned that you have come across this:

http://code.google.com/intl/bg/apis/talk/jep_extensions/gmail.html

which seems like the way to go. Now you only need to figure out how to
access this functionality from smack. I don't think it has explicit
support for this functionality but it's a well written lib so you can
add support for the extra packets. You can look through the
igniterealtime.org site for examples on custom packet support. You can
also checkout our implementation for geolocation as it uses the same
mechanisms.

Good luck!
Emil

···

If somebody has already begin the googleTalk (jabber) E-mail
notification, can you explain us what you have do and how we can help you ?

Regards,
Matthieu Helleringer
Alain Knaebel

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net