Mercurial > dovecot > core-2.2
view src/lib-imap/imap-bodystructure.c @ 6429:65c69a53a7be HEAD
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 16 Sep 2007 14:34:22 +0300 |
parents | 6c0bfc35af03 |
children | 414c9d631a81 |
line wrap: on
line source
/* Copyright (c) 2002-2007 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "buffer.h" #include "istream.h" #include "str.h" #include "message-parser.h" #include "rfc822-parser.h" #include "imap-parser.h" #include "imap-quote.h" #include "imap-envelope.h" #include "imap-bodystructure.h" #define DEFAULT_CHARSET \ "\"charset\" \"us-ascii\"" #define EMPTY_BODYSTRUCTURE \ "(\"text\" \"plain\" ("DEFAULT_CHARSET") NIL NIL \"7bit\" 0 0)" struct message_part_body_data { pool_t pool; const char *content_type, *content_subtype; const char *content_type_params; const char *content_transfer_encoding; const char *content_id; const char *content_description; const char *content_disposition; const char *content_disposition_params; const char *content_md5; const char *content_language; struct message_part_envelope_data *envelope; }; static void parse_content_type(struct message_part_body_data *data, struct message_header_line *hdr) { struct rfc822_parser_context parser; const char *key, *value; string_t *str; unsigned int i; bool charset_found = FALSE; rfc822_parser_init(&parser, hdr->full_value, hdr->full_value_len, NULL); (void)rfc822_skip_lwsp(&parser); str = t_str_new(256);