Re: bug? 'bayes_path ~user/something' doesn't work?
On Mon, Oct 11, 2004 at 09:16:13AM -0400, Keith Hackworth wrote: > What OS do you run on? There are no ~ directories on my solaris > system (I get ~: does not exist). Although, it works fine on my > susi system. Folks, ~user is a shell short-hand for "the home directory of 'user'", which SA does not support (hence why it doesn't work). we provided "~" as a simple way to specify "the currently defined home directory", but it doesn't go further than that. It's not a bug since it's not listed anywhere in SA as a supported feature. -- Randomly Generated Tagline: "lp1 on fire" - Linux kernel error message pgpGEXeRAGXO6.pgp Description: PGP signature
Re: bug? 'bayes_path ~user/something' doesn't work?
What OS do you run on? There are no ~ directories on my solaris system (I get ~: does not exist). Although, it works fine on my susi system. One thing to check - even though the bayes files are in the ~user home directories, are they owned/writable by the user that runs spamd? Keith > Keith Hackworth wrote: >> It works if the user's profile is loaded. Usually sa is run from some startup daemon. Daemons are usually started with a very minimal environment - maybe a little bit of path, and some OS type settings and they rarely execute some .login/.cshrc script to load the environment. With no true user profile loaded, what does ~user/bayes mean? I'm guessing "/bayes". > > What do you mean by "user's profile loaded"? > ~/ is the current users home directory. how it is determined is > system-dependent, but AFAIK the HOME environment variable is taken first. ~user/ is the home directory of the user called "user", whatever the current user may be. in my setup, I have a user called spamd and sa-learn should use spamd's home directory, whatever the current user is. >
RE: bug? 'bayes_path ~user/something' doesn't work?
It works if the user's profile is loaded. Usually sa is run from some startup daemon. Daemons are usually started with a very minimal environment - maybe a little bit of path, and some OS type settings and they rarely execute some .login/.cshrc script to load the environment. With no true user profile loaded, what does ~user/bayes mean? I'm guessing "/bayes". Keith > Matthew.van.Eerde wrote: >> I don't think it's a bug... >> >> what does ~spamd/ mean? I'm not familiar with that kind of syntax. >> ~ usually means "home directory of the calling user"... and that's >> expanded for you... >> There's an idiom in the web world of calling personal user folders >> /~user (as in http://www.example.com/~janet/) but that's just to >> evoke the ~ idea, not a strict syntax > > Never mind, apparently ~user is a real syntax (I learn something new every > day!) >
RE: bug? "bayes_path ~user/something" doesn't work?
Matthew.van.Eerde wrote: > I don't think it's a bug... > > what does ~spamd/ mean? I'm not familiar with that kind of syntax. > ~ usually means "home directory of the calling user"... and that's > expanded for you... > There's an idiom in the web world of calling personal user folders > /~user (as in http://www.example.com/~janet/) but that's just to > evoke the ~ idea, not a strict syntax Never mind, apparently ~user is a real syntax (I learn something new every day!)
RE: bug? "bayes_path ~user/something" doesn't work?
Jakob Hirsch wrote: > Hi, > > I had "bayes_path ~spamd/bayes" in my local.cf until I noticed, that > the part between ~ and / is ignored, resulting in a bayes_path of > ~/bayes. It's not a big deal to give the full path, but that should > be in the docs. I don't think it's a bug... what does ~spamd/ mean? I'm not familiar with that kind of syntax. ~ usually means "home directory of the calling user"... and that's expanded for you... There's an idiom in the web world of calling personal user folders /~user (as in http://www.example.com/~janet/) but that's just to evoke the ~ idea, not a strict syntax If your root and spamd home directories are subdirectories of the same directory, you might be able to get away with ~/../spamd/bayes - that would work for root and spamd. (no-one else would have permissions to spamd's ~ anyway) [EMAIL PROTECTED] 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer perl -e"map{y/a-z/l-za-k/;print}shift" "Jjhi pcdiwtg Ptga wprztg,"