diff options
author | terry%mozilla.org <> | 1999-06-15 00:33:51 +0000 |
---|---|---|
committer | terry%mozilla.org <> | 1999-06-15 00:33:51 +0000 |
commit | c9470b0400e94e5629f24592b8e438e8eca5851c (patch) | |
tree | 9e4ab2e2c035af6d8d7ce0c793ac010e6b6bbba9 /defparams.pl | |
parent | 52cf03bd200436d1795a5b0ffcf3ead827b596cc (diff) | |
download | bugs-c9470b0400e94e5629f24592b8e438e8eca5851c.tar bugs-c9470b0400e94e5629f24592b8e438e8eca5851c.tar.gz bugs-c9470b0400e94e5629f24592b8e438e8eca5851c.tar.bz2 bugs-c9470b0400e94e5629f24592b8e438e8eca5851c.tar.xz bugs-c9470b0400e94e5629f24592b8e438e8eca5851c.zip |
Added the ability to configure bugzilla so that we only allow local
usernames for email addresses.
Diffstat (limited to 'defparams.pl')
-rw-r--r-- | defparams.pl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/defparams.pl b/defparams.pl index c471ebd62..2f4bef52e 100644 --- a/defparams.pl +++ b/defparams.pl @@ -307,5 +307,21 @@ DefParam("expectbigqueries", "b", 0); +DefParam("emailregexp", + 'This defines the regexp to use for legal email addresses. The default tries to match fully qualified email addresses. Another popular value to put here is <tt>^[^@, ]$</tt>, which means "local usernames, no @ allowed.', + "t", + q:^[^@, ]*@[^@, ]*\\.[^@, ]*$:); + +DefParam("emailregexpdesc", + "This describes in english words what kinds of legal addresses are allowed by the <tt>emailregexp</tt> param.", + "l", + "A legal address must contain exactly one '\@', and at least one '.' after the \@, and may not contain any commas or spaces."); + +DefParam("emailsuffix", + "This is a string to append to any email addresses when actually sending mail to that address. It is useful if you have changed the <tt>emailregexp</tt> param to only allow local usernames, but you want the mail to be delivered to username\@my.local.hostname.", + "t", + ""); + + 1; |