Closed (fixed)
Project:
Mailman Manager
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
30 Oct 2007 at 05:12 UTC
Updated:
18 Mar 2008 at 05:05 UTC
It seems this module does nothing for new users. The code for the function mailman_manager_user() has this comment:
/**
* Implementation of hook_user()
* Checks whether an email address is subscribed to the mailinglist
* when a new user signs up. If so, changes uid from 0 to the new uid
* in sn_subscriptions so that the user's subscription status is known
* when he logs in.
*/
function mailman_manager_user($op, &$edit, &$account, $category = NULL) {
But in fact, the code simply looks like that for the mailing list tab under user/edit.
How can the code be rectified so that it checks if a user is already in the mailing list, and if they are not, automatically subscribe them (perhaps based on the value of an additional list setting)?
Thanks,
Chris
Comments
Comment #1
cboshuizen commentedAny ideas? Right now I have found a work around by redirecting new users to the mailman page after registration, but it is not optimal. I'd love have this documented but absent functionality!
Comment #2
arturoramos commentedThat "documentation" is a vestige of the sn_subscriptions module (from which the code was replicated) as the comment indicates. There is no way for Drupal to know whether a new Drupal user is already signed up for a Mailman mailing list as there is no true two-way communication between Mailman and this module.
I am closing out this issue because this was never meant to be a functionality of the module and there is really no way (that I can think of) of implementing such a function even if we wanted to.
Sorry.