Article delegate-en/584 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A583@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] SMTP RSET (Simple questions...)
14 Sep 1999 11:08:08 GMT ysato@etl.go.jp (Yutaka Sato)


On 09/14/99(03:16) you Tomislav Randjic <pi4babdyi-qjyh54kbrnxr.ml@ml.delegate.org> wrote
in <_A583@delegate-en.ML_>
 |And :) somewhere is written that SMTP server/proxy/relay is RFC821 compliant,
 |but it doesent recognize RESET at least (but looking into source - there seems
 |to be other missing too :) command (RSET). That is making some problems with
 |some MUAs. Here is log:

DeleGate as an origin SMTP server is in a very experimental stage and
supports only small subset of RFC821.  Since RSET seems indispensable
even for experiment, I will support it in the next release.  I enclosed
an experimental patch to be applied to "smtp.c" of DeleGate/5.9.4.

Cheers,
Yutaka
--
Yutaka Sato <ysato@etl.go.jp> http://www.etl.go.jp/~ysato/   @ @ 
Computer Science Division, Electrotechnical Laboratory      ( - )
1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan            _<   >_

*** ../../delegate5.9.4/src/smtp.c	Fri Sep  3 16:55:02 1999
--- smtp.c	Tue Sep 14 19:39:17 1999
***************
*** 421,426 ****
--- 421,435 ----
  	lfprintf(log,tc,"250 %s... Sender ok\r\n",Sender);
  	return 0;
  }
+ static doRSET(Conn)
+ 	Connection *Conn;
+ {
+ 	if( Recipients != NULL ){
+ 		free(Recipients);
+ 		Recipients = NULL;
+ 	}
+ 	Sender[0] = 0;
+ }
  
  char *MAILGATE = "mailgate";
  static doDATA(Conn,indata,tc,fc,myhost,clhost,log)
***************
*** 658,663 ****
--- 667,676 ----
  				break;
  			fflush(tc);
  			fseek(log,0,0);
+ 		}else
+ 		if( strcaseeq(com,"RSET") ){
+ 			doRSET(Conn);
+ 			lfprintf(log,tc,"250 Reset state\r\n");
  		}else
  		if( strcaseeq(com,"QUIT") ){
  			lfprintf(log,tc,"221 %s closing connection\r\n",myhost);

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V