aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-parser.h')
-rw-r--r--camel/camel-mime-parser.h133
1 files changed, 0 insertions, 133 deletions
diff --git a/camel/camel-mime-parser.h b/camel/camel-mime-parser.h
deleted file mode 100644
index cef51696df..0000000000
--- a/camel/camel-mime-parser.h
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
- * Copyright (C) 2000 Helix Code Inc.
- *
- * Authors: Michael Zucchi <notzed@helixcode.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public License
- * as published by the Free Software Foundation; either version 2 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-#ifndef _CAMEL_MIME_PARSER_H
-#define _CAMEL_MIME_PARSER_H
-
-#include <camel/camel-object.h>
-
-#include <camel/camel-mime-utils.h>
-#include <camel/camel-mime-filter.h>
-#include <camel/camel-stream.h>
-
-#define CAMEL_MIME_PARSER(obj) CAMEL_CHECK_CAST (obj, camel_mime_parser_get_type (), CamelMimeParser)
-#define CAMEL_MIME_PARSER_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_mime_parser_get_type (), CamelMimeParserClass)
-#define CAMEL_IS_MIME_PARSER(obj) CAMEL_CHECK_TYPE (obj, camel_mime_parser_get_type ())
-
-typedef struct _CamelMimeParserClass CamelMimeParserClass;
-
-/* NOTE: if you add more states, you may need to bump the
- start of the END tags to 16 or 32, etc - so they are
- the same as the matching start tag, with a bit difference */
-enum _header_state {
- HSCAN_INITIAL,
- HSCAN_PRE_FROM, /* data before a 'From' line */
- HSCAN_FROM, /* got 'From' line */
- HSCAN_HEADER, /* toplevel header */
- HSCAN_BODY, /* scanning body of message */
- HSCAN_MULTIPART, /* got multipart header */
- HSCAN_MESSAGE, /* rfc822 message */
-
- HSCAN_PART, /* part of a multipart */
-
- HSCAN_END = 8, /* bit mask for 'end' flags */
-
- HSCAN_EOF = 8, /* end of file */
- HSCAN_PRE_FROM_END, /* pre from end */
- HSCAN_FROM_END, /* end of whole from bracket */
- HSCAN_HEADER_END, /* dummy value */
- HSCAN_BODY_END, /* end of message */
- HSCAN_MULTIPART_END, /* end of multipart */
- HSCAN_MESSAGE_END, /* end of message */
-
-};
-
-struct _CamelMimeParser {
- CamelObject parent;
-
- struct _CamelMimeParserPrivate *priv;
-};
-
-struct _CamelMimeParserClass {
- CamelObjectClass parent_class;
-
- void (*message)(CamelMimeParser *, void *headers);
- void (*part)(CamelMimeParser *);
- void (*content)(CamelMimeParser *);
-};
-
-guint camel_mime_parser_get_type (void);
-CamelMimeParser *camel_mime_parser_new (void);
-
-/* using an fd will be a little faster, but not much (over a simple stream) */
-int camel_mime_parser_init_with_fd(CamelMimeParser *, int fd);
-int camel_mime_parser_init_with_stream(CamelMimeParser *m, CamelStream *stream);
-
-/* get the stream or fd back of the parser */
-CamelStream *camel_mime_parser_stream(CamelMimeParser *m);
-int camel_mime_parser_fd(CamelMimeParser *m);
-
-/* scan 'From' separators? */
-void camel_mime_parser_scan_from(CamelMimeParser *, int);
-/* Do we want to know about the pre-from data? */
-void camel_mime_parser_scan_pre_from(CamelMimeParser *, int);
-
-/* what headers to save, MUST include ^Content-Type: */
-int camel_mime_parser_set_header_regex(CamelMimeParser *m, char *matchstr);
-
-/* normal interface */
-enum _header_state camel_mime_parser_step(CamelMimeParser *, char **, int *);
-void camel_mime_parser_unstep(CamelMimeParser *);
-void camel_mime_parser_drop_step(CamelMimeParser *m);
-enum _header_state camel_mime_parser_state(CamelMimeParser *);
-
-/* read through the parser */
-int camel_mime_parser_read(CamelMimeParser *m, const char **databuffer, int len);
-
-/* get content type for the current part/header */
-struct _header_content_type *camel_mime_parser_content_type(CamelMimeParser *);
-
-/* get/change raw header by name */
-const char *camel_mime_parser_header(CamelMimeParser *, const char *, int *offset);
-
-/* get all raw headers. READ ONLY! */
-struct _header_raw *camel_mime_parser_headers_raw(CamelMimeParser *);
-
-/* get multipart pre/postface */
-const char *camel_mime_parser_preface(CamelMimeParser *m);
-const char *camel_mime_parser_postface(CamelMimeParser *m);
-
-/* return the from line content */
-const char *camel_mime_parser_from_line(CamelMimeParser *m);
-
-/* add a processing filter for body contents */
-int camel_mime_parser_filter_add(CamelMimeParser *, CamelMimeFilter *);
-void camel_mime_parser_filter_remove(CamelMimeParser *, int);
-
-/* these should be used with caution, because the state will not
- track the seeked position */
-/* FIXME: something to bootstrap the state? */
-off_t camel_mime_parser_tell(CamelMimeParser *);
-off_t camel_mime_parser_seek(CamelMimeParser *, off_t, int);
-
-off_t camel_mime_parser_tell_start_headers(CamelMimeParser *);
-off_t camel_mime_parser_tell_start_from(CamelMimeParser *);
-
-#endif /* ! _CAMEL_MIME_PARSER_H */
n class='insertions'>+38 * Fix build breakage when openldap2 is installed.kuriyama2002-09-101-0/+11 * Fix build with LDAP library.kuriyama2002-08-291-0/+11 * Chase shlib rev of devel/gettextade2002-08-021-1/+1 * (1) Remove implicit dependency on devel/gdbm.kuriyama2002-07-211-4/+1 * Use i586 optimized asm code for msi when i586 over CPUTYPE is set inkuriyama2002-05-281-1/+4 * Install set-uid'ed gpg if WITH_SUID_GPG is defined.kuriyama2002-05-241-1/+3 * Fix plist at NOPORTDOC environment.kuriyama2002-05-011-15/+15 * Upgrade to 1.0.7.kuriyama2002-04-303-13/+12 * Check hidden dependency on libiconv.kuriyama2002-04-161-0/+3 * gettext upgrade uber-patch (stage 3)ade2002-04-131-5/+2 * Bump PORTREVISION to reflect the (lib)iconv upgrade.knu2002-03-181-1/+1 * Iconv cleanup, stage 1b: correct {BUILD,LIB,RUN}_DEPENDS of all ports that needsobomax2002-03-181-1/+1 * Stage 1 of gettext update.ade2002-03-161-1/+1 * Remove *.alias entries from plist.kuriyama2002-02-122-3/+1 * Link with shared libintl rather than static included gettext.kuriyama2002-02-051-2/+3 * Fix typos in LIB_DEPENDS line.kuriyama2002-02-041-2/+2 * Add (conditional) hidden dependency for iconv and gdbm.kuriyama2002-02-041-0/+7 * Display TIPS (use rndcontrol(8)) message at post-install.kuriyama2001-12-112-1/+6 * Bump $PORTREVISION.kuriyama2001-06-301-0/+1 * Add 2 missing entries (lib/charset.alias and share/locale/locale.alias).kuriyama2001-06-291-0/+2 * Upgrade to gnupg 1.0.6. This is an important security update due to ankris2001-05-303-4/+3 * Upgrade to 1.0.5.kuriyama2001-04-304-38/+10 * Bump PORTVERSION.kuriyama2001-01-181-1/+1 * RIJNDAEL algorithm is not depreciated. Fix not to show warningkuriyama2001-01-171-0/+31 * Add security-patch1.diff.kuriyama2000-12-212-1/+5 * Use $MASTER_SITE_RINGSERVER.kuriyama2000-11-062-7/+10 * Upgrade to v1.0.4.kuriyama2000-10-183-3/+4 * Upgrade to 1.0.3.kuriyama2000-09-193-2/+4 * Remove empty directories.kuriyama2000-08-071-0/+4 * Add missing PLIST entries.kuriyama2000-08-011-0/+3 * Upgrade to v1.0.2.kuriyama2000-07-133-11/+13 * Fix @dirrm typo in PLIST.kuriyama2000-06-131-1/+1 * Fix building error on 2.2.8.kuriyama2000-05-091-1/+1 * Update with the new PORTNAME/PORTVERSION variablescpiazza2000-04-101-2/+2 * Use @unexec to remove locale directories.kuriyama2000-01-151-12/+19 * Update to v1.0.1. (with correct gpg.1)kuriyama1999-12-233-17/+28 * Change broken link to homepage to official oneache1999-12-092-1/+2 * Upgrade to v1.0.0.kuriyama1999-09-102-6/+6 * FreeBSD.ORG -> FreeBSD.orgmharo1999-08-311-2/+2 * $Id$ -> $FreeBSD$peter1999-08-311-1/+1 * chmod -> ${CHMOD}mharo1999-08-231-2/+2 * Upgrade to v0.9.10.kuriyama1999-08-122-4/+4 * Upgrade to v0.9.9.kuriyama1999-07-262-4/+4 * Upgrade to v0.9.8.kuriyama1999-06-302-4/+5 * Upgrade to v0.9.7.kuriyama1999-05-252-4/+4 * Upgrade to v0.9.6.kuriyama1999-05-093-6/+4 * Add WWW: to DESCR filesmharo1999-05-031-2/+2 * Add optional CONFIGURE_ARGS to compile on 2.2.8 system.kuriyama1999-04-172-6/+35 * Upgrade to v0.9.5.kuriyama1999-03-212-4/+4 * Upgrade to v0.9.4.kuriyama1999-03-143-6/+8 * Upgrade to v0.9.3.kuriyama1999-03-083-8/+7 * * Don't use "USE_AUTOCONF" when "GNU_CONFIGURE" will work just fine.obrien1999-02-111-2/+4 * Upgrade to v0.9.2.kuriyama1999-02-072-4/+4 * Upgrade to v0.9.1.kuriyama1999-01-153-10/+8 * Upgrade to v0.4.5.kuriyama1998-12-103-7/+11