Article delegate-en/2100 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:<_A2097@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: IMAP filter EXPUNGE
30 Jan 2003 12:14:26 GMT feedback@delegate.org (Yutaka Sato)


On 01/29/03(17:32) I wrote in <_A2097@delegate-en.ML_>
 |But I think such access control should be supported by DeleGate itself
 |and I'll do it like enclosed patch.  With the patched DeleGate you can
 |reject EXPUNGE command with the following parameter.
 |
 |  REJECT=imap//EXPUNGE

I noticed that the patch in the previous message makes rejection for
connection to a server.  It should be fixed like the enclosed patch
in this message.

Cheers,
Yutaka
--
  @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

*** ../delegate8.3.3/src/master.c	Wed Jan  8 22:16:50 2003
--- ./master.c	Thu Jan 30 20:55:15 2003
***************
*** 1013,1018 ****
--- 1013,1023 ----
  	if( sscanf(proto,"%[^/]/%s",protob,method) == 2 )
  		proto = protob;
  
+ 	if( Conn->forreject && *method == 0 ){
+ 		/* make not-mentioned methods be non-rejected in methodMatch() */
+ 		strcpy(method,".CONNECT");
+ 	}
+ 
  	no_dstcheck_proto = 0; 
  	if( Conn->no_dstcheck_proto
  	 && Conn->no_dstcheck_proto == serviceport(proto) )

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