Commit 27bd0719 authored by Jeffrey Shell's avatar Jeffrey Shell

sniffs out the 'local host' (web server host name thingy computer)

parent 28cebfc7
...@@ -3,12 +3,12 @@ from socket import * ...@@ -3,12 +3,12 @@ from socket import *
import Acquisition, sys, regex, string, types import Acquisition, sys, regex, string, types
import OFS.SimpleItem import OFS.SimpleItem
#$Id: MailHost.py,v 1.7 1997/09/10 22:09:43 jeffrey Exp $ #$Id: MailHost.py,v 1.8 1997/09/11 21:32:54 jeffrey Exp $
__version__ = "$Revision: 1.7 $"[11:-2] __version__ = "$Revision: 1.8 $"[11:-2]
smtpError = "SMTP Error" smtpError = "SMTP Error"
MailHostError = "MailHost Error" MailHostError = "MailHost Error"
addForm=HTMLFile('MailHost/addMailHost_form') addForm=HTMLFile('MailHost/addMailHost_form',localhost=gethostname())
def add(self, id='aMailHost', title='Some mail thing', smtp_host=None, def add(self, id='aMailHost', title='Some mail thing', smtp_host=None,
localhost='localhost', smtp_port=25, REQUEST): localhost='localhost', smtp_port=25, REQUEST):
' add a MailHost into the system ' ' add a MailHost into the system '
...@@ -198,8 +198,8 @@ def decapitate(message, ...@@ -198,8 +198,8 @@ def decapitate(message,
return (headerDict, body) return (headerDict, body)
#$Log: MailHost.py,v $ #$Log: MailHost.py,v $
#Revision 1.7 1997/09/10 22:09:43 jeffrey #Revision 1.8 1997/09/11 21:32:54 jeffrey
#Added support for OFS.SimpleItem #sniffs out the 'local host' (web server host name thingy computer)
# #
#Revision 1.6 1997/09/10 21:57:56 jeffrey #Revision 1.6 1997/09/10 21:57:56 jeffrey
#Fixed nasty little squeeks, especially in: #Fixed nasty little squeeks, especially in:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment