When I ran into the issue to synchronize all Drupal users with the mailing list subscriptions, I tried using the import module that comes with the user_mailman_register module. This did not work for me. However, user_mailman_register does sync the subscriptions when a user visits the subscription page in Drupal.
What I did with this patch is create a small link at the bottom on the user_mailman_register settings page which lets the admin sync ALL Drupal users with the mailing list subscriptions. It does this in a rather crude and non friendly user interface way. But works perfectly. I had to set the php timeout to unlimited and the script runs with no prompt or confirmation. For 12,000 users, this script finished in about 3 hours.
Either use this as is, or re-purpose in a friendly way to commit to HEAD.
| Comment | File | Size | Author |
|---|---|---|---|
| user_mailman_register-add-sync-all-function.patch | 896 bytes | sdemi |
Comments
Comment #1
jasonghall commentedI'm a drupal newbie. But I have my mailman list connected and sync works. But I have about 250 users that I imported into my drupal site. I tried 'subscribe on role change' but I am not sure if I am setting it up correctly. Your patch sounds like what I need, but how do I implement your patch? It looks like I add it to an already existing file?
Unless you know of a more current way of getting my existing users added to my mailman list.
TYIA
Comment #2
rjlang commentedSorry, no further changes will happen on versions 5.x and 6.x.