~ubuntu-branches/ubuntu/quantal/maildir-utils/quantal

« back to all changes in this revision

Viewing changes to .pc/fix-manpages/man/mu-find.1

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-03-15 08:45:56 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20120315084556-vqdvw8sgodo24aji
Tags: 0.9.8.2-1
* several new upstream versions
* b-d on libgmime-2.6-dev (Closes: #664001, #664006)
* bump standards version to 3.9.3, no changes necessary
* switch to source format 3.0 (quilt): debian/control, debian/rules
* maildir-utils depends on dpkg/install-info (lintian warning)
* fix man page lintian warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH MU FIND 1 "December 2011" "User Manuals"
 
2
 
 
3
.SH NAME
 
4
 
 
5
mu find \- find e-mail messages in the \fBmu\fR database.
 
6
 
 
7
.SH SYNOPSIS
 
8
 
 
9
.B mu find [options] <search expression>
 
10
 
 
11
.SH DESCRIPTION
 
12
 
 
13
\fBmu find\fR is the \fBmu\fR command for searching e-mail message that
 
14
were stored earlier using
 
15
\fBmu index(1)\fR.
 
16
 
 
17
.SH SEARCHING MAIL
 
18
 
 
19
\fBmu find\fR starts a search for messages in the database that match some
 
20
search pattern. For example:
 
21
 
 
22
.nf
 
23
   $ mu find subject:snow from:john
 
24
.fi
 
25
 
 
26
would find all messages from John with 'snow' in the subject field, something
 
27
like:
 
28
 
 
29
.nf
 
30
  2009-03-05 17:57:33 EET Lucia  <lucia@example.com> running in the snow
 
31
  2009-03-05 18:38:24 EET Marius <marius@foobar.com> Re: running in the snow
 
32
.fi
 
33
 
 
34
Note, this the default, plain-text output, which is the default, so you don't
 
35
have to use \fB--format=plain\fR. For other types of output (such as symlinks,
 
36
XML or s-expressions), see the discussion in the \fBOPTIONS\fR-section
 
37
below about \fB--format\fR.
 
38
 
 
39
The search pattern is taken as a command-line parameter. If the search
 
40
parameter consists of multiple parts (as in the example) they are treated as
 
41
if there were a logical \fBAND\fR between them.
 
42
 
 
43
If you want to make your own constructions (using \fBAND\fR, \fBOR\fR,
 
44
\fBNOT\fR etc., you have to put quotes around them so \fBmu\fR can consider
 
45
them as a unit; for example to find mails with oranges OR mandarins in the
 
46
subject-field, you can use:
 
47
 
 
48
.nf
 
49
  $ mu find 'subject:orange OR subject:mandarin'
 
50
.fi
 
51
 
 
52
 
 
53
\fBmu\fR relies on the Xapian database for its searching capabilities, so it
 
54
offers all the search functionality that Xapian offers; for all the details,
 
55
see:
 
56
     \fIhttp://xapian.org/docs/queryparser.html\fR
 
57
 
 
58
One special feature of \fBmu\fR is that is does not distinguish between
 
59
uppercase and lowercase, nor the accented or unaccented versions of
 
60
characters. All match. In general, \fBmu\fR tries to be 'eager' in matching,
 
61
as filtering out unwanted results is usually preferrable over non matching
 
62
messages.
 
63
 
 
64
A wildcard search is a search where a \fB*\fR matches the last \fIn\R
 
65
character(s) in some string. The string must always start with one or more
 
66
characters before the wildcards. Since version 0.9.6, \fBmu\fR also supports
 
67
wildcard searches for all fields except maildirs and paths. So, to get all
 
68
mails with a subject containing a word starting with \fBcom\fR, you can use:
 
69
 
 
70
.nf
 
71
  $ mu find 'subject:com*'
 
72
.fi
 
73
 
 
74
and get mails about computers, comments, compilation and so on. Note, when
 
75
running from the command-line it's import to put the query in quotes,
 
76
otherwise the shell would interpret the '*'. It is important to remember that
 
77
the '*' invokes the wildcard search only when used as the rightmost character
 
78
of a search term. Furthermore, it is \fBnot\fR a regular expression.
 
79
 
 
80
In older versions of mu, queries were logged in \fI<mu-home>/mu.log\fR;
 
81
however, since version 0.9, mu no longer does this.
 
82
 
 
83
The basic way to search a message is to type some words matching it, as you
 
84
would do in an internet search engine. For example,
 
85
 
 
86
.nf
 
87
  $ mu find monkey banana
 
88
.fi
 
89
 
 
90
will find all messages that contain both 'monkey' and 'banana' in either body
 
91
or subject or one of the address-fields (to/from/cc).
 
92
 
 
93
As mentioned, matching is case-insensitive and accent-insensitive;
 
94
thus
 
95
 
 
96
.nf
 
97
  $ mu find Mönkey BÄNAÑå
 
98
.fi
 
99
 
 
100
yields the same results as the example above.
 
101
 
 
102
\fBmu\fR also recognizes prefixes for specific fields in a messages; for
 
103
example:
 
104
 
 
105
.nf
 
106
  $ mu find subject:penguin
 
107
.fi
 
108
 
 
109
to find messages with have the word \fBpenguin\fR in the subject field. You
 
110
can abbreviate \fBsubject:\fR to just \fBs:\fR. Here is the full table of the
 
111
search fields and their abbreviations:
 
112
 
 
113
.nf
 
114
        cc,c            Cc (carbon-copy) recipient(s)
 
115
        bcc,h           Bcc (blind-carbon-copy) recipient(s)
 
116
        from,f          Message sender
 
117
        subject,s       Message subject
 
118
        to,t            To: recipient(s)
 
119
        maildir,m       Maildir
 
120
        msgid,i         Message-ID
 
121
        prio,p          Message priority ('low', 'normal' or 'high')
 
122
        flag,g          Message Flags
 
123
        date,d          Date-Range
 
124
        size,z          Message size
 
125
        embed,e         Search inside embedded text parts (messages, attachments)
 
126
        file,j          Attachment filename
 
127
        mime,y          MIME-type of one or more message parts
 
128
        tag,x           Tag for the message (contents of the \fIX-Label\fR field)
 
129
.fi
 
130
 
 
131
For clarity, this man-page uses the longer versions.
 
132
 
 
133
The meaning of most of these fields should be clear, but some require some
 
134
extra discusion.
 
135
 
 
136
First, the message flags field describes certain properties of the message, as
 
137
listed in the following table:
 
138
 
 
139
.nf
 
140
        d,draft         Draft Message
 
141
        f,flagged       Flagged
 
142
        n,new           New message (in new/ Maildir)
 
143
        p,passed        Passed ('Handled')
 
144
        r,replied       Replied
 
145
        s,seen          Seen
 
146
        t,thrashed      Marked for deletion
 
147
        a,attach        Has attachment
 
148
        z,signed        Signed message
 
149
        x,encrypted     Encrypted message
 
150
.fi
 
151
 
 
152
Using this, we can search e.g. for all signed messages that have an
 
153
attachment:
 
154
 
 
155
.nf
 
156
  $ mu find flag:signed flag:attach
 
157
.fi
 
158
 
 
159
The message-priority has three possible values: low, normal or high. We can
 
160
match them using \fBprio:\fR - for example, to get all high-priority messages
 
161
with a subject containing some bird:
 
162
 
 
163
.nf
 
164
  $ mu find prio:high subject:nightingale
 
165
.fi
 
166
 
 
167
The Maildir field describes the directory path starting \fBafter\fR the
 
168
Maildir-base path, and before the \fI/cur/\fR or \fI/new/\fR part. So for
 
169
example, if there's a message with the file name
 
170
\fI~/Maildir/lists/running/cur/1234.213:2,\fR, you could find it (and all the
 
171
other messages in the same maildir) with:
 
172
 
 
173
.nf
 
174
  $ mu find maildir:/lists/running
 
175
.fi
 
176
 
 
177
Note the starting '/'. If you want to match mails in the 'root' maildir, you
 
178
can do with a single '/':
 
179
 
 
180
.nf
 
181
  $ mu find maildir:/
 
182
.fi
 
183
 
 
184
(and of course you can use the \fBm:\fR shortcut instead of \fBmaildir:\fR)
 
185
 
 
186
The \fBdate:\fR (or \fBd:\fR) search parameter is 'special' in the fact that
 
187
it takes a range of dates. For now, these dates are in ISO 8601 format
 
188
(YYYYMMDDHHMM); you can leave out the right part, and mu will add the rest,
 
189
depending on whether this is the beginning or end of the date interval. For
 
190
example, for the beginning of the interval "201012" would be interpreted as
 
191
"20101201010000", or December 1, 2010 at 00:00, while for the end of the
 
192
interval, this would be interpreted as "20101231122359", or December 31, 2010
 
193
at 23:59.
 
194
 
 
195
To get all messages between (inclusive) the 5th of May 2009 and the 2nd of
 
196
June 2010, you could use:
 
197
 
 
198
.nf
 
199
  $ mu find date:20090505..20100602
 
200
.fi
 
201
 
 
202
Non-numeric characters are ignored, so the following is equivalent but more
 
203
readable:
 
204
 
 
205
.nf
 
206
  $ mu find date:2009-05-05..2010-06-02
 
207
.fi
 
208
 
 
209
Precision is up to the minute and 24-hour notation for times is used, so
 
210
another example would be:
 
211
 
 
212
.nf
 
213
  $ mu find date:2009-05-05/12:23..2010-06-02/17:18
 
214
.fi
 
215
 
 
216
An important point here is that the date matches are against local the local
 
217
time zone active the time when the mu database was filled (using \fBmu
 
218
index\fR).
 
219
 
 
220
\fBmu\fR also understand relative dates, in the form of a posiive number
 
221
followed by h (hour), d (day), w (week), m (30 days) or y (365 days). Some
 
222
examples will explain this:
 
223
 
 
224
.nf
 
225
        5h      five hours in the past
 
226
        2w      one week in the past
 
227
        3m      three times 30 days in the past
 
228
        1y      365 days in the past
 
229
.fi
 
230
 
 
231
Using this notation, you can for example match messages between two and three
 
232
weeks old:
 
233
 
 
234
.nf
 
235
  $ mu find date:3w..2w
 
236
.fi
 
237
 
 
238
There are some special keywords for dates, namely 'now', meaning the
 
239
prsent moment and 'today' for the beginning of today. So to get all messages
 
240
sent or received today, you could use:
 
241
 
 
242
.nf
 
243
  $ mu find date:today..now
 
244
.fi
 
245
 
 
246
The \fBsize\fR or \fBz\fR allows you to match \fIsize ranges\fR -- that is,
 
247
match messages that have a byte-size within a certain range. Units (B (for
 
248
bytes), K (for 1000 bytes) and M (for 1000 * 1000 bytes) are supported). For
 
249
example, to get all messages between 10Kb and 2Mb (assuming SI units), you
 
250
could use:
 
251
 
 
252
.nf
 
253
  $ mu find size:10K..2M
 
254
.fi
 
255
 
 
256
Finally, you can match \fIall\fR messages using "":
 
257
 
 
258
.nf
 
259
  $ mu find ""
 
260
.fi
 
261
 
 
262
 
 
263
.SH OPTIONS
 
264
 
 
265
Note, some of the important options are described in the \fBmu(1)\fR man-page
 
266
and not here, as they apply to multiple mu-commands.
 
267
 
 
268
The \fBfind\fR-command has various options that influence the way \fBmu\fR
 
269
displays the results. If you don't specify anything, the defaults are
 
270
\fI\-\-fields="d f s"\fR, \fI\-\-sortfield=date\fR and \fI\-\-reverse\fR.
 
271
 
 
272
.TP
 
273
\fB\-f\fR, \fB\-\-fields\fR=\fI<fields>\fR
 
274
specifies a string that determines which fields are shown in the output. This
 
275
string consists of a number of characters (such as 's' for subject or 'f' for
 
276
from), which will replace with the actual field in the output. Fields that are
 
277
not known will be output as-is, allowing for some simple formatting.
 
278
 
 
279
For example:
 
280
 
 
281
.nf
 
282
  $ mu find subject:snow --fields "d f s"
 
283
.fi
 
284
 
 
285
would list the date, subject and sender of all messages with 'snow' in the
 
286
their subject.
 
287
 
 
288
The table of replacement characters is superset of the list mentions for
 
289
search parameters; the complete list:
 
290
 
 
291
.nf
 
292
        t       \fBt\fRo: recipient
 
293
        c       \fBc\fRc: (carbon-copy) recipient
 
294
        h       Bcc: (blind carbon-copy, \fBh\fRidden) recipient
 
295
        d       Sent \fBd\fRate of the message
 
296
        f       Message sender (\fBf\fRrom:)
 
297
        g       Message flags (fla\fBg\fRs)
 
298
        l       Full path to the message (\fBl\fRocation)
 
299
        p       Message \fBp\fRriority (high, normal, low)
 
300
        s       Message \fBs\fRubject
 
301
        i       Message-\fBi\fRd
 
302
        m       \fBm\fRaildir
 
303
.fi
 
304
 
 
305
 
 
306
The message flags are the same ones we already saw in the message flags
 
307
above. Thus, a message which is 'seen', has an attachment and is signed would
 
308
have 'asz' as its corresponding output string, while an encrypted new message
 
309
would have 'nx'.
 
310
 
 
311
.TP
 
312
\fB\-s\fR, \fB\-\-sortfield\fR \fR=\fI<field>\fR and \fB\-z\fR,
 
313
\fB\-\-reverse\fR specifies the field to sort the search results by, and the
 
314
direction (i.e., 'reverse' means that the sort should be reverted - Z-A). The
 
315
following fields are supported:
 
316
 
 
317
.nf
 
318
        cc,c            Cc (carbon-copy) recipient(s)
 
319
        bcc,h           Bcc (blind-carbon-copy) recipient(s)
 
320
        date,d          message sent date
 
321
        from,f          message sender
 
322
        maildir,m       maildir
 
323
        msgid,i         message id
 
324
        prio,p          message priority
 
325
        subject,s       message subject
 
326
        to,t            To:-recipient(s)
 
327
.fi
 
328
 
 
329
Thus, for example, to sort messages by date, you could specify:
 
330
 
 
331
.nf
 
332
  $ mu find fahrrad --fields "d f s" --sortfield=date --reverse
 
333
.fi
 
334
 
 
335
Note, if you specify a sortfield, by default, messages are sorted in reverse
 
336
(descending) order (e.g., from lowest to highest). This is usually a good
 
337
choice, but for dates it may be more useful to sort in the opposite direction.
 
338
 
 
339
.TP
 
340
\fB\-\-summary\fR
 
341
output a summary based upon the first lines of the message.
 
342
 
 
343
.TP
 
344
\fB\-\-include\-unreadable\fR
 
345
normally, \fBmu find\fR does not include messages that are unreadable,
 
346
typically do not have corresponding disk file, i.e., messages that live only
 
347
in the databases. With this option even such messages are included. Note, for
 
348
\fB\-\-format=\fRlinks, unreadable message are ignore even when this option is
 
349
set.
 
350
 
 
351
.TP
 
352
\fB\-\-format\fR=\fIplain|links|xquery|xml|sexp\fR
 
353
output results in the specified format.
 
354
 
 
355
The default is \fBplain\fR, i.e normal output with one line per message.
 
356
 
 
357
\fBlinks\fR outputs the results as a maildir with symbolic links to the found
 
358
messages. This enables easy integration with mail-clients (see below for more
 
359
information). See \fB\-\-linksdir\fR and \fB\-\-clearlinks\fR below.
 
360
 
 
361
\fBxml\fR formats the search results as XML.
 
362
 
 
363
\fBsexp\fR formats the search results as an s-expression as used in Lisp
 
364
programming environments.
 
365
 
 
366
\fBxquery\fR shows the Xapian query corresponding to your search terms. This
 
367
is meant for for debugging purposes.
 
368
 
 
369
.TP
 
370
\fB\-\-linksdir\fR \fR=\fI<dir>\fR and \fB\-c\fR, \fB\-\-clearlinks\fR
 
371
output the results as a maildir with symbolic links to the found
 
372
messages. This enables easy integration with mail-clients (see below for more
 
373
information). \fBmu\fR will create the maildir if it does not exist yet.
 
374
 
 
375
If you specify \fB\-\-clearlinks\fR, all existing symlinks will be cleared
 
376
from the target maildir; this allows for re-use of the same directory. An
 
377
alternative would be to delete the target directory before, but this has a big
 
378
chance of accidentaly removing something that should not be removed.
 
379
 
 
380
.nf
 
381
  $ mu find grolsch --linksdir=~/Maildir/search --clearlinks
 
382
.fi
 
383
 
 
384
will store links to found messages in \fI~/Maildir/search\fR. If the directory
 
385
does not exist yet, it will be created.
 
386
 
 
387
Note: when \fBmu\fR creates a Maildir for these links, it automatically
 
388
inserts a \fI.noindex\fR file, to exclude the directory from \fBmu
 
389
index\fR.
 
390
 
 
391
.TP
 
392
\fB\-\-exec\fR=\fI<command>\fR
 
393
the \fB\-\-exec\fR command causes the \fIcommand\fR to be executed on each
 
394
matched message; for example, to see the raw text of all messages
 
395
matching 'milkshake', you could use:
 
396
.nf
 
397
  $ mu find milkshake --exec='less'
 
398
.fi
 
399
which is roughly equivalent to:
 
400
.nf
 
401
  $ mu find milkshake --fields="l" | xargs less
 
402
.fi
 
403
 
 
404
 
 
405
.TP
 
406
\fB\-b\fR, \fB\-\-bookmark\fR=\fI<bookmark>\fR
 
407
use a bookmarked search query. Using this option, a query from your bookmark
 
408
file will be prepended to other search queries. See mu-bookmarks(1) for the
 
409
details of the bookmarks file.
 
410
 
 
411
.T
 
412
\fB\-t\fR, \fB\-\-threads\fR
 
413
show messages in 'threaded' format -- that is, with indentation and arrows
 
414
showing the conversation threads in the list of matching messages.
 
415
 
 
416
Messages in the threaded list are indented based on the depth in the
 
417
discussion, and are prefix with a kind of arrow with thread-related
 
418
information about the message, as in the following table:
 
419
 
 
420
.nf
 
421
|             | normal | orphan | duplicate |
 
422
|-------------+--------+--------+-----------|
 
423
| first child | `->    | `*>    | `=>       |
 
424
| other       | |->    | |*>    | |=>       |
 
425
.fi
 
426
 
 
427
Here, the an 'orphan' is a message without a parent message (in the list of
 
428
matches), and a duplicate is a message whose message-id was already seen
 
429
before.
 
430
 
 
431
The algorithm used for determining the threads is based on Jamie Zawinksy's
 
432
description:
 
433
.BR http://www.jwz.org/doc/threading.html
 
434
 
 
435
.SS Example queries
 
436
 
 
437
Here are some simple examples of \fBmu\fR search queries; you can make many
 
438
more complicated queries using various logical operators, parentheses and so
 
439
on, but in the author's experience, it's usually faster to find a message with
 
440
a simple query just searching for some words.
 
441
 
 
442
Find all messages with both 'bee' and 'bird' (in any field)
 
443
 
 
444
.nf
 
445
  $ mu find 'bee AND bird'
 
446
.fi
 
447
 
 
448
or shorter, because \fBAND\fR is implied:
 
449
 
 
450
.nf
 
451
  $ mu find bee bird
 
452
.fi
 
453
 
 
454
Find all messages with either Frodo or Sam:
 
455
 
 
456
.nf
 
457
  $ mu find 'Frodo OR Sam'
 
458
.fi
 
459
 
 
460
Find all messages with the 'wombat' as subject, and 'capibara' anywhere:
 
461
 
 
462
.nf
 
463
  $ mu find subject:wombat capibara
 
464
.fi
 
465
 
 
466
Find all messages in the 'Archive' folder from Fred:
 
467
 
 
468
.nf
 
469
  $ mu find from:fred maildir:/Archive
 
470
.fi
 
471
 
 
472
Find all unread messages with attachments:
 
473
 
 
474
.nf
 
475
  $ mu find flag:attach flag:unread
 
476
.fi
 
477
 
 
478
 
 
479
Find all messages with PDF-attachments:
 
480
 
 
481
.nf
 
482
  $ mu find mime:application/pdf
 
483
.fi
 
484
 
 
485
Find all messages with attached images:
 
486
 
 
487
.nf
 
488
  $ mu find 'mime:image/*'
 
489
.fi
 
490
 
 
491
Note[1]: the argument needs to be quoted, or the shell will interpret the '*'
 
492
Note[2]: the '*' wild card can only be used as the last (rightmost) part of a
 
493
search term.
 
494
 
 
495
 
 
496
.SS Integrating mu find with mail clients
 
497
 
 
498
.TP
 
499
 
 
500
\fBmutt\fR
 
501
 
 
502
For \fBmutt\fR you can use the following in your \fImuttrc\fR; pressing the F8
 
503
key will start a search, and F9 will take you to the results.
 
504
 
 
505
.nf
 
506
# mutt macros for mu
 
507
macro index <F8> "<shell-escape>mu find --clearlinks --format=links --linksdir=~/Maildir/search " \\
 
508
                                        "mu find"
 
509
macro index <F9> "<change-folder-readonly>~/Maildir/search" \\
 
510
                                        "mu find results"
 
511
.fi
 
512
 
 
513
 
 
514
.TP
 
515
 
 
516
\fBWanderlust\fR
 
517
 
 
518
\fBSam B\fR suggested the following on the \fBmu\fR-mailing list. First add
 
519
the following to your Wanderlust configuraiton file:
 
520
 
 
521
.nf
 
522
(require 'elmo-search)
 
523
(elmo-search-register-engine
 
524
    'mu 'local-file
 
525
    :prog "/usr/local/bin/mu" ;; or wherever you've installed it
 
526
    :args '("find" pattern "--fields" "l") :charset 'utf-8)
 
527
 
 
528
(setq elmo-search-default-engine 'mu)
 
529
;; for when you type "g" in folder or summary.
 
530
(setq wl-default-spec "[")
 
531
.fi
 
532
 
 
533
Now, you can search using the \fBg\fR key binding; you can also create
 
534
permanent virtual folders when the messages matching some expression by adding
 
535
something like the following to your \fIfolders\fR file.
 
536
 
 
537
.nf
 
538
VFolders {
 
539
  [date:today..now]!mu  "Today"
 
540
 
 
541
  [size:1m..100m]!mu    "Big"
 
542
 
 
543
  [flag:unread]!mu      "Unread"
 
544
}
 
545
.fi
 
546
 
 
547
After restarting Wanderlust, the virtual folders should appear.
 
548
 
 
549
 
 
550
\fBWanderlust (old)\fR
 
551
 
 
552
Another way to intergrate \fBmu\fR and \fBwanderlust\fR is shown below; the
 
553
aforementioned method is recommended, but if that does not work for some
 
554
reason, the below can be an alternative.
 
555
 
 
556
.nf
 
557
(defvar mu-wl-mu-program     "/usr/local/bin/mu")
 
558
(defvar mu-wl-search-folder  "search")
 
559
 
 
560
(defun mu-wl-search ()
 
561
  "search for messages with `mu', and jump to the results"
 
562
   (let* ((muexpr (read-string "Find messages matching: "))
 
563
          (sfldr  (concat elmo-maildir-folder-path "/"
 
564
                    mu-wl-search-folder))
 
565
          (cmdline (concat mu-wl-mu-program " find "
 
566
                      "--clearlinks --format=links --linksdir='" sfldr "' "
 
567
                     muexpr))
 
568
          (rv (shell-command cmdline)))
 
569
    (cond
 
570
      ((= rv 0)  (message "Query succeeded"))
 
571
      ((= rv 2)  (message "No matches found"))
 
572
      (t (message "Error running query")))
 
573
  (= rv 0)))
 
574
 
 
575
(defun mu-wl-search-and-goto ()
 
576
  "search and jump to the folder with the results"
 
577
  (interactive)
 
578
  (when (mu-wl-search)
 
579
    (wl-summary-goto-folder-subr
 
580
      (concat "." mu-wl-search-folder)
 
581
      'force-update nil nil t)
 
582
    (wl-summary-sort-by-date)))
 
583
 
 
584
;; querying both in summary and folder
 
585
(define-key wl-summary-mode-map (kbd "Q") ;; => query
 
586
  '(lambda()(interactive)(mu-wl-search-and-goto)))
 
587
(define-key wl-folder-mode-map (kbd "Q") ;; => query
 
588
  '(lambda()(interactive)(mu-wl-search-and-goto)))
 
589
 
 
590
.fi
 
591
 
 
592
 
 
593
.SH RETURN VALUE
 
594
 
 
595
\fBmu find\fR returns 0 upon successful completion; if it the a search was
 
596
performed, there needs to be a least one match. Anything else leads to a
 
597
non-zero return value, for example:
 
598
 
 
599
.nf
 
600
| code | meaning                        |
 
601
|------+--------------------------------|
 
602
|    0 | ok                             |
 
603
|    1 | general error                  |
 
604
|    2 | no matches (for 'mu find')     |
 
605
|    4 | database is corrupted          |
 
606
.fi
 
607
 
 
608
 
 
609
.SH ENCODING
 
610
 
 
611
\fBmu find\fR output is encoded according the locale for \fI--format=plain\fR
 
612
(the default), and UTF-8 for all other formats (\fIsexp\fR,
 
613
\fIxml\fR).
 
614
 
 
615
 
 
616
.SH BUGS
 
617
 
 
618
Please report bugs if you find them:
 
619
.BR http://code.google.com/p/mu0/issues/list
 
620
If you have specific messages which are not matched correctly, please attach
 
621
them (appropriately censored of course).
 
622
 
 
623
.SH AUTHOR
 
624
 
 
625
Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
 
626
 
 
627
.SH "SEE ALSO"
 
628
 
 
629
.BR mu(1)
 
630
.BR mu-index(1)