From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65061 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: closing all inactive server connections Date: Fri, 17 Aug 2007 08:19:26 +0900 Organization: Emacsen advocacy group Message-ID: References: <87zm0tyr2r.fsf@mocca.josefsson.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187306471 16483 80.91.229.12 (16 Aug 2007 23:21:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2007 23:21:11 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13571@lists.math.uh.edu Fri Aug 17 01:21:09 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1ILoeG-0007DE-Ei for ding-account@gmane.org; Fri, 17 Aug 2007 01:21:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1ILodW-0002Vd-KL; Thu, 16 Aug 2007 18:20:18 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1ILodV-0002VH-59 for ding@lists.math.uh.edu; Thu, 16 Aug 2007 18:20:17 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1ILodQ-00082e-KQ for ding@lists.math.uh.edu; Thu, 16 Aug 2007 18:20:17 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ILodN-00008r-00 for ; Fri, 17 Aug 2007 01:20:09 +0200 Original-Received: from [66.225.201.151] (port=59232 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.63) (envelope-from ) id 1ILocm-00004v-Bx for ding@gnus.org; Thu, 16 Aug 2007 18:19:33 -0500 X-Hashcash: 1:20:070816:ding@gnus.org::NEPFgx4Hm3QmSjeo:00001G0j X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:a/fU3hWh4zu5RwafGEuZv+HiJ9Y= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65061 Archived-At: >>>>> Ted Zlatanov wrote: TZ> That's fine. So it should be imap-logout-timeouts, an alist of TZ> (server-regex seconds) cells. Agreed? Isn't it much better that it is a server variable? I mean, we leave `imap-logout-timeout' as is, but bind it by `nnimap-logout-timeout'. Because this is a server variable, you can specify it per server in its select-method. We can probably make it come true in nnimap.el as follows: #v+ (defvoo nnimap-logout-timeout nil "Close server immediately if it can't logout in this number of seconds. If it is nil, never close server until logout completes.") [...] (let ((imap-logout-timeout nnimap-logout-timeout)) (imap-open ...)) (let ((imap-logout-timeout nnimap-logout-timeout)) (imap-close ...)) #v- Note that `imap-open' will run `imap-logout' when opening a server fails. Another similar way is to pass the value of `nnimap-logout-timeout' to `imap-open' and `imap-close' by way of the new optional argument `logout-timeout' as follows: #v+ ;; imap.el (defun imap-open (server &optional port stream auth buffer logout-timeout)... (defun imap-close (&optional buffer logout-timeout)... ;; nnimap.el (imap-open ... nnimap-logout-timeout) (imap-close ... nnimap-logout-timeout) #v-