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.

CommentFileSizeAuthor
#6 user_mailman_register_rolesync.patch10.66 KBsamuelet

Comments

samuelet’s picture

Version: 6.x-1.3 » 6.x-2.x-dev
Category: support » feature

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.

samuelet’s picture

Status: Active » Postponed

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

bobgeier’s picture

This would be a very helpful feature.

Subscribing.

kentr’s picture

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?

samuelet’s picture

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.

samuelet’s picture

Status: Postponed » Needs review
StatusFileSize
new10.66 KB

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.

samuelet’s picture

Status: Needs review » Fixed

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

Status: Fixed » Closed (fixed)

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

kentr’s picture

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