Re: What shall we do with the GECOS field again?

From: Petr Baudis <pasky@suse.cz>
Date: 2005-09-20 02:16:36
Dear diary, on Mon, Sep 19, 2005 at 06:06:21PM CEST, I got a letter
where Junio C Hamano <junkio@cox.net> told me that...
> Petr Baudis <pasky@suse.cz> writes:
> 
> >   Well, I have to say that from the GECOS fields I saw, none use that
> > format, but a lot of them used the realname,phone,something,phone,...
> > format.
> 
> >   Opinions?
> 
> If the real world GECOS were either only plain and
> name,room,blah,... format as you say and assume I think a
> heuristics like you suggested would be better than the
> current heuristics of assuming everything is a name, but I
> haven't seen what "angry mob" actually has so cannot judge.

It uses the name,room,blah,... format.

> What do popular MUAs do to come up with the real-name fields?
> Don't they face the same problem, trying to using GECOS?

mutt:

  { "gecos_mask",       DT_RX,   R_NONE, UL &GecosMask, UL "^[^,]*" },

A regular expression used by mutt to parse the GECOS field of a password
entry when expanding the alias.  By default the regular expression is
set to "^[^,]*" which will return the string up to the first ","
encountered.  If the GECOS field contains a string like "lastname,
firstname" then you should set the gecos_mask=".*".

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Sep 20 02:18:37 2005

This archive was generated by hypermail 2.1.8 : 2005-09-20 02:19:10 EST