|
|
 |
 |
 |
manilaSuite.sendMail
Conversion of macintosh characters in the subject and the message body of generated emails must be done consistently throughout Manila The logical place is within manilaSuite.sendMail. The suggested change allows Manila sendmail callbacks to handle this issue in their own way (as tcp.sendmail does not set headers correctly for example)
Amended script
| on sendMail (recipient="", subject="", message="", sender=user.prefs.mailAddress, cc="", bcc="", host=user.prefs.mailHost, mimeType="text/plain", adrHdrTable=nil, timeOutTicks=60*60, flMessages=true) |
| |
«This is a wrapper script for tcp.sendMail. It allows the server manager to place a set of callback scripts to over-ride tcp.sendMail, add logging of email, do email filtering, whatever. It also (12/19/01) converts text from Mac to Latin on Macs. |
| |
if not defined (config.manila.callbacks.sendMail) //just call tcp.sendMail if the user callbacks table doesn't exist |
| |
local (t) //this is the context table for the callbacks; it contains the parameters to tcp.sendMail, but they may get changed by a callback. |
| |
bundle //put parameters in the context table |
| |
manilaSuite.callbacks.sendMailCallback (@t) |
| |
if t.flCallbackSentMail //did a callback handle sending email? |
| |
«Use the context table -- this allows callbacks to filter any of the parameters to tcp.sendMail. |
| |
if system.environment.isMac //PBS 12/19/01: bug fix from David Bayly: convert from Mac to Latin |
| |
return (tcp.sendMail (t.recipient, t.subject, t.message, t.sender, t.cc, t.bcc, t.host, t.mimeType, t.adrHdrTable, t.timeOutTicks, t.flMessages)) |
Relative to Frontier version 9.7b10
Note : This was fixed in Frontier 8.0 beta.
|