User login

Where does Simplenews hide not-yet-confirmed subscribers?

Any e-mail address that signs up is immediately added to the simplenews_subscribers table as an activated user. Users are only deactivated if they do so (or are made so by an admin) specifically; this is what prevents people from being reactivated.

The simplenews_snid_tid table keeps track of what newsletters people are signed up to, where snid is the Simplenews subscriber ID and tid is the newsletter taxonomy ID.

A person in the simplenews_subscribers table who is not in the simplenews_snid_tid table is someone who has not yet confirmed their subscription -- or, messily, someone who has unsubscribed from each newsletter would still be here also.

Such people (addresses) do not show up in the all subscribers listing in the subscriber listing administrative interface for the Simplenews module.

Unfortunately, this means that on a site with multiple newsletters, even if you peek at this table to see if some people just haven't gotten their subscription confirmation e-mail for some reason, you don't have a way of knowing which list someone tried to sign up for.

Altogether, this is an ugly architecture. The deactivation is global rather than per-list (so an unsubscribe rather than a deactivation would be re-subscribed in a mass update, i think), and the not-yet-confirmed state is only implied.

Thanks to the great folk at the Manchester, New Hampshire meetup for helping me finally get around to looking at this.

Searched words: 
Simplenews newsletter module

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.