Made sure that forum notifications go through by adding quotes around the domain so sendmessage cannot complain anymore. Just to be on the safe side did this for Names of users as well in complex_send. Last but not least changed complex send to only overwrite the from_string if we actually find a party_id
Remove commented out SQL with explicit Tcl variables in it. Thevariables ended up uncommented in the resulting query, causing asynxtax error. The rest of the SQL that was not commented works fine.
Fix build_mime_message to package require mime since we don't includethe mime procedures in opeancs anymore, tcllib is required to beinstalled and available to openacs.