Section: CSLib Utilities (1)
Updated: September 17, 2002
Return to Main Contents
getfn - Get a user's full name from their email address in ECS
username [ ... ]
will get the full name of a username from the system passwd file. This
is designed as an external query program for the mutt mail client.
runs two queries. First, it looks to see if the username exists. If it
does, it outputs the full name and email address, then exits. This is
useful for 'tab' (actually, it's Ctrl+t) email address completion in mutt.
If the username does not exist, it then traverses the passwd file looking
for any entries that contain the query string in the username or the full
name, then prints out a list of these users' names and email addresses.
You can execute a query like this at any time in mutt using 'Q'.
followed by a username or part of a username or user's full name (or
multiple instances of such a value), and it will return a list of
usernames and full names matching that value.
This program is designed specifically for use in University of
Southampton Department of Electronics and Computer Science only,
since for speed it queries NIS databases rather than using getpwent(3),
and it automatically appends @ecs.soton.ac.uk as the domain name.
was written by Alan Ford
for use with the CSLib (http://www.cslib.ecs.soton.ac.uk) installation
of mutt on the ECS systems.
- SEE ALSO