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: Chong Yidong
Subject: Re: Service names on machines with bad service files
Date: Mon, 19 Sep 2011 15:07:28 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> 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?

I'd rather use just 993.  Doing (or (service-port-number "imaps") 993)
doesn't really make sense.  OTOH, no one will ever change the service
names from their standard values, so the value will always be 993
anyway.



reply via email to

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