From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/6722 Path: main.gmane.org!not-for-mail From: Hallvard B Furuseth Newsgroups: gmane.emacs.gnus.general Subject: Re: Is Username Expansion possible in GNUS? Date: Sat, 15 Jun 1996 21:06:38 +0200 (MET DST) Message-ID: <199606151906.VAA00907@gandalf.uio.no> References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035147137 4543 80.91.224.250 (20 Oct 2002 20:52:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:52:17 +0000 (UTC) Cc: Eric Hendrickson , Danny Siu , ding@ifi.uio.no Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id MAA32767 for ; Sat, 15 Jun 1996 12:23:48 -0700 Original-Received: from goggins.uio.no (6089@goggins.uio.no [129.240.201.2]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Sat, 15 Jun 1996 21:06:52 +0200 Original-Received: from ulrik.uio.no by goggins.uio.no with local-SMTP (PP) id <13042-0@goggins.uio.no>; Sat, 15 Jun 1996 21:06:39 +0200 Original-Received: by gandalf.uio.no ; Sat, 15 Jun 1996 21:06:38 +0200 (MET DST) Original-To: Sudish Joseph In-reply-to: Xref: main.gmane.org gmane.emacs.gnus.general:6722 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:6722 Sudish Joseph writes: >Eric Hendrickson writes: >> do this anyway). It might be slow if the passwd file is big, though on the >> machines where I've seen Pine do this, it is very quick and the passwd file >> has about 40000 (yes, 40k) entries.... > > You don't need to parse the whole file yourself, a getpwnam() call is > all that's needed. (...) A subprocess running > egrep seems the best bet, if you -really- want to do this. :-) If you make a subprocess, it can just as well be written to do getpwnam() directly. Regards, Hallvard