Forum OpenACS Q&A: tcl proc code being _executed_ during "generating interp init script" phase of bootstrap

I am trying to hack tcllib's pop3 libraries into an openacs pop3-procs.tcl file (yes i know - if i used aolserver 4 i would save myself a whole lotta trouble...)

anyway, if i rename the file to allow the server to bootstrap, rename it back and then use the APM to "reload" the file into all interperators, it loads fine. and works fine.

but if i then try to restart the server i get:

[28/Oct/2003:03:51:11][1567.16384][-main-] Notice: tcl: generating interp init script
[28/Oct/2003:03:51:11][1567.16384][-main-] Error: POP3 LIST ERROR: malformed message number 'state'
POP3 LIST ERROR: malformed message number 'state'
    while executing
"error "POP3 LIST ERROR: malformed message number '$msg'""
    (procedure "list" line 13)

etc. the error message shown comes from this fragment:

ad_proc ::pop3::list {chan {msg ""}} {

...

	if {[catch {expr {0 + $msg}}]} {
	    error "POP3 LIST ERROR: malformed message number '$msg'"
	} else {
	    set msgBuffer [string trim [::pop3::send $chan "LIST $msg"]]
	}

    return $msgBuffer
}

So the code is actually being EXECUTED - can anyone enlighten me as to why this might be happening?