Moderation request email from a non existing user
Every day mailman (MM 3.3.3 (Tom Sawyer)) sends me an email with a held unsubcription request from X user. This user is not subcribed to that list anymore but every day an email is sending to the list owner. On the web interface there's nothing pending for approval or similar. Is there anyway to avoid receiving this anoyning email every day? Thanks in advance.
David
On 5/31/22 02:15, David Lopez via Mailman-users wrote:
Every day mailman (MM 3.3.3 (Tom Sawyer)) sends me an email with a held unsubcription request from X user. This user is not subcribed to that list anymore but every day an email is sending to the list owner. On the web interface there's nothing pending for approval or similar. Is there anyway to avoid receiving this anoyning email every day? Thanks in advance.
Postorius >=1.3.5 has an Unsubscription Requests
choice in the
Subscription requests
pull down. This choice will list the request
with and allow you to delete it.
For earlier Postorius this needs to be done via the REST API or via mailman shell. For example:
$ bin/mailman shell -l list@example.com
Welcome to the GNU Mailman shell
Use commit() to commit changes.
Use abort() to discard changes since the last commit.
Exit with ctrl+D does an implicit commit() but exit() does not.
The variable 'm' is the list@example.com mailing list
>>> pendingsdb = getUtility(IPendings)
>>> for token, data in pendingsdb.find(m, pend_type='unsubscription'):
... if data['token_owner'] == 'moderator':
... pendingsdb.confirm(token)
...
data about the request will be displayed here
>>> commit()
>>>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
I'm on postorius 1.3.4 so I tried to do via shell but after logging it shows a syntax error.
mailman shell -l mylist@mydomain(dot)com pendingsdb = getUtility(IPendings)
for token, data in pendingsdb.find(m, pend_type='unsubscription'): ... ... if data['token_owner'] == 'moderator': File "<console>", line 2 ... if data['token_owner'] == 'moderator': ^ IndentationError: expected an indented block ... pendingsdb.confirm(token) File "<console>", line 1 ... pendingsdb.confirm(token) ^ SyntaxError: invalid syntax
Is the fisrt time I use mailman shell. Any tips? Cheers,
David
On 6/1/22 00:45, David Lopez via Mailman-users wrote:
I'm on postorius 1.3.4 so I tried to do via shell but after logging it shows a syntax error.
mailman shell -l mylist@mydomain(dot)com pendingsdb = getUtility(IPendings)
for token, data in pendingsdb.find(m, pend_type='unsubscription'): ... ... if data['token_owner'] == 'moderator': File "<console>", line 2 ... if data['token_owner'] == 'moderator': ^ IndentationError: expected an indented block ... pendingsdb.confirm(token) File "<console>", line 1 ... pendingsdb.confirm(token)
You are entering the ...
prompts that I showed in my example. You show
... ... if data['token_owner'] == 'moderator':
the first ...
is the actual prompt from mailman shell. The second
...
is the prompt from my example which you shouldn't enter. You
should only be entering
pendingsdb = getUtility(IPendings)
for token, data in pendingsdb.find(m, pend_type='unsubscription'):
if data['token_owner'] == 'moderator':
pendingsdb.confirm(token)
commit()
Indentation is important. After pendingsdb.confirm(token)
enter an
empty line at the last ...
prompt.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
David Lopez
-
Mark Sapiro