2006-07-20 07:54:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Nico Schottelius <nico@schottelius.(net|org)>
|
|
|
|
# Date: June 2003
|
|
|
|
# Last Modified: 13 Mar 2004
|
|
|
|
#
|
|
|
|
# generate mutt compatibel mailboxe entries
|
|
|
|
# usage: generate_mutt_mailboxes > ~/.mutt/mailboxes
|
|
|
|
# (and 'source ~/.mutt/mailboxes' in .muttrc)
|
|
|
|
#
|
|
|
|
|
2008-07-24 07:43:30 +00:00
|
|
|
#firstfile=~/.mutt/preferred_mailboxes
|
|
|
|
|
2013-10-26 21:28:38 +00:00
|
|
|
#echo 'set folder="~/Maildir"'
|
2006-07-20 07:54:37 +00:00
|
|
|
|
|
|
|
if [ -f ~/.mutt/important_mailboxes ]; then
|
|
|
|
cat ~/.mutt/important_mailboxes
|
|
|
|
fi
|
|
|
|
|
|
|
|
find ~/Maildir/ -type d -name new | \
|
|
|
|
sed -e "s,$HOME/Maildir/,mailboxes +,g" \
|
|
|
|
-e 's,new$,,g' \
|
|
|
|
-e s'/mailboxes +postponed\///g' \
|
|
|
|
-e 's/mailboxes +$//g' | \
|
|
|
|
grep -v '^$'
|
2013-10-26 21:28:38 +00:00
|
|
|
|
|
|
|
if [ -f ~/.mutt/unimportant_mailboxes ]; then
|
|
|
|
cat ~/.mutt/unimportant_mailboxes
|
|
|
|
fi
|
|
|
|
|