On sending email to a user, we should generate an "nomailtoken"
(similar to a logtoken) of randomly generated letters. A table
should correlate those tokens with the uid and message type being
sent. At the bottom of the email should be a link to messages.pl?
op=nomail&nomailtoken=abcdefg, and a hit to that URL should
immediately set that message type for that user from "mail" to
The user in question should not be logged-in for that hit, of course,
so $user should remain the AC. A confirmation of the action should
be printed on the resulting webpage, and maybe logged as a web-
based message (not sure if that's a good idea), but not sent in
There should also be, at the bottom of each email, a "master"
nomailtoken which will turn off all mail for all message types for
This will not only reduce our inflow of email from users who can't
figure out how to log in and turn off messaging, it will increase the
targeting on our email ads because more of the users who don't
read them will not be getting them.
Log in to post a comment.