Branch: Tag:

1998-05-27

1998-05-27 05:47:43 by David Hedbor <david@hedbor.org>

- Ident.pmod now uses Stdio.FILE->gets() instead of
Stdio.File->read(), since the latter sometimes didn't work (blocked
Stdio.File->indefinitely).
- NNTP.pmod now sends commands ending with \r\n instead of just \n.
- Added second argument, port, to SMTP.client.create to allow usage of
non-standard ports.

Rev: lib/modules/Protocols.pmod/Ident.pmod:1.4
Rev: lib/modules/Protocols.pmod/NNTP.pmod:1.5
Rev: lib/modules/Protocols.pmod/SMTP.pmod:1.6

50:    return r;    }    -  void create(void|string server) +  void create(void|string server, int|void port)    {    if(!server)    {
59:    server=dns->get_primary_mx(gethostname());    }    -  if(!connect(server,25)) +  if(!port) +  port = 25; +  +  if(!connect(server, port))    {    throw(({"Failed to connect to mail server.\n",backtrace()}));    }