mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-04-05 17:39:20 +02:00
added option to specify folder id based on rules
This commit is contained in:
@@ -507,6 +507,7 @@ int main(int argc, char **argv){
|
||||
inithash(data.mydomains);
|
||||
initrules(data.archiving_rules);
|
||||
initrules(data.retention_rules);
|
||||
initrules(data.folder_rules);
|
||||
|
||||
while(1){
|
||||
|
||||
@@ -711,6 +712,7 @@ int main(int argc, char **argv){
|
||||
|
||||
load_rules(&sdata, &data, data.archiving_rules, SQL_ARCHIVING_RULE_TABLE, &cfg);
|
||||
load_rules(&sdata, &data, data.retention_rules, SQL_RETENTION_RULE_TABLE, &cfg);
|
||||
load_rules(&sdata, &data, data.folder_rules, SQL_FOLDER_RULE_TABLE, &cfg);
|
||||
|
||||
load_mydomains(&sdata, &data, &cfg);
|
||||
|
||||
@@ -729,6 +731,7 @@ int main(int argc, char **argv){
|
||||
|
||||
clearrules(data.archiving_rules);
|
||||
clearrules(data.retention_rules);
|
||||
clearrules(data.folder_rules);
|
||||
|
||||
clearhash(data.mydomains);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user