[OGo-Users] Filter (Sieve) Problem Using Move To Folder option.
users@opengroupware.org
users@opengroupware.org
Mon, 03 Dec 2007 23:57:36 -0200
Ok Adam, really thank you anyway.
If you obtain some result (negative or positive), please give me a feedback.
i'll be very, very grateful.
Just two curiosities: what tool you, or your OGo clients, are using, to make
your, or their, sieve scripts? Can you say? It's not better (less complicated)
to the OGo clients use the native tool to make their filters?
With regards.
Kleber (spockpb)
> executed the commands "Defaults write NSGlobalDomain SieveFilenameSeparator .
> " (first try) and "Defaults write NSGlobalDomain SieveFilenameSeparator / "
> (second try) but they doens't solve the problem. Thats my "Defaults"
> configuration after the tries:
> SieveFilenameSeparator = ".";
Interesting; I'll see if I can give it a try. I don't usually edit my
SIEVE scripts with OGo.
> PS.2: I did not undertand the part that you say "In Tools/sky_install_sieve.m
is
> -.......". I tried to find this file ("sky_install_sieve.m") but i did not
found
> it. I need to do something more or i forgoten something???
No, sky_instal_sieve is what actually creates and installs your SIEVE
scripts (as far as I understand). It is pretty clearly using the
"SieveFilenameSeparator" default
> In Tools/sky_install_sieve.m is -
> - (NSString *)sieveFilenameForString:(NSString *)fileName {
> NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
> NSString *sep;
>
> if ([fileName hasPrefix:@"/"]) {
> fileName = [fileName substringWithRange:
> NSMakeRange(1, [fileName length] - 1)];
> }
>
> sep = [ud stringForKey:@"SieveFilenameSeparator"];
> if (![sep isNotEmpty])
> sep = @".";
>
> if ([sep isEqualToString:@"/"])
> return fileName; /* return as-is, no transformation required */
>
> fileName = [[fileName componentsSeparatedByString:@"/"]
> componentsJoinedByString:sep];
> return fileName;
> }
___________________________________________________________________________________
Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel tem
tarifas muito baratas esperando por você. Aproveite!