Forum OpenACS Development: Re: exec tcl proc

Collapse
2: Re: exec tcl proc (response to 1)
Posted by Dave Bauer on
One way to test this is to write a test script, and call that.

You can do that with acs-automated-testing, or just write a tcl script that calls the procedures you need.

In your case you need to

1) Make sure the email ends up in the correct Maildir
2) Make sure acs-mail-lite reads the maildir and finds the email
3) amke sure acs-mail-lite decodes the email prefix and calls the bugtracker incoming email handler.

You should be able to do all that by putting ns_logs in the procedures that handle the mail.

NOTE: if you change a tcl procedure called by a scheduled procedure you need to restart aolserver for it to be reloaded. Using the APM reload feature will not work.

Collapse
3: Re: exec tcl proc (response to 2)
Posted by Iuri Sampaio on
I wrote the tcl script

One thing i noticed from
set queue_dir [parameter::get_from_package_key -parameter "BounceMailDir" -package_key "acs-mail-lite"]

$queue_dir holds 1 as its value

however looking at procedure acs_mail_litle::load_mails $queue_dir is treated as a string.

why is that? is that an error?