Package: python-moinmoin
Version: 1.9.9-1+deb10u1
Severity: normal

Dear Moinmoin maintainer,
The mail-verification.patch adds the line:

mailok, msg = sendmail.sendmail(request, user.email, subject, text,
request.cfg.mail_from)

The second argument of sendmail.sendmail should be a list but user.email is
not a list!

This can be fixed by replacing the above line in the
mail-verification.patch with:

mailok, msg = sendmail.sendmail(request, [user.email], subject, text,
request.cfg.mail_from)

ie: the addition of [] around user.email

This bug stops external_account_creation_check.patch from working properly.

Please can you make this tiny fix!
If you need more info please let me know.

Many thanks
Alex Owen

PS: for sysadmin out there who want to monkey patch this you can do by
copying the action into your wiki instance as a custom action and fixing
there.
ie:

SUDO=sudo

$SUDO cp -p /usr/lib/python2.7/dist-packages/MoinMoin/action/newaccount.py \

            $WIKI/data/plugin/action/

$SUDO sed -i -e'/mailok, msg =
sendmail.sendmail/s/user.email/\[user.email\]/' \

            $WIKI/data/plugin/action/newaccount.py

Reply via email to