I'm unclear on how to approve via email a message sent to a list.
As list owner you receive a 'requires approval' email. It then says:
"If you reply to this message, keeping the Subject: header intact, Mailman will discard the held message. Do this if the message is spam. If you reply to this message and include an Approved: header with the list password in it, the message will be approved for posting to the list. The Approved: header can also appear in the first line of the body of the reply."
Question: if I want to approve the message, where do I "...include an Approved: header with the list password in it" ?
TY!
On 10/28/21 9:33 AM, Christian Stalberg via Mailman-users wrote:
I'm unclear on how to approve via email a message sent to a list.
As list owner you receive a 'requires approval' email. It then says:
"If you reply to this message, keeping the Subject: header intact, Mailman will discard the held message. Do this if the message is spam. If you reply to this message and include an Approved: header with the list password in it, the message will be approved for posting to the list. The Approved: header can also appear in the first line of the body of the reply."
Question: if I want to approve the message, where do I "...include an Approved: header with the list password in it" ?
First of all, the required password is the list's moderator password. If
the list was imported from Mailman 2.1 and the list's moderator password
was set there, it was imported. Otherwise, you must set one. You can't
currently do this via postorius it has to be done via mailman shell
or
via the REST API. Via REST, something like
curl --user restadmin:restpass -X PATCH --data
'moderator_password=new_password'
http://localhost:8001/3.1/lists/list.example.com/config
should do it. Via mailman shell
you need to encrypt the password
before setting it. e.g.
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
>>> from mailman.config import config
>>> m.moderator_password =
config.password_context.encrypt('new_password').encode('utf-8')
That said, the message to which you refer has three MIME parts and what
you quote is from the message/rfc822 part at the end and "reply to this
message" means reply to the message in that part, not to the message you
received. I.e you have to reply to the -request address with the
appropriate confirm <token>
in the Subject:
Then if your MUA makes it easy, you can include the password as the value of an Approved: header in that reply. Otherwise, you can include
Approved: ...
as the first line of the plain text reply.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Christian Stalberg
-
Mark Sapiro