2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2002 Hiroyuki Yamamoto & The Sylpheed Claws Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 struct _FilteringAction
{
32 gchar
*unesc_destination
; /* for exec cmd line */
36 typedef struct _FilteringAction FilteringAction
;
38 struct _FilteringProp
{
39 MatcherList
* matchers
;
40 FilteringAction
* action
;
43 typedef struct _FilteringProp FilteringProp
;
45 /* extern GSList * prefs_filtering; */
48 FilteringAction
* filteringaction_new(int type
, int account_id
,
51 void filteringaction_free(FilteringAction
*action
);
52 FilteringAction
* filteringaction_parse(gchar
**str
);
54 FilteringProp
* filteringprop_new(MatcherList
*matchers
,
55 FilteringAction
*action
);
56 void filteringprop_free(FilteringProp
*prop
);
58 FilteringProp
* filteringprop_parse(gchar
**str
);
60 void filter_msginfo_move_or_delete(GSList
*filtering_list
, MsgInfo
*info
);
61 void filter_message_by_msginfo_with_inbox(GSList
*flist
, MsgInfo
*info
,
62 FolderItem
*def_inbox
);
63 void filter_message_by_msginfo(GSList
*flist
, MsgInfo
*info
);
64 void filter_message(GSList
*filtering_list
, FolderItem
*inbox
,
67 gchar
* filteringaction_to_string(gchar
*dest
, gint destlen
, FilteringAction
*action
);
68 void prefs_filtering_write_config(void);
69 void prefs_filtering_read_config(void);
70 gchar
* filteringprop_to_string(FilteringProp
*prop
);
72 void prefs_filtering_clear();
73 void prefs_filtering_free(GSList
*prefs_filtering
);
75 FilteringProp
* filteringprop_copy(FilteringProp
*src
);
77 extern GSList
* global_processing
;