From: Sudish Joseph <sudish@mindspring.com>
Cc: Danny Siu <dsiu@mv.us.adobe.com>, ding@ifi.uio.no
Subject: Re: Is Username Expansion possible in GNUS?
Date: 14 Jun 1996 21:44:01 -0400 [thread overview]
Message-ID: <m2hgsdhme6.fsf@atreides.erehwon.org> (raw)
In-Reply-To: Eric Hendrickson's message of Fri, 14 Jun 1996 18:02:32 -0500
Eric Hendrickson <edh@lenti.med.umn.edu> 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.
Unfortunately, Emacs doesn't offer much of an interface to getpw*().
All the functions under user-* operate on your current (r|e)uid,
except for user-login name, which lets you specify an arbitrary uid.
Useless, without a way to map from a name to a uid.
Sucking in the whole password file and using re-search-forward
wouldn't be slow in itself, but it might make you thrash on big passwd
files and be totally useless in the face of NIS. A subprocess running
egrep seems the best bet, if you -really- want to do this. :-)
-Sudish
next prev parent reply other threads:[~1996-06-15 1:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-13 21:47 Danny Siu
1996-06-14 0:32 ` Lars Magne Ingebrigtsen
1996-06-14 22:36 ` Danny Siu
1996-06-14 23:02 ` Eric Hendrickson
1996-06-15 1:44 ` Sudish Joseph [this message]
1996-06-15 19:06 ` Hallvard B Furuseth
1996-06-15 1:51 ` Lars Magne Ingebrigtsen
1996-06-16 21:27 ` Mark Eichin
1996-06-17 2:33 ` Lars Magne Ingebrigtsen
1996-06-17 18:21 ` Edward J. Sabol
1996-06-18 2:38 ` Sudish Joseph
1996-06-18 16:33 ` Hallvard B Furuseth
1996-06-18 16:56 ` Lars Magne Ingebrigtsen
1996-06-18 17:15 ` Hallvard B Furuseth
1996-06-14 13:08 ` David Worenklein
1996-06-14 15:45 ` Kai Grossjohann
1996-06-17 5:30 ` Mark Breslauer
1996-06-17 14:23 ` BBDB and Gnus 5.2 Jack Vinson
1996-06-17 16:14 ` Is Username Expansion possible in GNUS? Kai Grossjohann
1996-06-18 14:55 ` Hans de Graaff
1996-06-18 15:57 ` Jack Vinson
1996-06-25 17:11 ` Brian Edmonds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2hgsdhme6.fsf@atreides.erehwon.org \
--to=sudish@mindspring.com \
--cc=ding@ifi.uio.no \
--cc=dsiu@mv.us.adobe.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).