forcing server to send the BYE message.

Ken Murchison ken at oceana.com
Sat Oct 2 09:26:59 EDT 2004


Claudio Saavedra V. wrote:

> On Fri, 2004-10-01 at 19:53, Ken Murchison wrote:
> 
>>Claudio Saavedra V. wrote:
>>
>>>Hi all.
>>>
>>>I am writing a client for the cyrus-imap server, and i am dealing with
>>>the autologout feature of the client, so to run my test cases i need the
>>>server to logout and send the
>>>
>>>* BYE idle for too long
>>>
>>>message faster than the default and minimun 30 minutes (because if
>>>running a test case each 30 minutes, i will finish coding next year).
>>>
>>>How can i *force* the server to send that message?
>>
>>Create a <configdir>/msg/shutdown file with some text.  As soon as a 
>>non-admin logs in they will get a * BYE [ALERT]
> 
> 
> Yeah, i already try that (but with a admin user, because thats what i
> need) but didn't work. Now i understand why.
> 
> Is there any other way to do it, but logging out admins?

If you *have* to do this as an admin, then edit out the admin check 
where we checkl for a shutdown file at the top of cmdloop().


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list