Fix error creation and warning
[claws.git] / src / plugins / perl / perl_plugin.h
blob8fc9af2f0c5cf9885c46b98159aa01c65c968a67
1 /* Perl plugin -- Perl Support for Claws Mail
3 * Copyright (C) 2004-2007 Holger Berndt
5 * Sylpheed and Claws Mail are GTK based, lightweight, and fast e-mail clients
6 * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail Team
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef SC_PERL_PLUGIN_H
23 #define SC_PERL_PLUGIN_H SC_PERL_PLUGIN_H
25 /* the name of the filtering Perl script file */
26 #define PERLFILTER "perl_filter"
28 typedef struct {
29 gchar *address;
30 gchar *bookname;
31 } PerlPluginEmailEntry;
33 typedef struct {
34 gchar *address;
35 gchar *value;
36 gchar *bookname;
37 } PerlPluginAttributeEntry;
39 typedef struct {
40 GSList *g_slist;
41 time_t mtime;
42 } PerlPluginTimedSList;
44 typedef struct {
45 gint filter_log_verbosity;
46 } PerlPluginConfig;
48 gint execute_detached(gchar**);
50 #endif /* include guard */