This file is indexed.

/usr/share/doc/libsylph-dev/examples/libsylph-createmailbox.c is in libsylph-dev 1.1.0-13.

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
/* gcc -Wall -g -o libsylph-createmailbox libsylph-createmailbox.c -lsylph `pkg-config glib-2.0 --cflags --libs` */

#include <sylph/sylmain.h>
#include <sylph/prefs_common.h>
#include <sylph/folder.h>

Folder *create_mailbox(void)
{
	Folder *folder;

	/* create new MH Folder object */
	folder = folder_new(F_MH, "TestMailbox", "TestMailbox");
	/* create physical directories */
	folder_create_tree(folder);
	/* add to Folder list */
	folder_add(folder);
	/* scan directory tree */
	folder_scan_tree(folder);

	return folder;
}

int main(int argc, char *argv[])
{
	Folder *folder;
	FolderItem *item;

	syl_init();

	prefs_common_read_config();

	folder = create_mailbox();

	/* search created folder */
	item = folder_find_item_from_identifier("#mh/TestMailbox/inbox");
	if (item) {
		gchar *path = folder_item_get_path(item);
		g_print("%s found\n", path);
		g_free(path);
	}

	/* destroy folder tree */
	folder_destroy(folder);

	syl_cleanup();

	return 0;
}