260386baa4
* configure.ac * src/plugins/Makefile.am * src/plugins/spam_report/.cvsignore * src/plugins/spam_report/Makefile.am * src/plugins/spam_report/placeholder.txt * src/plugins/spam_report/spam_report.c * src/plugins/spam_report/spam_report_prefs.c * src/plugins/spam_report/spam_report_prefs.h * src/plugins/tnef_parse/.cvsignore * src/plugins/tnef_parse/Makefile.am * src/plugins/tnef_parse/claws.def * src/plugins/tnef_parse/mapi.h * src/plugins/tnef_parse/mapidefs.h * src/plugins/tnef_parse/mapitags.h * src/plugins/tnef_parse/placeholder.txt * src/plugins/tnef_parse/plugin.def * src/plugins/tnef_parse/tnef-errors.h * src/plugins/tnef_parse/tnef-types.h * src/plugins/tnef_parse/tnef_dump.c * src/plugins/tnef_parse/tnef_dump.h * src/plugins/tnef_parse/tnef_parse.c * src/plugins/tnef_parse/version.rc * src/plugins/tnef_parse/ytnef.c * src/plugins/tnef_parse/ytnef.h Add tnef_parse and spam_report
69 lines
1.7 KiB
C
69 lines
1.7 KiB
C
/*
|
|
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
|
|
* Copyright (C) 1999-2007 Colin Leroy <colin@colino.net>
|
|
* and the Claws Mail Team
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef SPAMREPORTPREFS_H
|
|
#define SPAMREPORTPREFS_H
|
|
|
|
#include <glib.h>
|
|
|
|
#include "procmsg.h"
|
|
|
|
#define SPAM_REPORT_USERAGENT "Claws Mail SpamReport plugin "
|
|
|
|
typedef struct _SpamReportPrefs SpamReportPrefs;
|
|
|
|
typedef enum {
|
|
INTF_SIGNALSPAM,
|
|
INTF_SPAMCOP,
|
|
INTF_DEBIANSPAM,
|
|
INTF_LAST
|
|
} InterfaceId;
|
|
|
|
typedef enum {
|
|
INTF_HTTP,
|
|
INTF_HTTP_AUTH,
|
|
INTF_MAIL,
|
|
INTF_HTTP_GET,
|
|
INTF_NULL
|
|
} InterfaceType;
|
|
|
|
typedef struct _ReportInterface {
|
|
gchar *name;
|
|
InterfaceType type;
|
|
gchar *url;
|
|
gchar *body;
|
|
gboolean (*should_report)(MsgInfo *info);
|
|
} ReportInterface;
|
|
|
|
extern ReportInterface spam_interfaces[];
|
|
|
|
struct _SpamReportPrefs
|
|
{
|
|
gboolean enabled[INTF_LAST];
|
|
gchar *user[INTF_LAST];
|
|
gchar *pass[INTF_LAST];
|
|
};
|
|
|
|
extern SpamReportPrefs spamreport_prefs;
|
|
|
|
void spamreport_prefs_init(void);
|
|
void spamreport_prefs_done(void);
|
|
|
|
#endif
|