[OGo-Users] Filter (Sieve) Problem Using Move To Folder option.
users@opengroupware.org
users@opengroupware.org
Tue, 27 Nov 2007 12:54:28 -0200
Hi Adam,
i 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:
First Try:
[root@server /]# Defaults read NSGlobalDomain
{
LSAdaptor = PostgreSQL;
LSConnectionDictionary = {
databaseName = OGo;
hostName = localhost;
password = "";
port = 5432;
userName = OGo;
};
Languages = (
English
);
SieveFilenameSeparator = ".";
TimeZoneName = GMT;
}
Second Try:
[root@server /]# Defaults read NSGlobalDomain
{
LSAdaptor = PostgreSQL;
LSConnectionDictionary = {
databaseName = OGo;
hostName = localhost;
password = "";
port = 5432;
userName = OGo;
};
Languages = (
English
);
SieveFilenameSeparator = "/";
TimeZoneName = GMT;
}
PS.1: I restarted de ogo-webui and postgresql services between the tries, ok.
Just to certify that the OGo was "seeing" the new configuration.
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???
Thank You
Kleber.
===============================================
Yes, I'm pretty certain there is a default that determines the separator
character.
Try setting "SieveFilenameSeparator' in NSGlobalDomain to "."
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;
}
Hello!
I'm having a problem when configuring filters throught the OGo Webmail interface
(LSWImapMailFilterEditor). First of all a have to say that i am using dotted
addresses to the e-mail accounts. To make this work i change to "1" the
"unixhierarchysep" attribute into the "/etc/imapd.conf" file. The problem is:
when i use the option "Move to Folder" to create my filters, they doesn't seen
to work. Looking at the "ogo.script" and "ogo.bc" files i saw that the rule was
created like this one: "fileinto INBOX.WEBMIN". Looking at the "cyradm" a saw
that the address to this folder is "user/smith.rock/webmin". So, if i change,
by hand, the rule into the "ogo.bc" file to "fileinto INBOX/WEBMIN" the filter
works fine.
Thats some way to still using dotted addresses and make OGo save the filters
correctly into the "ogo.script" and "ogo.bc" files???
I'll appreciate some help.
Kleber (from Brazil - João Pessoa/PB)
___________________________________________________________________________________
Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel tem
tarifas muito baratas esperando por você. Aproveite!