Auto subscribe/unsubscribe via roles

bkat - April 29, 2009 - 01:44
Project:User mailman register
Version:6.x-2.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Is it possible to have users automatically subscribed/unsubscribed via their roles? For example, if I assign someone to the coaches role, I'd love it if they were subscribed to the coaches email list. And if they are removed from that role, they should be unsubscribed from the list.

#1

samuelet - April 29, 2009 - 07:44
Version:6.x-1.3» 6.x-2.x-dev
Category:support request» feature request

I know that http://drupal.org/project/mailman_groups supported it but i never used it and i don't know if it's still compatible with current UMR releases.
At this moment, UMR by itself unsubscribes automatically users when they are removed from groups with "Can subscribe to ..." (and any of their groups has got that permission), but, viceversa, it's not able to autosubscribe a user who gets a new group with list authorization.

#2

samuelet - April 30, 2009 - 15:12
Status:active» postponed

I'm thinking to implement UMR workflow actions to achieve this request. Posponed after a more stable release.

#3

bobgeier - May 19, 2009 - 01:38

This would be a very helpful feature.

Subscribing.

#4

kentr - August 25, 2009 - 07:03

Ditto. I'd love this for a subscription site using uc_roles: automatically subscribes user to the club mailing list when their role is set after payment.

What can I do to help get this going?

#5

samuelet - August 25, 2009 - 14:08

I've already coded 80% of this feature but at this moment i'm too busy with other works, so you have to wait that i get more free time for UMR.
However, supporting its development with a donation also helps.

#6

samuelet - September 17, 2009 - 22:03
Status:postponed» needs review

The attached patch adds the requested functionality, but it needs community review because i've no time to fully test it.
It applies against the current Dev release, maybe also to 6.x-2.0 (read the drupal manual about patches if you don't know how to apply it).
Don't forget then to do the drupal upgrade procedure.
The option is per-list, and you can enabled it in the UMR list page. When it's disabled, role permissions will never checked to subscribe/unsubscribe a user.

AttachmentSize
user_mailman_register_rolesync.patch 10.66 KB

#7

samuelet - October 2, 2009 - 08:47
Status:needs review» fixed

Patch committed in the dev release. Feel free to open new issues for related bugs.

#8

System Message - October 16, 2009 - 08:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#9

kentr - October 17, 2009 - 02:06

Awesome! Can't wait to test. When I get a working version of the custom Mailman interface, this will rock my club's world.

 
 

Drupal is a registered trademark of Dries Buytaert.