# Assumes a file named gam-archive2.sh exists in the same folder
# along with a file named emails.txt that includes one email prefix per line of the people you want to delete
# e.g. something like this - no # symbols
# noah
# mike
# 

# read the 
emails = File.read("emails.txt").lines.map(&:chomp) 
puts "#{emails.length} emails found in emails.txt"

# run the script for each email
emails.each do |email|
  puts `sh gam-archive2.sh #{email} mail`
end