This file is indexed.

/usr/include/evolution-data-server/mapi/e-mapi-folder.h is in libexchangemapi-1.0-dev 3.10.2-0ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) version 3.
 *
 * 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with the program; if not, see <http://www.gnu.org/licenses/>
 *
 *
 * Authors:
 *    Srinivasa Ragavan <sragavan@novell.com>
 *
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
 *
 */

#ifndef E_MAPI_FOLDER_H
#define E_MAPI_FOLDER_H

#include <glib.h>

#include <libmapi/libmapi.h>
#include <libedataserver/libedataserver.h>

typedef enum  {
	E_MAPI_FOLDER_TYPE_UNKNOWN = 0,
	E_MAPI_FOLDER_TYPE_MAIL,
	E_MAPI_FOLDER_TYPE_APPOINTMENT,
	E_MAPI_FOLDER_TYPE_CONTACT,
	E_MAPI_FOLDER_TYPE_MEMO,
	E_MAPI_FOLDER_TYPE_JOURNAL,
	E_MAPI_FOLDER_TYPE_TASK,
	E_MAPI_FOLDER_TYPE_NOTE_HOMEPAGE
} EMapiFolderType;

typedef enum {
	E_MAPI_FOLDER_CATEGORY_UNKNOWN = 0,
	E_MAPI_FOLDER_CATEGORY_PERSONAL,
	E_MAPI_FOLDER_CATEGORY_PUBLIC,
	E_MAPI_FOLDER_CATEGORY_FOREIGN
} EMapiFolderCategory;

typedef struct _EMapiFolder {
	/* We'll need this separation of 'owner' and 'user' when we do delegation */
	gchar *owner_name;
	gchar *owner_email;
	gchar *user_name;
	gchar *user_email;

	/* Need this info - default calendars/address books/notes folders can't be deleted */
	gboolean is_default;
	guint32 default_type;

	gchar *folder_name;
	EMapiFolderType container_class;
	EMapiFolderCategory category;
	mapi_id_t folder_id;
	mapi_id_t parent_folder_id;
	guint32 child_count;
	guint32 unread_count;
	guint32 total;
	guint32 size;

	/* reserved */
	gpointer reserved1;
	gpointer reserved2;
	gpointer reserved3;
} EMapiFolder;

EMapiFolderType		e_mapi_folder_type_from_string	(const gchar *container_class);
const gchar *		e_mapi_folder_type_to_string	(EMapiFolderType folder_type);

EMapiFolder *		e_mapi_folder_new		(const gchar *folder_name,
							 const gchar *container_class,
							 EMapiFolderCategory catgory,
							 mapi_id_t folder_id,
							 mapi_id_t parent_folder_id,
							 uint32_t child_count,
							 uint32_t unread_count,
							 uint32_t total);
EMapiFolder *		e_mapi_folder_copy		(EMapiFolder *src);
void			e_mapi_folder_free		(EMapiFolder *folder);

const gchar *		e_mapi_folder_get_name		(EMapiFolder *folder);
mapi_id_t		e_mapi_folder_get_id		(EMapiFolder *folder);
mapi_id_t		e_mapi_folder_get_parent_id	(EMapiFolder *folder);
EMapiFolderType		e_mapi_folder_get_type		(EMapiFolder *folder);
EMapiFolderCategory	e_mapi_folder_get_category	(EMapiFolder *folder);
guint32			e_mapi_folder_get_unread_count	(EMapiFolder *folder);
guint32			e_mapi_folder_get_total_count	(EMapiFolder *folder);
gboolean		e_mapi_folder_is_root		(EMapiFolder *folder);

GSList *		e_mapi_folder_copy_list		(GSList *folder_list);
void			e_mapi_folder_free_list		(GSList *folder_list);

gchar *			e_mapi_folder_pick_color_spec	(gint move_by,
							 gboolean around_middle);

gboolean		e_mapi_folder_populate_esource	(ESource *source,
							 const GList *sources,
							 EMapiFolderType folder_type,
							 const gchar *profile,
							 gboolean offline_sync,
							 EMapiFolderCategory folder_category,
							 const gchar *foreign_username, /* NULL for public folder */
							 const gchar *folder_name,
							 mapi_id_t folder_id,
							 gint color_seed,
							 GCancellable *cancellable,
							 GError **perror);

gboolean		e_mapi_folder_add_as_esource	(ESourceRegistry *pregistry,
							 EMapiFolderType folder_type,
							 const gchar *profile,
							 gboolean offline_sync,
							 EMapiFolderCategory folder_category,
							 const gchar *foreign_username, /* NULL for public folder */
							 const gchar *folder_name,
							 mapi_id_t folder_id,
							 gint color_seed,
							 GCancellable *cancellable,
							 GError **perror);

gboolean		e_mapi_folder_remove_as_esource	(ESourceRegistry *pregistry,
							 const gchar *profile,
							 mapi_id_t folder_id,
							 GCancellable *cancellable,
							 GError **perror);

gboolean		e_mapi_folder_is_subscribed_as_esource
							(const GList *esources,
							 const gchar *profile,
							 mapi_id_t fid);
#endif