On Wednesday, Jul 30, 2003, at 08:47 US/Central, Christophe Zwecker wrote:

Hi,

some of my users check mail like every 10 secs, id like to restrict that to once a minute which is enuff I think.

How can it be done ?

thx alot for any help

Christophe

Why do you say that exactly? Most IMAP clients simply stay logged in over a long period and then merely send NOOP (or some command) periodically -- rather than logging in and out every so often. (It's what they *should* be doing anyway in most cases, since that's one of the basic premises of the protocol design for IMAP.) Are you saying you have clients that actually log in, out, and back in every 10 seconds?


If, on the other hand, you mean that they're simply polling the server for new messages every 10 seconds, there's not much you can do about it I don't think...

Well, not much *other than* requesting that the users change their config to A) poll no more than once per minute, or B) use the IMAP extension "IDLE", which Courier supports, instead of polling the server for mail. (I don't know how many clients support IDLE, does anyone else?) -- Of course, you could presumably disable their account temporarily if they don't comply with your request, I suppose. That's something to consider I guess.

Assuming they really do login/logout every 10 seconds, I don't think you can stop that.

... At least not unless you A) shoot them for being stupid enough to do that (which isn't a bad idea really ;), or B) write a patch (for imapd? or authdaemon? or both?) to track the time of last login (maybe start by grabbing code from an "IMAP/POP before SMTP" patch somewhere?) and then refuse connections for the same ID that come less than a minute after the previous one.

HTH.

-jab



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to