On Mon, 28 Oct 2024, at 8:10 PM, antoine.depoisier--- via Mailman-users wrote:
I try to create an EML command to allow moderators to accept a subscription request made by an address. I created this command in CLI first, to test if it works, and it works well except to send the welcome message.
After that, I tried to create the EML command in my plugin, and when I'm testing this command, nothing happens. Also, when using the command EML help, my command is not shown on the email sent.
Maybe I missed something to add in the configurations files. Should I add some configuration files for this command ?
There isn't any extra configuration required. As long as the commands implement the right interfaces, they should be discovered like inbuilt commands.
I am not sure if I can tell a lot without looking at the code, but does the command show up in shell?
Here is what I tried:
mailman shell
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.
>>> for cmd in config.commands: print(cmd)
...
join
subscribe
leave
unsubscribe
echo
who
help
end
stop
confirm
myemail
I also updated the example plugin1 to include some sample code for getting started and it shows up in the above. Does it show up for you as well?
-- thanks, Abhilash Raj (maxking)