Novell have just comfirmed this is a bug in the JunkMailSettings token, and have created a defect notice for it. While this means it will get fixed, unfortunately I am unable to offer a workaround at this stage.
I am able to get some of the features working by using the following code:
dim iSyntax dim iReturnVal iSyntax = "JunkMailSettings(true;false;false;;0)" msgbox groupwise.throwtoken(iSyntax, iReturnVal)
Note the fourth parameter is not specified at all (it fails if you include anything). I have used 0 as the last parameter, but supplying any other value does not appear to work anyway.
I’ll advise when Novell have more information in this thread.