-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: support --ignored-address for init command
Allow for skipping unwanted addresses (such as 'noreply') from the contacts cache.
- Loading branch information
Showing
7 changed files
with
44 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,24 +21,38 @@ starts searching at =<maildir>=. By default, *mu* uses whatever the *MAILDIR* | |
environment variable is set to; if it is not set, it tries =~/Maildir= if it | ||
already exists. | ||
|
||
** --my-address=<my-email-address> | ||
** --my-address=<email-address-or-regex> | ||
|
||
specifies that some e-mail addresses are 'my-address' (the option can be used | ||
specifies that some e-mail address is 'my-address' (the option can be used | ||
multiple times). Any message in which at least one of the contact fields | ||
contains such an address is considered a 'personal' messages; this can then be | ||
used for filtering in *mu-find(1)*, *mu-cfind(1)* and *mu4e*, e.g. to filter-out | ||
mailing list messages. | ||
|
||
=<my-email-address>= can be either a plain e-mail address (such as | ||
=<email-address-or-regex>= can be either a plain e-mail address (such as | ||
*[email protected]*), or a basic PCRE regular-expression (see *pcre(3)* for details), | ||
wrapped in */* (such as =/foo-.*@example\\.com/=). Depending on your shell, the | ||
argument may need to be quoted. | ||
|
||
** --ignored-address=<email-address-or-regex> | ||
|
||
specifies that some e-mail address is to be ignored from the contacts-cache | ||
(the option can be used multiple times). Such address then cannot be found with | ||
*mu-cfind(1)* or in the Mu4e contacts cache. | ||
|
||
=<my-email-address>= can be either a plain e-mail address or a regexp, just like | ||
for the =--my-address= option. | ||
|
||
** --reinit | ||
|
||
reinitialize the database from an earlier version; that is, create a new | ||
empty database witht the existing settings. This cannot be combined | ||
with the other ~init~ options. | ||
reinitialize the database from an earlier version; that is, create a new empty | ||
database with the existing settings. This cannot be combined with the other ~init~ | ||
options. | ||
|
||
* EXAMPLE | ||
#+begin_example | ||
$ mu init --maildir=~/Maildir [email protected] [email protected] --ignored-address='/.*reply.*/' | ||
#+end_example | ||
|
||
#+include: "exit-code.inc" :minlevel 1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters