~ubuntu-branches/ubuntu/wily/evolution-data-server/wily

« back to all changes in this revision

Viewing changes to camel/camel-mime-part-utils.c

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2015-07-20 13:34:59 UTC
  • mfrom: (1.1.126) (1.2.48 sid)
  • Revision ID: package-import@ubuntu.com-20150720133459-g6y46hnu5ewtoz08
Tags: 3.16.4-0ubuntu2
debian/patches/0001-Bug-752373-Monthly-events-do-not-recur-correctly.patch:
Cherry-pick patch from upstream to fix events not recurring correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; fill-column: 160 -*- */
2
2
/* camel-mime-part-utils : Utility for mime parsing and so on
3
3
 *
4
 
 * Authors: Bertrand Guiheneuf <bertrand@helixcode.com>
5
 
 *          Michael Zucchi <notzed@ximian.com>
6
 
 *          Jeffrey Stedfast <fejj@ximian.com>
7
 
 *
8
4
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
9
5
 *
10
 
 * This library is free software you can redistribute it and/or modify it
 
6
 * This library is free software: you can redistribute it and/or modify it
11
7
 * under the terms of the GNU Lesser General Public License as published by
12
8
 * the Free Software Foundation.
13
9
 *
14
10
 * This library is distributed in the hope that it will be useful, but
15
11
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
 
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
17
 
 *for more details.
 
12
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 
13
 * for more details.
18
14
 *
19
15
 * You should have received a copy of the GNU Lesser General Public License
20
 
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 
16
 * along with this library. If not, see <http://www.gnu.org/licenses/>.
 
17
 *
 
18
 * Authors: Bertrand Guiheneuf <bertrand@helixcode.com>
 
19
 *          Michael Zucchi <notzed@ximian.com>
 
20
 *          Jeffrey Stedfast <fejj@ximian.com>
21
21
 */
22
22
 
23
23
#ifdef HAVE_CONFIG_H
175
175
                gint i, nparts;
176
176
                CamelMultipart *mp = (CamelMultipart *) camel_medium_get_content ((CamelMedium *) msg);
177
177
 
178
 
                if (!CAMEL_IS_MULTIPART (mp))
179
 
                        g_assert (0);
 
178
                g_warn_if_fail (CAMEL_IS_MULTIPART (mp));
 
179
 
180
180
                nparts = camel_multipart_get_number (mp);
181
181
                for (i = 0; i < nparts && !got_plain; i++) {
182
182
                        CamelMimePart *part = camel_multipart_get_part (mp, i);