]> granicus.if.org Git - mutt/commitdiff
Documentation fix about gecos_mask. From Will Fiveash.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 18 Jan 2000 22:17:45 +0000 (22:17 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 18 Jan 2000 22:17:45 +0000 (22:17 +0000)
alias.c
init.h

diff --git a/alias.c b/alias.c
index 5a12853b4f620bbcaab48a11595bca4320abfc7d..c226ee936877c82e39f9297cfef2cc2c28c5b433 100644 (file)
--- 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 318cb6f62cfdabaee3b95360e2e98dab91846061..66c4911c943bcafd2befd03c13b553f434cf33d4 100644 (file)
--- 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 },
   /*