IRC Archive for channel #xwiki on 20 April 2013

Last modified by Sergiu Dumitriu on 2013/04/20 23:56

<xwikibot> has joined #xwiki
17:02 <sdumitriu> And for the Jabber part
17:02 <sdumitriu> XWiki will be connected to the Jabber server
17:02 <sdumitriu> Monitoring channels
17:03 <sdumitriu> And each document has an associated channel
17:03 <sdumitriu> And when someone writes in that channel, the message is stored in the wiki document as well
17:03 <sdumitriu> Like it's happening with the IRC bot here: http://dev.xwiki.org/xwiki/bin/view/IRC/xwikiArchive20130420
17:03 <kaysush> sdumitriu :So is this mail server in-built in to xWiki ?
17:04 <sdumitriu> Not now
17:04 <sdumitriu> That's the goal of the project
17:05 <kaysush> sdumitriu : that means a mail server and a jabber monitor is required to be built in this project ?
17:07 <sdumitriu> Not built, integrated
17:07 <sdumitriu> There are lots of open source projects that do that
17:08 <sdumitriu> Even Java itself has the javax.mail package that's fairly good
17:10 <kaysush> but javax.mail package handles the task when a mail is received but what about receiving the mails i mean some sort of SMTP server ?
17:22 <polx> has joined #xwiki
17:25 <polx> has quit
17:25 <polx> has joined #xwiki
17:37 <Denis2> has joined #xwiki
17:37 <Denis2> is now known as <Denis>
17:46 <kaysush> sdumitriu : but javax.mail package handles the task when a mail is received but what about receiving the mails i mean some sort of SMTP server ?
17:48 <sdumitriu> javax.mail.Folder can be used to read a mailbox
17:48 <sdumitriu> You don't need to have an actual SMTP server inside XWiki
17:49 <sdumitriu> You can just use the system postfix, for example
17:49 <sdumitriu> Or there's Apache James
17:49 <kaysush> sdumitriu : but won't it be inefficient to poll a mail box using javax.mail ?
17:50 <sdumitriu> Which can be integrated directly in XWiki
17:50 <sdumitriu> Nope
17:50 <sdumitriu> Polling isn't something that's needed since a long time
17:51 <sdumitriu> Most modern operating systems have support for notifications
17:51 <sdumitriu> You have javax.mail.Folder.addFolderListener(FolderListener)
17:52 <kaysush> sdumitriu : can you give me some examples of how an operating system helps with email notifications , i haven't seen or heard anything like that :)
17:55 <sdumitriu> It's not email notifications
17:55 <sdumitriu> It's file notifications
17:55 <sdumitriu> http://en.wikipedia.org/wiki/Dnotify
17:56 <sdumitriu> http://en.wikipedia.org/wiki/Inotify
17:57 <sdumitriu> http://en.wikipedia.org/wiki/FSEvents
17:59 <kaysush> sdumitriu : but how filesystem notifications will help me getting new mail notifications ?
18:00 <sdumitriu> You don't need that
18:01 <sdumitriu> You need to use existing java code
18:01 <sdumitriu> Don't reimplement stuff that's been perfect for year
18:01 <sdumitriu> That's what javax.mail uses internally
18:01 <sdumitriu> You just call javax.mail.Folder.addFolderListener(FolderListener)
18:02 <sdumitriu> If you're going to use javax.mail.Folder
18:02 <kaysush> sdumitriu : so which folder will i add to this listener ?
18:03 <sdumitriu> The one where the mails are
18:05 <kaysush> sdumitriu : i am really confused about where are the mails . 1.) In a folder where xWiki instance is running or 2.) Somewhere on some SMTP servers ?
18:05 <sdumitriu> 2
18:06 <sdumitriu> If you use javax.mail, then you must use it together with a real SMTP server
18:07 <sdumitriu> If you use Apache James, then you don't use javax.mail at all, and James has its own APIs for receiving emails
18:08 <kaysush> sdumitriu : so we need to integrate Apache James with xWiki
18:09 <sdumitriu> Yep
18:09 <sdumitriu> James will receive emails and notify XWiki about those emails
18:09 <sdumitriu> XWiki then processes these emails and decides what to do with them
18:10 <sdumitriu> If they're identified as emails that should be attached to an existing document, then put the content in a comment
18:11 <kaysush> sdumitriu : so that means Apache James instance should start when an xWiki instance is started and should wait for emails ?
18:12 <sdumitriu> No
18:12 <sdumitriu> It's a library
18:13 <sdumitriu> It lives inside XWiki and it start inside XWiki when XWiki starts
18:19 <kaysush> has quit
18:22 <kaysush> has joined #xwiki
18:25 <kaysush> sdumitriu : SMTP part of Apache James will receive the mail and  will notify a component. Do we have to embed Apache James like given here http://wiki.apache.org/james/Embedded
18:25 <kaysush> although for jetty its not given
18:25 <kaysush> but i think some similar steps will do the trick
18:29 <sdumitriu> Tomcat is almost the same as Jetty
18:33 <kaysush> sdumitriu : Is this the way in which Apache James startup will be integrated with xWiki ?
18:40 <sdumitriu> I don't think so
18:40 <sdumitriu> That's the whole enterprise mail server
18:40 <sdumitriu> We just need the part that can receive emails
18:42 <kaysush> sdumitriu : yep ,  the SMTP part and the api but we will have to start that part with the xWiki instance
18:47 <vmassol> has joined #xwiki
19:07 <AlexCH> has joined #xwiki
19:42 <jvdrean> has quit
19:47 <kaysush> has quit
20:00 <AlexCH> has quit
20:41 <vmassol> sburjan`: you'll need to update http://www.xwiki.org/xwiki/bin/view/TestReports/ManualTestReportXWiki50RC1
20:48 <vmassol> has quit
20:55 <Denis> has quit
22:33 <sburjan`> has quit
22:33 <sburjan`> has joined #xwiki
23:11 <polx_> has joined #xwiki
23:11 <Denis> has joined #xwiki
23:13 <polx> has quit
23:14 <polx_> is now known as <polx>
23:23 <polx> has quit
23:28 <polx> has joined #xwiki
23:56 <abusenius> has quit

Get Connected