Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amdmi3/findmaildirs
Simple utility to create list of maildirs for mutt
https://github.com/amdmi3/findmaildirs
mail maildir mutt
Last synced: about 4 hours ago
JSON representation
Simple utility to create list of maildirs for mutt
- Host: GitHub
- URL: https://github.com/amdmi3/findmaildirs
- Owner: AMDmi3
- License: bsd-2-clause
- Created: 2012-02-23T23:17:28.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-07-09T14:24:50.000Z (over 4 years ago)
- Last Synced: 2023-03-11T16:07:52.849Z (over 1 year ago)
- Topics: mail, maildir, mutt
- Language: C
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# findmaildirs #
[![Build Status](https://travis-ci.org/AMDmi3/findmaildirs.svg?branch=master)](https://travis-ci.org/AMDmi3/findmaildirs)
[![FreeBSD package](http://repology.org/badge/version-for-repo/freebsd/findmaildirs.svg)](http://repology.org/metapackage/findmaildirs)This is a very simple utility to be used with mutt to simplify automatic
mailboxes management.It scans given directory for maildir-type mailboxes and prints list of
them in mutt-compatible format, so its output may be used for `mailboxes'
configuration directive of mutt.## Usecase ##
For example, you have a bunch of maildirs:
```
inbox
cur
new
tmp
sent
cur
new
tmp
maillists
lkml
cur
new
tmp
freebsd
announce
cur
new
tmp
ports
cur
new
tmp
```to make these available in mutt, you need following in your .muttrc:
```
set mbox_type=Maildir
set folder="~/.mail"mailboxes +inbox +sent +maillists/lkml +maillists/freebsd/ports \
+maildirs/freebsd/announce
```it's a pain to manage manually, especially of you have many mailboxes
and even more painful if you have mailboxes created automatically
by e.g. procmail.This little utility manages it for you so you can just use:
```
mailboxes `findmaildirs ~/.mail`
```Though it's extremely simple task and you could use simple `find | sed`
pipeline instead, this utility acts a bit more clever and doesn't descend
into subdirectories of mailboxes (cur, new and tmp) which may noticeably
slow down mutt startup if there are many mail messages.## Installation ##
No required library dependencies. Just run
```
make && make install
```Makefile honours CC, CFLAGS, PREFIX (/usr/local by default) and DESTDIR.
## Author ##
* [Dmitry Marakasov](https://github.com/AMDmi3)
## Contributors ##
* [Pierre-Yves Chibon](https://github.com/pypingou)
## License ##
2-clause BSD, see COPYING.