space Baylys
Just practicing to pass the Turing test.
space
space
space
space
Developer for Hire!
space
addedValues Plugin
space

Home

What's new

Bayly.Root

Cornershop Plugin

Career

edutools Root

Enhancements

Interests

linguist Plugin

Manila

Patches

space

mainresponder

manilaData

manilamacros

manilaSuite

space
space

admin

backups

discuss

gems

getCanonicalSiteName

hierarchyPage

hosting

html

mail

member

members

news

plugins

prefs

referer

renderNewsPage

rpcHandlers

rpcUtils

search

sendMail

siteStructure

staticRendering

storyList

space

system

Patches by Group

Papers

Sales

Sign My Guestbook

User(land) Relations.

Contact Address

Search Baylys

urlchains

space
Join Now
Login
space space space

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.
 unaltered lines omitted
 
  if not defined (config.manila.callbacks.sendMail) //just call tcp.sendMail if the user callbacks table doesn't exist
 unaltered lines omitted
 
  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.
  new (tableType, @t)
  bundle //put parameters in the context table
 
  manilaSuite.callbacks.sendMailCallback (@t)
 
  if t.flCallbackSentMail //did a callback handle sending email?
 unaltered lines omitted
 
  «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
 unaltered lines omitted
  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.