unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 21424cf6b9f3978d25a1e2dc5be32e02c9801897 1328 bytes (raw)
name: notmuch-insert.c 	 # note: path name is non-authoritative(*)

 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
 
/* notmuch - Not much of an email program, (just index and search)
 *
 * Copyright © 2012 Peter Wang
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see http://www.gnu.org/licenses/ .
 *
 * Author: Peter Wang <novalazy@gmail.com>
 */

#include "notmuch-client.h"

int
notmuch_insert_command (void *ctx, int argc, char *argv[])
{
    notmuch_config_t *config;
    notmuch_database_t *notmuch;
    const char *db_path;

    config = notmuch_config_open (ctx, NULL, NULL);
    if (config == NULL)
	return 1;

    db_path = notmuch_config_get_database_path (config);

    if (notmuch_database_open (notmuch_config_get_database_path (config),
			       NOTMUCH_DATABASE_MODE_READ_WRITE, &notmuch))
	return 1;

    notmuch_database_destroy (notmuch);

    return 1;
}

debug log:

solving 21424cf ...
found 21424cf in https://yhetil.org/notmuch/1343223767-9812-2-git-send-email-novalazy@gmail.com/ ||
	https://yhetil.org/notmuch/1353806206-29133-4-git-send-email-novalazy@gmail.com/
found 0e061a0 in https://yhetil.org/notmuch/1343223767-9812-1-git-send-email-novalazy@gmail.com/

applying [1/2] https://yhetil.org/notmuch/1343223767-9812-1-git-send-email-novalazy@gmail.com/
diff --git a/notmuch-insert.c b/notmuch-insert.c
new file mode 100644
index 0000000..0e061a0


applying [2/2] https://yhetil.org/notmuch/1343223767-9812-2-git-send-email-novalazy@gmail.com/
diff --git a/notmuch-insert.c b/notmuch-insert.c
index 0e061a0..21424cf 100644

Checking patch notmuch-insert.c...
Applied patch notmuch-insert.c cleanly.
Checking patch notmuch-insert.c...
Applied patch notmuch-insert.c cleanly.

skipping https://yhetil.org/notmuch/1353806206-29133-4-git-send-email-novalazy@gmail.com/ for 21424cf
index at:
100644 21424cf6b9f3978d25a1e2dc5be32e02c9801897	notmuch-insert.c

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).