• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.gitignoreH A D16-Jan-201721 32

.travis.ymlH A D16-Jan-201784 87

COPYINGH A D16-Jan-20171.3 KiB2421

MakefileH A D16-Jan-20172 KiB6653

README.mdH A D16-Jan-20172 KiB8965

findmaildirs.cH A D16-Jan-20172.7 KiB9150

README.md

1# findmaildirs #
2
3[![Build Status](https://travis-ci.org/AMDmi3/findmaildirs.svg?branch=master)](https://travis-ci.org/AMDmi3/findmaildirs)
4[![FreeBSD package](http://repology.org/badge/version-for-repo/freebsd/findmaildirs.svg)](http://repology.org/metapackage/findmaildirs)
5
6This is a very simple utility to be used with mutt to simplify automatic
7mailboxes management.
8
9It scans given directory for maildir-type mailboxes and prints list of
10them in mutt-compatible format, so its output may be used for `mailboxes'
11configuration directive of mutt.
12
13## Usecase ##
14
15For example, you have a bunch of maildirs:
16
17```
18~/.mail
19    inbox
20        cur
21        new
22        tmp
23    sent
24        cur
25        new
26        tmp
27    maillists
28        lkml
29            cur
30            new
31            tmp
32        freebsd
33            announce
34                cur
35                new
36                tmp
37            ports
38                cur
39                new
40                tmp
41```
42
43to make these available in mutt, you need following in your .muttrc:
44
45```
46set mbox_type=Maildir
47set folder="~/.mail"
48
49mailboxes +inbox +sent +maillists/lkml +maillists/freebsd/ports \
50          +maildirs/freebsd/announce
51```
52
53it's a pain to manage manually, especially of you have many mailboxes
54and even more painful if you have mailboxes created automatically
55by e.g. procmail.
56
57This little utility manages it for you so you can just use:
58
59```
60mailboxes `findmaildirs ~/.mail`
61```
62
63Though it's extremely simple task and you could use simple `find | sed`
64pipeline instead, this utility acts a bit more clever and doesn't descend
65into subdirectories of mailboxes (cur, new and tmp) which may noticeably
66slow down mutt startup if there are many mail messages.
67
68## Installation ##
69
70No required library dependencies. Just run
71
72```
73make && make install
74```
75
76Makefile honours CC, CFLAGS, PREFIX (/usr/local by default) and DESTDIR.
77
78## Author ##
79
80* [Dmitry Marakasov](https://github.com/AMDmi3) <amdmi3@amdmi3.ru>
81
82## Contributors ##
83
84* [Pierre-Yves Chibon](https://github.com/pypingou)
85
86## License ##
87
882-clause BSD, see COPYING.
89