From 8676ffbd1e9c04def13bd8351935855444e33e4d Mon Sep 17 00:00:00 2001 From: Xavier Beaudouin <kiwi@oav.net> Date: Wed, 2 Jun 2004 14:13:24 +0200 Subject: [PATCH] Fix some documentation about SMTP + LMTP server Rev: lib/modules/Protocols.pmod/LMTP.pmod:1.10 Rev: lib/modules/Protocols.pmod/SMTP.pmod/module.pmod:1.43 --- lib/modules/Protocols.pmod/LMTP.pmod | 10 +++++----- lib/modules/Protocols.pmod/SMTP.pmod/module.pmod | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/modules/Protocols.pmod/LMTP.pmod b/lib/modules/Protocols.pmod/LMTP.pmod index 61a415e40c..c6137567bc 100644 --- a/lib/modules/Protocols.pmod/LMTP.pmod +++ b/lib/modules/Protocols.pmod/LMTP.pmod @@ -1,5 +1,5 @@ // -// $Id: LMTP.pmod,v 1.9 2004/05/17 08:38:53 vida Exp $ +// $Id: LMTP.pmod,v 1.10 2004/06/02 12:13:24 kiwi Exp $ // #pike __REAL_VERSION__ @@ -103,7 +103,7 @@ class Server { //! This function is called for each recipient in the "rcpt to" command //! after the client sends the "data" command //! It must have the following synopsis: - //! int|array cb_data(object mime, string sender, string recipients,@ + //! int|array cb_data(object mime, string sender, array(string) recipients,@ //! void|string rawdata) //! object mime : the mime data object //! string sender : sender of the mail (from the mailfrom command) @@ -114,7 +114,7 @@ class Server { //! to display. Note that to comply with LMTP protocol you must output a //! code each time this function is called. //! @example - //! Here is an example of silly program that does nothing except outputting + //! Here is an example of silly program that does nothing except outputing //! informations to stdout. //! int cb_mailfrom(string mail) //! { @@ -127,10 +127,10 @@ class Server { //! return 250; //! } //! - //! int cb_data(object mime, string sender, string recipient) + //! int cb_data(object mime, string sender, array(string) recipients) //! { //! write(sprintf("smtpd: mailfrom=%s, to=%s, headers=%O\ndata=%s\n", - //! sender, recipient, mime->headers, mime->getdata())); + //! sender, recipients * ", ", mime->headers, mime->getdata())); //! // check the data and deliver the mail here //! if(mime->body_parts) //! { diff --git a/lib/modules/Protocols.pmod/SMTP.pmod/module.pmod b/lib/modules/Protocols.pmod/SMTP.pmod/module.pmod index 9cd9264f18..2ad042e071 100644 --- a/lib/modules/Protocols.pmod/SMTP.pmod/module.pmod +++ b/lib/modules/Protocols.pmod/SMTP.pmod/module.pmod @@ -1,5 +1,5 @@ // -// $Id: module.pmod,v 1.42 2004/02/22 13:24:10 vida Exp $ +// $Id: module.pmod,v 1.43 2004/06/02 12:13:24 kiwi Exp $ // #pike __REAL_VERSION__ @@ -213,7 +213,7 @@ class Configuration { //! Message max size int maxsize = 100240000; - //! Maximum number of recipients + //! Maximum number of recipients (default 1000) int maxrcpt = 1000; //! Verify sender domain for MX @@ -891,7 +891,7 @@ class Server { //! the first element is the SMTP code and the second is the error string //! to display. //! @example - //! Here is an example of silly program that does nothing except outputting + //! Here is an example of silly program that does nothing except outputing //! informations to stdout. //! int cb_mailfrom(string mail) //! { -- GitLab