wouldn't returning here not set last_spam_time and just make it endlessly attempt at sending stuff until it goes through?
Unless that's intended.