This question about : Asked

Notify field does not accept username like allowed field does

The transition table allowed column allows both username and wikiusername to be specified.

The notify column only accepts wikiusernames.

I added the enhancement line below to the sub changeState in where it tries to determine the email name and it seems to work for me.

            else {
                $who = Foswiki::Func::getWikiUserName($who); # Enhancement
                $who =~ s/^.*\.//;    # web name?
                my @list = Foswiki::Func::wikinameToEmails($who);
I can now place linux user names into the notify column and the email gets sent without error.

I am not sure I know enough about this routine yet to determine if this works under all conditions. Maybe the developer can review this and determine if this is an acceptable patch and incorporate it into the code.

QuestionForm edit

Extension WorkflowPlugin
Version Foswiki 1.1.3
Status Asked
Related Topics
Topic revision: r1 - 19 Aug 2011, PhilipSchmidt - This page was cached on 16 Aug 2019 - 02:00.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy