From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Service names on machines with bad service files Date: Mon, 19 Sep 2011 11:40:16 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316425475 8349 80.91.229.12 (19 Sep 2011 09:44:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Sep 2011 09:44:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 19 11:44:31 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R5aOr-00040y-Gy for ged-emacs-devel@m.gmane.org; Mon, 19 Sep 2011 11:44:29 +0200 Original-Received: from localhost ([::1]:58519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5aOr-0002Ua-3z for ged-emacs-devel@m.gmane.org; Mon, 19 Sep 2011 05:44:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5aOo-0002US-E4 for emacs-devel@gnu.org; Mon, 19 Sep 2011 05:44:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5aOm-0005Jn-T1 for emacs-devel@gnu.org; Mon, 19 Sep 2011 05:44:26 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:59010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5aOm-0005J5-Np for emacs-devel@gnu.org; Mon, 19 Sep 2011 05:44:24 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R5aOS-0001lu-8q for emacs-devel@gnu.org; Mon, 19 Sep 2011 11:44:04 +0200 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 19 Sep 2011 11:30:22 +0200") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUCAQExMTHX1teWlZdx cXIfHh5jY2QLCgpUVFT////9/f3ExMVERETv7++oqKmEhIWafzioAAABj0lEQVQ4jWOYiQMwEJaY 7JKWlo9NYtpB9nIJbBJzCg49rYDzViLpEAi24MGmY777YbMarBKGFW8CsUlMSQ8XxSoxozQ8sBGr c8PLA7HqmBbAzsCK1SgGBhwSoQHYJaacCJDBLiFeoxyKImH3+N3ufUbvpsgctfs4y9hYz+6x8Suw xG1dpdu7L+lOk/vT0jh39yUlJd3bu8ASuzRvz9SaNGla9tbTgnO1dmrO1NTVAktornw3U3O29rQj ruERk2Zqas7S1FwJltikdPem5t1F02TO9xyepH3z0aSbSppgiVlQV4U+2v0Yq3Mb7R5nYA0rcdEz 2ANR5gCOIGlrwC4x+YugXSmUvQpFx7fQb6HYdMwos/mNVWJatnlPKTaJKR0N4eexW+4Y8x+bxPxG u88mWO1gKPnSgV2CPRSr5dNCj6UIYpUQL5fHnkTz2hl9sPrDLjUAa3xMMXN1b1uJzaj80K8m2CSm hLqcMMMmMfnzOzsPbBLz//uk9GA1yk38hCg2idnGj9+9w+ZcNIBIiWgAAC6Eh309T5MoAAAAAElF TkSuQmCC X-Now-Playing: Patrick Cowley & Jorge Socarras's _Catholic_: "I Never Want To Fall In Love" X-MailScanner-ID: 1R5aOS-0001lu-8q MailScanner-NULL-Check: 1317030245.0176@SH6lHM8ahtFuvsOp1hx5lw X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144092 Archived-At: Lars Magne Ingebrigtsen writes: > 2) Somehow determine that the OS doesn't know what "imaps" is, and use > "993" as a fallback. I have no idea whether that's easy to do. This would be very easy to do. It would mean making a new C-level function that basically just calls getservbyname and returns the port number. So nnimap would the call `open-network-stream' with (or (service-port-number "imaps") 993). That sounds quite nice, doesn't it? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/