aboutsummaryrefslogtreecommitdiff
path: root/src/filter.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-14 07:33:36 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-14 07:33:36 +0000
commit19249e8e018d553c9b244e6eaf913f976dd60dc8 (patch)
tree6b2fced144bc753ce615cb5599096e544690db56 /src/filter.c
parent7fee9806f177a30a9a5430e2faeff2a65e0e8504 (diff)
modify filter rules after moving folders.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@429 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/filter.c')
-rw-r--r--src/filter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/filter.c b/src/filter.c
index b17134fa..67914138 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -1113,6 +1113,9 @@ void filter_rule_rename_dest_path(FilterRule *rule, const gchar *old_path,
dest_path = g_strconcat(new_path,
G_DIR_SEPARATOR_S,
base, NULL);
+ debug_print("filter_rule_rename_dest_path(): "
+ "renaming %s -> %s\n",
+ action->str_value, dest_path);
g_free(action->str_value);
action->str_value = dest_path;
}
@@ -1140,6 +1143,8 @@ void filter_rule_delete_action_by_dest_path(FilterRule *rule, const gchar *path)
!strncmp(path, action->str_value, pathlen) &&
(action->str_value[pathlen] == G_DIR_SEPARATOR ||
action->str_value[pathlen] == '\0')) {
+ debug_print("filter_rule_delete_action_by_dest_path(): "
+ "deleting %s\n", action->str_value);
rule->action_list = g_slist_remove
(rule->action_list, action);
filter_action_free(action);