emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Service names on machines with bad service files


From: Lars Magne Ingebrigtsen
Subject: Re: Service names on machines with bad service files
Date: Mon, 19 Sep 2011 11:40:16 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> 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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]