forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmutt_notmuch.h
62 lines (49 loc) · 1.97 KB
/
mutt_notmuch.h
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
/**
* @file
* Notmuch virtual mailbox type
*
* @authors
* Copyright (C) 2011 Karel Zak <[email protected]>
*
* @copyright
* 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 2 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/>.
*/
#ifndef _MUTT_NOTMUCH_H
#define _MUTT_NOTMUCH_H
#include <stddef.h>
#include <stdbool.h>
#include "mx.h"
struct Context;
struct Header;
int nm_read_entire_thread(struct Context *ctx, struct Header *h);
char *nm_header_get_folder(struct Header *h);
int nm_update_filename(struct Context *ctx, const char *old, const char *new, struct Header *h);
bool nm_normalize_uri(char *new_uri, const char *orig_uri, size_t new_uri_sz);
char *nm_uri_from_query(struct Context *ctx, char *buf, size_t buflen);
bool nm_message_is_still_queried(struct Context *ctx, struct Header *hdr);
void nm_query_window_backward(void);
void nm_query_window_forward(void);
void nm_longrun_init(struct Context *ctx, bool writable);
void nm_longrun_done(struct Context *ctx);
char *nm_get_description(struct Context *ctx);
int nm_description_to_path(const char *desc, char *buf, size_t buflen);
int nm_record_message(struct Context *ctx, char *path, struct Header *h);
void nm_debug_check(struct Context *ctx);
int nm_get_all_tags(struct Context *ctx, char **tag_list, int *tag_count);
/*
* functions usable outside notmuch Context
*/
int nm_nonctx_get_count(char *path, int *all, int *new);
extern struct MxOps mx_notmuch_ops;
#endif /* _MUTT_NOTMUCH_H */