Handle special email cases - e.g. multiple email addresses
This commit is contained in:
parent
1ad482978d
commit
0c9d808302
@ -32,6 +32,13 @@ function writeUsers($projectsById, $membershipMapping) {
|
||||
foreach ($membershipMapping as $email => $projectId) {
|
||||
fwrite ($userHandle, "$email,{$projectsById[$projectId]}\n");
|
||||
}
|
||||
// Handle special user cases.
|
||||
$specialUsers = fopen(__DIR__ . '/data/specialusers.csv', 'r');
|
||||
while (!feof($specialUsers)) {
|
||||
$specialUser = fread($specialUsers, 1000);
|
||||
fwrite ($userHandle, $specialUser);
|
||||
}
|
||||
fclose($specialUsers);
|
||||
fclose($userHandle);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user