cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
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 ControlledTopic.pm 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

Subject
Extension WorkflowPlugin
Version Foswiki 1.1.3
Status Asked
Related Topics
Topic revision: r1 - 19 Aug 2011, PhilipSchmidt - This page was cached on 23 Mar 2018 - 07: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