aboutsummaryrefslogtreecommitdiff
path: root/doc/aerc-notmuch.5.scd
blob: 202f20fd4b7f60720172728ca6f1069417311ff7 (plain)
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
AERC-NOTMUCH(5)

# NAME

aerc-notmuch - notmuch configuration for *aerc*(1)

# SYNOPSIS

aerc supports using the notmuch email system as a backend, for fast indexing
and searching.

For this to be enabled, aerc needs to be build with notmuch support.
Refer to the installation instructions for details.

# CONFIGURATION

Notmuch accounts currently are not supported with the *:new-account* command and
must be added manually.

In _accounts.conf_ (see *aerc-accounts*(5)), the following notmuch-specific
options are available:

*check-mail-cmd* = _<command>_
	Command to run in conjunction with *check-mail* option.

	Example:
		check-mail-cmd = mbsync -a

*check-mail-timeout* = _<duration>_
	Timeout for the *check-mail-cmd*. The command will be stopped if it does
	not complete in this interval and an error will be displayed. Increase from
	the default if repeated errors occur

	Default: _10s_

*source* = notmuch://_<path>_
	The *source* indicates the path to the directory containing your notmuch
	database (usually a _.notmuch/_ folder).

	The path portion of the URL following _notmuch://_ must be either an absolute
	path prefixed by _/_ or a path relative to your home directory prefixed with
	_~_. For example:

		source = notmuch:///home/me/mail

		source = notmuch://~/mail

*query-map* = _<file>_
	Path to a file containing a mapping from display name to notmuch query
	in the form of *<NAME>*=_<QUERY>_.

	Multiple entries can be specified, one per line. Lines starting with _#_
	are ignored and serve as comments.

	e.g. inbox=tag:inbox and not tag:archived

*exclude-tags* = _<tag1,tag2,tag3...>_
	Comma separated list of tags which will be excluded from query results,
	unless explicitly mentioned in the query.

	This can for example be useful if you use an _archive_ or _spam_ tag.

*maildir-store* = _<path>_
	Path to the maildir store containing the message files backing the
	notmuch database. This is often the same as the notmuch database path.
	If specified, this option will be used by aerc to list available folders
	and enable commands such as *:delete* and *:archive*.

	N.B.: aerc will still always show messages and not files (under notmuch,
	a single message can be represented by several files), which makes the
	semantics of certain commands as *move* ambiguous. Use *multi-file-strategy*
	to tell aerc how to resolve these ambiguities.

*maildir-account-path* = _<path>_
	Path to the maildir account relative to the *maildir-store*.

	This could be used to achieve traditional maildir one tab per account
	behavior. The note on *maildir-store* also applies to this option.

*multi-file-stategy* = _<strategy>_
	Strategy for file operations (e.g., move, copy, delete) on messages that are
	backed by multiple files. Possible values:

	- *refuse* (default): Refuse to act.
	- *act-all*: Act on all files.
	- *act-one*: Act on one of the files, arbitrarily chosen, and ignore the
	rest.
	- *act-one-delete-rest*: Like *act-one*, but delete the remaining files.
	- *act-dir*: Act on all files within the current folder and ignore the rest.
	Note that this strategy only works within the maildir directories; in other
	directories, it behaves like *refuse*.
	- *act-dir-delete-rest*: Like *act-dir*, but delete the remaining files.

	Note that the strategy has no effect on cross-account operations. Copying a
	message across accounts will always copy a single file, arbitrarily chosen.
	Moving a message across accounts will always copy a single file, arbitrarily
	chosen, and refuse to delete multiple files from the source account.

# USAGE

Notmuch shows slightly different behavior than for example imap. Some commands
are slightly different in semantics and mentioned below:

*cf* _<notmuch query>_
	The change folder command allows for arbitrary notmuch queries. Performing a
	*:cf* command will perform a new top-level notmuch query.

*filter* _<notmuch query>_
	The filter command for notmuch backends takes in arbitrary notmuch queries.
	It applies the query on the set of messages shown in the message list. This
	can be used to perform successive filters/queries. It is equivalent to
	performing a set of queries concatenated with "and".

# SEE ALSO

*aerc*(1) *aerc-accounts*(5) *aerc-smtp*(5) *aerc-maildir*(5)

# AUTHORS

Originally created by Drew DeVault and maintained by Robin Jarry who is assisted
by other open source contributors. For more information about aerc development,
see _https://sr.ht/~rjarry/aerc/_.