Index: trunk/extensions/CodeReview/CodeReview.php |
— | — | @@ -144,7 +144,9 @@ |
145 | 145 | $wgCodeReviewENotif = false; |
146 | 146 | |
147 | 147 | // Set this to an e-mail list to send all comments to |
148 | | -$wgCodeReviewCommentWatcher = false; |
| 148 | +$wgCodeReviewCommentWatcherEmail = false; |
| 149 | +// Name to use in the To: header of e-mails to the list. Ignored if $wgCodeReviewCommentWatcherEmail isn't set |
| 150 | +$wgCodeReviewCommentWatcherName = "CodeReview comments list"; |
149 | 151 | |
150 | 152 | // What images can be used for client-side side-by-side comparisons? |
151 | 153 | $wgCodeReviewImgRegex = '/\.(png|jpg|jpeg|gif)$/i'; |
Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -462,7 +462,8 @@ |
463 | 463 | // If we've got a spam list, send e-mails to it too |
464 | 464 | if ( $wgCodeReviewCommentWatcher ) { |
465 | 465 | $watcher = new User(); |
466 | | - $watcher->setEmail( $wgCodeReviewCommentWatcher ); |
| 466 | + $watcher->setEmail( $wgCodeReviewCommentWatcherEmail ); |
| 467 | + $watcher->setName( $wgCodeReviewCommentWatcherName ); |
467 | 468 | $users[0] = $watcher; // We don't have any anons, so using 0 is safe |
468 | 469 | } |
469 | 470 | |