umts / bojangles

Ruby script for monitoring the PVTA realtime bus departures feed
MIT License
0 stars 0 forks source link

Don't send the same email multiple times #20

Closed dfaulken closed 8 years ago

dfaulken commented 8 years ago

The easiest way I can think of to do this is to salt each email as it goes out and store the hash. Then as each is preparing to send, check against the list of existing hashes.

Can anyone think of something more efficient? Or a less involved way to boil text down into a quasi-numerical value?