mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
Rename g_mime_test to notmuch-index-message
In preparation for actually creating a Xapian index from the message, (not that we're doing that quite yet).
This commit is contained in:
parent
a68a023d47
commit
c55c34f4a0
3 changed files with 9 additions and 9 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
xapian-dump
|
||||
g_mime_test
|
||||
notmuch-index-message
|
||||
|
||||
|
|
7
Makefile
7
Makefile
|
@ -1,12 +1,11 @@
|
|||
PROGS=g_mime_test xapian-dump
|
||||
PROGS=notmuch-index-message xapian-dump
|
||||
|
||||
MYCFLAGS=-Wall
|
||||
MYCXXFLAGS=-Wall
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
g_mime_test: g_mime_test.c
|
||||
$(CC) $(CFLAGS) $(MYCFLAGS) g_mime_test.c `pkg-config --cflags --libs gmime-2.4` -o g_mime_test
|
||||
notmuch-index-message: notmuch-index-message.cc
|
||||
$(CC) $(CXXFLAGS) $(MYCXXFLAGS) notmuch-index-message.cc `pkg-config --cflags --libs gmime-2.4` `xapian-config --cxxflags --libs` -o notmuch-index-message
|
||||
|
||||
xapian-dump: xapian-dump.cc
|
||||
$(CXX) $(CXXFLAGS) $(MYCXXFLAGS) xapian-dump.cc `xapian-config --libs --cxxflags` -o xapian-dump
|
||||
|
|
|
@ -64,7 +64,7 @@ prefix_t BOOLEAN_PREFIX[] = {
|
|||
static const char *
|
||||
find_prefix (const char *name)
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE (NORMAL_PREFIX); i++)
|
||||
if (strcmp (name, NORMAL_PREFIX[i].name) == 0)
|
||||
|
@ -175,9 +175,9 @@ main (int argc, char **argv)
|
|||
fprintf (stderr, "Error opening %s: %s\n", filename, strerror (errno));
|
||||
exit (1);
|
||||
}
|
||||
|
||||
|
||||
g_mime_init (0);
|
||||
|
||||
|
||||
stream = g_mime_stream_file_new (file);
|
||||
|
||||
parser = g_mime_parser_new_with_stream (stream);
|
||||
|
@ -238,6 +238,6 @@ main (int argc, char **argv)
|
|||
g_object_unref (message);
|
||||
g_object_unref (parser);
|
||||
g_object_unref (stream);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue