- {"gecos_mask", DT_RX, R_NONE, UL &GecosMask, "^[^,]*"},
- /*
- ** .pp
- ** A regular expression used by Madmutt to parse the GECOS field of a password
- ** entry when expanding the alias. By default the regular expression is set
- ** to ``\fT^[^,]*\fP'' which will return the string up to the first ``\fT,\fP'' encountered.
- ** If the GECOS field contains a string like "lastname, firstname" then you
- ** should do: \fTset gecos_mask=".*"\fP.
- ** .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 Madmutt 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 Madmutt will expand
- ** ``Franklin'' to ``Franklin, Steve''.
- */