Thread: [Logicmail-devel] IDLE not supported by IMAP server
Brought to you by:
octorian
From: bartek b. <maj...@gm...> - 2010-06-01 10:21:37
|
Hello! I happen to be working with IMAP server with no IDLE support (bincimap). How much would it take to enhance logicmail imap implementation to work nicely with servers with no IDLE support? I'd be glad to participate in developing such an enhancements, but it is difficult for me to estimate how much of the codebase would need to be changed and where. Thanks for any pointers! Kind regards, -- Bartosz Bekier |
From: Derek K. <dko...@lo...> - 2010-06-02 21:20:14
|
Spam detection software, running on the system "hyperion.logicprobe.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see pos...@lo... for details. Content preview: Ahh, this one: http://www.logicprobe.org/proj/logicmail/ticket/181 Looks like the first thing I'll do is get bincimap up and running on my little test server VM (its an OpenBSD install with Cyrus, Dovecot, and Courier). [...] Content analysis details: (8.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.7 RATWARE_GECKO_BUILD Bulk email fingerprint (Gecko faked) found 3.0 BOTNET Relay might be a spambot or virusbot [botnet0.7,ip=68.204.81.17,hostname=17.81.204.68.cfl.res.rr.com,maildomain=logicprobe.org,client,ipinhostname,clientwords] 0.4 HTML_30_40 BODY: Message is 30% to 40% HTML 0.0 HTML_MESSAGE BODY: HTML included in message 3.0 BAYES_95 BODY: Bayesian spam probability is 95 to 99% [score: 0.9603] 2.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [68.204.81.17 listed in dnsbl.sorbs.net] -1.8 AWL AWL: From: address is in the auto white-list |
From: bartek b. <maj...@gm...> - 2010-06-02 21:38:57
|
2010/6/2 Derek Konigsberg <dko...@lo...> > Ahh, this one: > http://www.logicprobe.org/proj/logicmail/ticket/181 > > Looks like the first thing I'll do is get bincimap up and running on my > little test server VM (its an OpenBSD install with Cyrus, Dovecot, and > Courier). > I could help here if you run into difficulties. > Getting it to work actually won't be too difficult on the coding side. The > real question is how to change the behavior of the mail connection handler > to cope with a lack of IDLE support. I'm pretty sure one of the desktop > e-mail clients I use (I think Kmail) doesn't use IDLE, so I'll have to > observe that one again in a packet sniffer to see how it operates. > > The overall behavior of the connection handling code is described in a > state machine diagram near the bottom of this web page: > http://www.logicprobe.org/proj/logicmail/wiki/design-mail > > Hopefully all that will have to change is the specifics of how the IDLE > state is handled. Right now, it does something like this: > - If no pending requests, go into IDLE > - If 5 minutes have elapsed without any new requests, exit the idle state, > do a status check, then resume IDLE (I think this is also how Thunderbird > works) > - Code is in: > org.logicprobe.LogicMail.mail.IncomingMailConnectionHandler.handleBeginIdle() > > To handle a non-IDLE-supporting server, I'll just have to implement a > similar timeout/poll loop without the IDLE state. This will obviously make > it less responsive to new messages, but should still work. (and will have > to do it for IMAP-only, since POP effectively locks the mailbox against > changes while you're connected) > > Yes, I made it to this point that this is where IDLE logic takes place. What you say doesn't sound too difficult, if I understand correctly, just issuing certain command at certain interval. And probably also changing the implementation of ImapClient.hasIdle() to actually check imap server capabilities. I agree on the responsiveness issue, probably the polling shouldn't also happen to often to take battery life into account. >From what you write I can see that you would like to implement this by yourself, anyway I'd be glad to help develop this great product:). Kind regards, -- Bartosz |
From: Derek K. <dko...@lo...> - 2010-06-02 22:31:52
|
Spam detection software, running on the system "hyperion.logicprobe.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see pos...@lo... for details. Content preview: Just got Binc up and running on my test server VM. It should be very useful for testing, since its the only IMAP server I've run across that supports practically none of the non-core IMAP features once you've logged in. Seriously, its CAPABILITY string is practically blank. I can even confirm that Thunderbird 3 fails to see any folders beyond the INBOX. [...] Content analysis details: (7.6 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.0 BOTNET Relay might be a spambot or virusbot [botnet0.7,ip=68.204.81.17,hostname=17.81.204.68.cfl.res.rr.com,maildomain=logicprobe.org,client,ipinhostname,clientwords] 0.4 HTML_30_40 BODY: Message is 30% to 40% HTML 0.0 HTML_MESSAGE BODY: HTML included in message 3.0 BAYES_95 BODY: Bayesian spam probability is 95 to 99% [score: 0.9785] 0.2 HTML_TITLE_EMPTY BODY: HTML title contains no text 2.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [68.204.81.17 listed in dnsbl.sorbs.net] -1.1 AWL AWL: From: address is in the auto white-list |
From: Derek K. <dko...@lo...> - 2010-06-04 01:13:58
|
Spam detection software, running on the system "hyperion.logicprobe.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see pos...@lo... for details. Content preview: Phew... Latest build (as of now) should have this issue fixed :-) I think I may have also managed to fix a bug in normal idle handling as well. Now it just needs some good real-world testing. The actual fix was fairly straightforward, so feel free to review it in case you have any issues/comments. I also did a good chunk of prep work to clean up the IncomingMailClient instance usage a bit. [...] Content analysis details: (8.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.0 BOTNET Relay might be a spambot or virusbot [botnet0.7,ip=24.73.151.23,hostname=rrcs-24-73-151-23.se.biz.rr.com,maildomain=logicprobe.org,client,ipinhostname] 0.5 HTML_40_50 BODY: Message is 40% to 50% HTML 0.0 HTML_MESSAGE BODY: HTML included in message 3.5 BAYES_99 BODY: Bayesian spam probability is 99 to 100% [score: 1.0000] 0.2 HTML_TITLE_EMPTY BODY: HTML title contains no text 2.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [24.73.151.23 listed in dnsbl.sorbs.net] -0.9 AWL AWL: From: address is in the auto white-list |
From: bartek b. <maj...@gm...> - 2010-06-09 16:39:53
|
Hello! 2010/6/4 Derek Konigsberg <dko...@lo...> > Phew... Latest build (as of now) should have this issue fixed :-) I > think I may have also managed to fix a bug in normal idle handling as well. > Now it just needs some good real-world testing. > Great, thank you! Preliminary tests show it works like a charm:-). > > The actual fix was fairly straightforward, so feel free to review it in > case you have any issues/comments. I also did a good chunk of prep work to > clean up the IncomingMailClient instance usage a bit. > Yes, I will surely look at the code in a free moment. Kind regards, -- Bartek |