iredmail / mlmmjadmin

A simple RESTful API server used to manage mlmmj (http://mlmmj.org) mailing list manager.
https://www.iredmail.org/
53 stars 22 forks source link

API Call - add_subscribers #25

Closed sgroom-lb closed 1 month ago

sgroom-lb commented 2 months ago

Properly formatted / tokened API Call - add_subscribers fails if require_confirm is set to no. Same call with require_confirm set to yes succeeds. Pls advise

iredmail commented 2 months ago

Could you share the api calls (e.g. curl command with arguments) to help me reproduce this issue? Also tell me the result you expect.

sgroom-lb commented 2 months ago

all original data is valid, redacted as necessary

curl -X POST "http://127.0.0.1:7790/api/listname@domain.com" -H "X_MLMMJADMIN_API_AUTH_TOKEN: redacted" -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "add_subscribers=new.subscriber@somedomain" --data-urlencode "require_confirm=no" --data-urlencode "subscription=normal"

I expect the email to be subscribed to the list without a confirmation email as member emails are already vetted by org prior to membership. Even if you get a success return code, user isn't subscribed to the list.

bump

iredmail commented 1 month ago

Hi @sgroom-lb

It's recommended to manage mlmmj mailing list with /opt/mlmmjadmin/tools/maillist_admin.py. FYI https://docs.iredmail.org/manage.subscribeable.mailing.lists.html