Subscribing users stuck in pending hell
Hi,
We frequently end up with users who never receive their email to confirm their account, leaving them in a netherworld where they cannot become list members. If I try to subscribe them via the mass subscribe option, it says I can't because their subscription is pending. If I go to subscription requests, it says there are 0. If I go to "non-members" in the UI, I can find them, but I don't see an option to convert them to members.
So what's the solution to getting these people subscribed and no longer stuck in limbo?
Thanks!
--Quanah
On 5/24/23 08:11, Quanah Gibson-Mount wrote:
Hi,
We frequently end up with users who never receive their email to confirm their account, leaving them in a netherworld where they cannot become list members. If I try to subscribe them via the mass subscribe option, it says I can't because their subscription is pending. If I go to subscription requests, it says there are 0. If I go to "non-members" in the UI, I can find them, but I don't see an option to convert them to members.
Subscription requests says 0 because it only counts those pending moderator approval, but if you pull down the menu and select Pending Confirmation, it should show the request and enable you to delete it, and then mass subscribe will work.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
--On Wednesday, May 24, 2023 9:21 AM -0700 Mark Sapiro <mark@msapiro.net> wrote:
On 5/24/23 08:11, Quanah Gibson-Mount wrote:
Hi,
We frequently end up with users who never receive their email to confirm their account, leaving them in a netherworld where they cannot become list members. If I try to subscribe them via the mass subscribe option, it says I can't because their subscription is pending. If I go to subscription requests, it says there are 0. If I go to "non-members" in the UI, I can find them, but I don't see an option to convert them to members.
Subscription requests says 0 because it only counts those pending moderator approval, but if you pull down the menu and select Pending Confirmation, it should show the request and enable you to delete it, and then mass subscribe will work.
The only elements that have a drop down menu are:
Users Mass operations
There is no "Pending Confirmation" with either of these. Note: Postorius Version 1.2.4
--Quanah
On 5/24/23 08:31, Quanah Gibson-Mount wrote:
The only elements that have a drop down menu are:
Users Mass operations
There is no "Pending Confirmation" with either of these. Note: Postorius Version 1.2.4
This was added in Postorius 1.3.0 which was released almost 4 years ago. If you can't upgrade, see https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/... for a mailman shell script.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
--On Wednesday, May 24, 2023 10:13 AM -0700 Mark Sapiro <mark@msapiro.net> wrote:
This was added in Postorius 1.3.0 which was released almost 4 years ago. If you can't upgrade, see https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/messa ge/6GKWYT3ZMXPHMGSXUW6OI6J2222AR7OV/ for a mailman shell script.
That shell script seems to have errors:
pendings = getUtility(IPendings) for token, data in pendings.find( ... token_owner=TokenOwner.subscriber, ... pend_type='subscription'): ... print("hello") ... Traceback (most recent call last): File "<console>", line 3, in <module> File "/usr/lib/python3/dist-packages/mailman/database/transaction.py", line 85, in wrapper return function(args[0], config.db.store, *args[1:], **kws) TypeError: find() got an unexpected keyword argument 'token_owner'
--Quanah
On May 24, 2023 9:45:45 AM PDT, Quanah Gibson-Mount <quanah@fast-mail.org> wrote:
That shell script seems to have errors:
pendings = getUtility(IPendings) for token, data in pendings.find( ... token_owner=TokenOwner.subscriber, ... pend_type='subscription'): ... print("hello") ... Traceback (most recent call last): File "<console>", line 3, in <module> File "/usr/lib/python3/dist-packages/mailman/database/transaction.py", line 85, in wrapper return function(args[0], config.db.store, *args[1:], **kws) TypeError: find() got an unexpected keyword argument 'token_owner'
Your Mailman core is too old for that script. Tell me your core version and I will try to make one that works for you.
-- Mark Sapiro <mark@msapiro.net> Sent from my Not_an_iThing with standards compliant, open source software.
--On Wednesday, May 24, 2023 3:34 PM -0700 Mark Sapiro <mark@msapiro.net> wrote:
On May 24, 2023 9:45:45 AM PDT, Quanah Gibson-Mount <quanah@fast-mail.org> wrote:
That shell script seems to have errors:
pendings = getUtility(IPendings) for token, data in pendings.find( ... token_owner=TokenOwner.subscriber, ... pend_type='subscription'): ... print("hello") ... Traceback (most recent call last): File "<console>", line 3, in <module> File "/usr/lib/python3/dist-packages/mailman/database/transaction.py", line 85, in wrapper return function(args[0], config.db.store, *args[1:], **kws) TypeError: find() got an unexpected keyword argument 'token_owner'
Your Mailman core is too old for that script. Tell me your core version and I will try to make one that works for you.
Thanks Mark! We're hoping to upgrade to something more current next month. Right now apt shows:
apt show mailman Package: mailman Version: 1:2.1.29-1+deb10u5
Regards, Quanah
--On Wednesday, May 24, 2023 4:11 PM -0700 Quanah Gibson-Mount <quanah@fast-mail.org> wrote:
Thanks Mark! We're hoping to upgrade to something more current next month. Right now apt shows:
apt show mailman Package: mailman Version: 1:2.1.29-1+deb10u5
It was pointed out to me that in Debian the package is mailman3, not mailman:
Package: mailman3 Version: 3.2.1-1
Thanks!
--Quanah
On 5/24/23 16:07, Quanah Gibson-Mount wrote:
Package: mailman3 Version: 3.2.1-1
For that version pendings don't have a token_owner. This script will delete all pending subscriptions, even those waiting moderator approval, so if there are any of those, they should be handled first.
>>> pendings = getUtility(IPendings)
>>> for token, data in pendings.find(
... pend_type=subscription):
... pendings.confirm(token, expunge=True)
...
>>> commit()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
--On Wednesday, May 24, 2023 6:11 PM -0700 Mark Sapiro <mark@msapiro.net> wrote:
On 5/24/23 16:07, Quanah Gibson-Mount wrote:
Package: mailman3 Version: 3.2.1-1
For that version pendings don't have a token_owner. This script will delete all pending subscriptions, even those waiting moderator approval, so if there are any of those, they should be handled first.
>>> pendings = getUtility(IPendings) >>> for token, data in pendings.find( ... pend_type=subscription): ... pendings.confirm(token, expunge=True) ... >>> commit()
Thanks Mark! I had to change it to pend_type='subscription' but other than that it worked! :)
Regards, Quanah
participants (2)
-
Mark Sapiro
-
Quanah Gibson-Mount