git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Petr Baudis <pasky@suse.cz>
Date
Sep 19, 2005, 16:16 UTC
Message-ID
<20050919161636.GA18320@pasky.or.cz>
In-Reply-To
<7vll1trqiq.fsf@assigned-by-dhcp.cox.net>

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...

Show 13 quoted lines
> 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
Previous: Junio C HamanoNext: Linus Torvalds
Message 9 of 20 in “What shall we do with the GECOS field again?”
  1. Petr BaudisSep 19, 2005
  2. Kevin O'RiordanSep 19, 2005
  3. Matthias UrlichsSep 19, 2005
  4. A Large Angry SCMSep 19, 2005
  5. Matthias UrlichsSep 19, 2005
  6. A Large Angry SCMSep 19, 2005
  7. Petr BaudisSep 19, 2005
  8. Junio C HamanoSep 19, 2005
  9. Petr BaudisSep 19, 2005
  10. Linus TorvaldsSep 19, 2005
  11. Junio C HamanoSep 19, 2005
  12. Linus TorvaldsSep 19, 2005
  13. Ryan AndersonSep 20, 2005
  14. Linus TorvaldsSep 20, 2005
  15. Junio C HamanoSep 20, 2005
  16. Nikolai WeibullSep 19, 2005
  17. Nikolai WeibullSep 19, 2005
  18. Junio C HamanoSep 20, 2005
  19. Junio C HamanoSep 20, 2005
  20. Nikolai WeibullSep 20, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.