| 1 |
Quick Start |
| 2 |
=========== |
| 3 |
|
| 4 |
The steps to get up and running are: |
| 5 |
|
| 6 |
* install the afew package |
| 7 |
* create the config files |
| 8 |
* add a notmuch post-new hook that calls afew |
| 9 |
|
| 10 |
Install |
| 11 |
------- |
| 12 |
|
| 13 |
The following commands will get you going on Debian/Ubuntu systems: |
| 14 |
|
| 15 |
.. code-block:: sh |
| 16 |
|
| 17 |
$ sudo aptitude install notmuch python-notmuch dbacl |
| 18 |
$ git clone git://github.com/teythoon/afew.git |
| 19 |
$ cd afew |
| 20 |
$ python setup.py install --prefix=~/.local |
| 21 |
|
| 22 |
Ensure that `~/.local/bin` is in your path. One way is to add the following to |
| 23 |
your `~/.bashrc`: |
| 24 |
|
| 25 |
.. code-block:: sh |
| 26 |
|
| 27 |
if [ -d ~/.local/bin ]; then |
| 28 |
PATH=$PATH:~/.local/bin |
| 29 |
fi |
| 30 |
|
| 31 |
See :doc:`installation` for a more detailed guide. |
| 32 |
|
| 33 |
Initial Config |
| 34 |
-------------- |
| 35 |
|
| 36 |
Make sure that `~/.notmuch-config` reads: |
| 37 |
|
| 38 |
.. code-block:: ini |
| 39 |
|
| 40 |
[new] |
| 41 |
tags=new |
| 42 |
|
| 43 |
Put a list of filters into `~/.config/afew/config`: |
| 44 |
|
| 45 |
.. code-block:: ini |
| 46 |
|
| 47 |
# This is the default filter chain |
| 48 |
[SpamFilter] |
| 49 |
[KillThreadsFilter] |
| 50 |
[ListMailsFilter] |
| 51 |
[ArchiveSentMailsFilter] |
| 52 |
[InboxFilter] |
| 53 |
|
| 54 |
And create a `post-new` hook for notmuch to call afew: |
| 55 |
|
| 56 |
.. code-block:: sh |
| 57 |
|
| 58 |
$ notmuchdir=path/to/maildir/.notmuch |
| 59 |
$ mkdir -p "$notmuchdir/hooks" |
| 60 |
$ printf > "$notmuchdir/hooks/post-new" '#!/usr/bin/env sh\n$HOME/.local/bin/afew --tag --new\n' |
| 61 |
$ chmod u+x "$notmuchdir/hooks/post-new" |
| 62 |
|
| 63 |
Next Steps |
| 64 |
---------- |
| 65 |
|
| 66 |
You can: |
| 67 |
|
| 68 |
* add extra :doc:`filters` for more custom filtering |
| 69 |
* make use of the :doc:`move_mode` to move your email between folders |
| 70 |
* run afew against all your old mail by running `afew --tag --all` |
| 71 |
* start :doc:`extending` afew |