.TH GETFN 1 "September 17, 2002" CSLib "CSLib Utilities" .nh .SH NAME getfn \- Get a user's full name and email address .SH SYNOPSIS .B getfn [ \fB-i\fP ] [ \fB-q\fP ] [ \fB-f\fP ] [ \fB-d DOMAIN\fP ] \fBusername\fP [ \fB...\fP ] .SH DESCRIPTION .B getfn 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. .PP .B getfn 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'. .SH USAGE Run .B getfn 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. .TP \fB-i\fP, \fB--ignore-case\fP This will do case-insensitive searching. .TP \fB-q\fP, \fB--quiet\fP This will not print the 'querying...' line (which is needed for mutt). .TP \fB-f\fP, \fB--force-search\fP This will force searching the password file for all matches, even if there is a user by that name in existance. .TP \fB-d\fP, \fB--domain=DOMAIN\fP This will set the domain name used in printed email addresses to the one specified. If none is specified, it will default to the one specified in the machine's hostname, and if that is not set, then the one specified as default at compile time (by default ecs.soton.ac.uk). .TP \fB-h\fP, \fB--help\fP This will display usage information. .SH LIMITATIONS This program has only been tested under the Department of Electronics and Computer Science at the University of Southampton, with NIS based searching for speed. This program should default to standard passwd searching if no NIS is setup, however this has not been extensively tested. .SH AUTHOR .B getfn was written by Alan Ford for use with the CSLib (http://www.cslib.ecs.soton.ac.uk) installation of mutt on the ECS systems. .SH SEE ALSO .BR mutt (1), .BR getpwent (3), .BR passwd (5)