From: Thomas Roessler Date: Tue, 18 Jan 2000 22:17:45 +0000 (+0000) Subject: Documentation fix about gecos_mask. From Will Fiveash. X-Git-Tag: mutt-1-1-3-rel~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf563be1a4e27b355bf5678d348d600eb3c9c005;p=mutt Documentation fix about gecos_mask. From Will Fiveash. --- diff --git a/alias.c b/alias.c index 5a12853b..c226ee93 100644 --- a/alias.c +++ b/alias.c @@ -90,7 +90,7 @@ static ADDRESS *mutt_expand_aliases_r (ADDRESS *a, LIST **expn) /* Use regular expression to parse Gecos field. This result of the * parsing will be used as the personal ID string when the alias is - * expaned. + * expanded. */ if (regexec (GecosMask.rx, pw->pw_gecos, 1, pat_match, 0) == 0) { diff --git a/init.h b/init.h index 318cb6f6..66c4911c 100644 --- a/init.h +++ b/init.h @@ -548,7 +548,13 @@ struct option_t MuttVars[] = { ** 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_regexp=".*". + ** should set the gecos_mask=".*". + ** .pp + ** This can be useful if you see the following behavior: you address a e-mail + ** to user ID stevef whose full name is Steve Franklin. If mutt expands + ** stevef to "Franklin" stevef@foo.bar then you should set the gecos_mask to + ** a regular expression that will match the whole name so mutt will expand + ** "Franklin" to "Franklin, Steve". */ { "hdr_format", DT_SYN, R_NONE, UL "index_format", 0 }, /*