# Functions
DisableOkq turns off using okq for job storing this should ONLY be called during testing.
GenerateEmailID generates a uniqueID and stores a record of an intended email this is used in okq.go and in tests.
GetLastUniqueID gets the last StatDoc for the given recipient and uniqueID.
this is mostly for testing purposes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StoreEmailBounce stores a new time when the email bounced.
StoreEmailFlags updates the email with new flags restrictions.
StoreEmailSpam stores a new time when the email was spammed.
StoreSendJob creates a new Mail job with jobContents and sends it to okq.
StoreStatsJob creates a new statsJob with jobContents and sends it to okq.
VerifyEmailAllowed verifies that we're allowed to send an email with flags to recipient.
# Variables
MongoDisabledErr is returned when we need mongo but don't have it.