Manual:removeInvalidEmails.php
Jump to navigation
Jump to search
MediaWiki ファイル: removeInvalidEmails.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.35.2 • 1.31.14 |
クラス: | RemoveInvalidEmails |
removeInvalidEmails.php はメンテナンス スクリプトです。
Emails are validated before users can add them, but this was not always the case so older users may have invalid ones.
This script can be used to remove emails that are invalid from the user_email
column of the user table.
By default it does a dry-run; pass --commit
to actually update the database.
詳細
The script is checking all users, who have provided an email address, which has not yet been authenticated. It validates an email address using an HTML5 specification found at: http://www.whatwg.org/html/states-of-the-type-attribute.html#valid-e-mail-address
The implementation is not 100% identical to, but comes close to RFC 2822. The script can be used to remove all invalid email addresses.
使用法
オプション/パラメーター | 説明 |
---|---|
--commit | Whether to actually update the database. Defaults to false so that the script, if --commit is not provided, is run in dry-run mode.
|