2003-07-29 15:48:06 +00:00
|
|
|
/*
|
2025-02-14 10:24:30 -05:00
|
|
|
* Copyright (C) 2013-2025 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
2019-01-25 10:15:50 -05:00
|
|
|
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
2008-04-02 15:24:51 +00:00
|
|
|
*
|
|
|
|
* Authors: Nigel Horne
|
2020-01-03 15:44:07 -05:00
|
|
|
*
|
2018-03-05 16:34:35 -05:00
|
|
|
* Acknowledgements: Some ideas came from Stephen White <stephen@earth.li>,
|
|
|
|
* Michael Dankov <misha@btrc.ru>, Gianluigi Tiesi <sherpya@netfarm.it>,
|
|
|
|
* Everton da Silva Marques, Thomas Lamy <Thomas.Lamy@in-online.net>,
|
|
|
|
* James Stevens <James@kyzo.com>
|
2003-07-29 15:48:06 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
2008-04-02 15:24:51 +00:00
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
2003-07-29 15:48:06 +00:00
|
|
|
*
|
|
|
|
* 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
|
2006-04-09 19:59:28 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
* MA 02110-1301, USA.
|
2003-07-29 15:48:06 +00:00
|
|
|
*/
|
|
|
|
|
2009-09-24 16:08:52 +02:00
|
|
|
#ifndef __MBOX_H
|
|
|
|
#define __MBOX_H
|
|
|
|
|
2003-07-29 15:48:06 +00:00
|
|
|
/* See RFC1521 */
|
2018-12-03 12:40:13 -05:00
|
|
|
typedef enum {
|
|
|
|
NOMIME,
|
|
|
|
APPLICATION,
|
|
|
|
AUDIO,
|
|
|
|
IMAGE,
|
|
|
|
MESSAGE,
|
|
|
|
MULTIPART,
|
|
|
|
TEXT,
|
|
|
|
VIDEO,
|
|
|
|
MEXTENSION
|
2003-07-29 15:48:06 +00:00
|
|
|
} mime_type;
|
|
|
|
|
|
|
|
typedef enum {
|
2018-12-03 12:40:13 -05:00
|
|
|
NOENCODING,
|
|
|
|
QUOTEDPRINTABLE,
|
|
|
|
BASE64,
|
|
|
|
EIGHTBIT,
|
|
|
|
BINARY,
|
|
|
|
UUENCODE,
|
|
|
|
YENCODE,
|
|
|
|
EEXTENSION,
|
|
|
|
BINHEX
|
2003-07-29 15:48:06 +00:00
|
|
|
} encoding_type;
|
|
|
|
|
|
|
|
/* tk: shut up manager.c warning */
|
2006-07-25 11:01:36 +00:00
|
|
|
#include "clamav.h"
|
2003-07-29 15:48:06 +00:00
|
|
|
|
|
|
|
/* classes supported by this system */
|
|
|
|
typedef enum {
|
2018-12-03 12:40:13 -05:00
|
|
|
INVALIDCLASS,
|
|
|
|
BLOBCLASS
|
2003-07-29 15:48:06 +00:00
|
|
|
} object_type;
|
|
|
|
|
|
|
|
#ifdef C_BSD
|
|
|
|
#define UNIX
|
|
|
|
#endif
|
2004-04-29 09:01:16 +00:00
|
|
|
|
2006-05-19 11:03:22 +00:00
|
|
|
#include "table.h"
|
|
|
|
#include "blob.h"
|
|
|
|
#include "line.h"
|
|
|
|
#include "text.h"
|
|
|
|
#include "message.h"
|
|
|
|
#include "uuencode.h"
|
|
|
|
|
2018-12-03 12:40:13 -05:00
|
|
|
size_t strstrip(char *s); /* remove trailing white space */
|
|
|
|
int cli_mbox(const char *dir, cli_ctx *ctx);
|
2009-09-24 16:08:52 +02:00
|
|
|
|
|
|
|
#endif /* __MBOX_H */
|