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 plugin[1] to include some sample
code for getting started and it shows up in the above. Does it
show up for you as well?

[1]: 
https://gitlab.com/mailman/example-mailman-plugin/-/blob/master/example_mailman_plugin/commands/eml_command.py?ref_type=heads

-- 
  thanks,
  Abhilash Raj (maxking)
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/RTDFJSCW6JAWADYIF3TDCMNSXCN2GPSD/

This message sent to arch...@mail-archive.com

Reply via email to