[ic] [Usertag] and Safe Operation Mask error

Donald Lin interchange-users@lists.akopia.com
Thu Jul 5 12:52:00 2001


Hi all. I am trying to create a simple usertag that sends out an email. I am
running into the following error. I believe it is because the code fails the
Safe.pm check because of the operation masks, but i cannot figure out where
my error is. Does anybody know?  I have also included what i have in the
Catalog.cfg file. Thanks!!
Don


##error when restarting IC
Configuring catalog kosher...UserTag 'caps' subroutine failed safe check:
require
trapped by operation mask at (eval 406) line 1, <CONFIG> chunk 46.

In line 46 of the configuration file 'catalog.cfg':
UserTag caps   Routine   sub {use
Mail::Sendmail;%mail=(To=>"donald.lin@giftme.com
",From=>"me@here.com",Message=>"Thisisavery short message");sendmail(%mail)
or die
$Mail::Sendmail::error;return hihih;}


##code in catalog.cfg
UserTag caps   Routine   sub {use
Mail::Sendmail;%mail=(To=>"donald.lin@giftme.com",From=>"me@here.com",Messag
e=>"Thisisavery short message");sendmail(%mail) or
die$Mail::Sendmail::error;return hihih;}
UserTag caps   HasEndTag