[JDEV] Inbox mail notification feature
jabber at migniot.com
jabber at migniot.com
Wed Apr 16 03:32:49 CDT 2003
On Wed, Apr 16, 2003 at 04:17:39PM +0900, Ganbold wrote:
> Hi,
> I'm new to jabber development and I have some questions.
> I would like to implement inbox mail notification feature
> In my opinion there might be 2 possibilities.
> One is email receiving program (perl script) should notify jabberd using
> <headlines/> tag about new incoming mail.
That's the solution I took, as My project was
scaled to have few mails on a big jabber server
- Use jabberpy if you're familiar to python,
- Here's a sample code : http://wiki.migniot.com/ZopeHowTos
So the code is basically using :
- procmail to handle mail, and "forward it"
to the python script (taken from ZMailIn, splits a mail
into a basic dictionnary)
- Login, send the message (or headlines using an admin login)
wait a little (for notification to client to occur)
and close the connection properly
- Finally, in this particular example(wiki), the mail goes
throughout Zope for my own purposes but python
is the only base needed to implement it...
Have a nice try (python, perl or whatever)
> Second possibility is xdb_sql should check new mail by querying time by
> time from mysql database.
Haven't tried yet, but I always prefer catching the mail on the fly
(right as it comes into the server) rather than using asynchronous
notification
Sincerely,
Seb
--
http://www.migniot.com
sebastien at migniot.com
More information about the JDev
mailing list