Handle special email cases - e.g. multiple email addresses

This commit is contained in:
Jon Goldberg 2018-01-22 14:12:23 -05:00
parent 1ad482978d
commit 0c9d808302

View File

@ -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);
}