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

[DeleGate-En] Re: Changin user in the POP and IMAP proxy
18 Jan 2001 10:24:40 GMT ysato@etl.go.jp (Yutaka Sato)


Hi,

 |>  SERVER=pop MOUNT="* pop://YourPopServer/*[%0@titi..]"
 |>
 |> will work too.
 |
 |Will something like 
 |SERVER=imap MOUNT="* imap://MyImapServer/*[%0@titi..]"
 |will work too ?

Yes, it will because the code of MOUNT for IMAP is almost a copy of
that of POP (and must be unified with that in future...)
But unfortunately, it will not work when "user@host" is given by
client-side.

 |> The reason why a user name with "@host" is not rewriten by MOUNT="* ..."
 |> is that such user name is rewriten to a canonical form like "//host/user"
 |> before applied MOUNT, and MOUNT="//* = default" (which means don't rewrite
 |> user if server host name is specified by a client) is defined by default
 |> for a DeleGate with SERVER=pop.

This default was not defined for IMAP. It should be fixed with
the enclosed patch.

 |(Domo aligato gosaimasu, anatano hataraku kotoga taihen ii desu. Sumimasen kanjiga wakarimasen.)

Dou itashi mashite. (may be this phrase is thought as the most
common and formal response for thanks, but most Japanese include
me might not able to explain its syntax :)

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

*** ../../delegate7.0.0/src/delegated.c	Thu Jan 11 15:27:00 2001
--- delegated.c	Thu Jan 18 19:28:57 2001
***************
*** 1208,1214 ****
  			set_MOUNT_ifndef(Conn,"/*",mount,mountopt);
  		}
  	}
! 	if( streq(proto,"pop") )
  		set_MOUNT_ifndef(Conn,"//*","=",mountopt);
  }
  
--- 1208,1214 ----
  			set_MOUNT_ifndef(Conn,"/*",mount,mountopt);
  		}
  	}
! 	if( streq(proto,"pop") || streq(proto,"imap") )
  		set_MOUNT_ifndef(Conn,"//*","=",mountopt);
  }
  

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