File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -127,15 +127,16 @@ Output results in the specified format.
127
127
- The default is *plain*, i.e normal output with one line per message.
128
128
- *links* outputs the results as a maildir with symbolic links to the found
129
129
messages. This enables easy integration with mail-clients (see below for more
130
- information).
130
+ information). This requires *--linksdir*.
131
131
- *xml* formats the search results as XML.
132
132
- *sexp* formats the search results as an s-expression as used in Lisp programming
133
133
environments.
134
134
135
135
** --linksdir _dir_ and -c, --clearlinks
136
- When using *--format=links*, output the results as a maildir with symbolic links to
137
- the found messages. This enables easy integration with mail-clients (see below
138
- for more information). *mu* will create the maildir if it does not exist yet.
136
+ When using *--format=links*, output the results as a maildir with symbolic links
137
+ to the found messages. This enables easy integration with mail-clients (see
138
+ below for more information). *mu* will create the maildir if it does not exist
139
+ yet.
139
140
140
141
If you specify *--clearlinks*, existing symlinks will be cleared from the target
141
142
directories; this allows for re-use of the same maildir. However, this option
Original file line number Diff line number Diff line change @@ -164,6 +164,10 @@ get_query(const Store& store, const Options& opts)
164
164
static Result<void >
165
165
prepare_links (const Options& opts)
166
166
{
167
+ // XXX: can this be done as part of the option-parsing?
168
+ if (opts.find .linksdir .empty ())
169
+ return Err (Error::Code::InvalidArgument, " --linksdir is required" );
170
+
167
171
/* note, mu_maildir_mkdir simply ignores whatever part of the
168
172
* mail dir already exists */
169
173
if (auto && res = maildir_mkdir (opts.find .linksdir , 0700 , true ); !res)
You can’t perform that action at this time.
0 commit comments