--- connection.c.orig Fri Nov 14 20:15:20 2003 +++ connection.c Fri Sep 30 18:30:55 2005 @@ -146,6 +146,7 @@ c->state = authorisation; c->idlesince = time(NULL); + c->start_time = c->idlesince; c->frozenuntil = 0; if (!connection_sendresponse(c, 1, c->timestamp)) { @@ -206,7 +207,14 @@ if (connection_isfrozen(c) || buffer_available(c->wrb) > 0) { c->do_shutdown = 1; return IOABS_WOULDBLOCK; - } else return c->io->shutdown(c); + } else { + if (c->m) { + mailbox curmbox; + curmbox = c->m; /* this connection's mailbox */ + (curmbox)->apply_changes(curmbox); + } + return c->io->shutdown(c); + } } /* connection_send_now CONNECTION DATA COUNT