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

space
space

adminSite

calendar

controlpanel

discuss

getFileMimeType

members

space
space

validMailAddress

space

parseMultipart

respond

subscriptions

space

manilaData

manilamacros

manilaSuite

system

Patches by Group

Papers

Sales

Sign My Guestbook

User(land) Relations.

Contact Address

Search Baylys

urlchains

space
Join Now
Login
space space space

mainResponder.members.validMailAddress

Invalid email addresses can cause havoc if a bulletin is sent from a Manila site. Manila does not check email addresses for validaity, this patch adds a strict check fo the semantics of an email address, the address may still be invalid. It depends on, and checks the existence of a script within bayly.root.

on validMailAddress (mailaddress) //scriptErrors if invalid
  «Changes:
 unaltered lines omitted
  if defined (string.isValidEmailAddress) //03/01/27, 13:37:37 by DAB
  try
  string.isValidEmailAddress (mailaddress)
  return
  else
  scriptError ("Can't send email because the address, " + mailaddress + " is not a valid email address.")
  if not (mailaddress contains "@")
 unaltered lines omitted
  local (domain = string.nthfield (mailaddress, '@', 2))
  if not (domain contains ".")
 unaltered lines omitted

Relative to Frontier version 9.7b10