Re: mutt and maildir++ format
On 2011-11-10 09:06:20, Johann Spies wrote:
> mailboxes + `\
> for file in ~/.maildir/.*; do \
> box=$(basename "$file"); \
> if [ ! "$box" = '.' -a ! "$box" = '..' -a ! "$box" = '.customflags' \
> -a ! "$box" = '.subscriptions' ]; then \
> echo -n "\"+$box\" "; \
> fi; \
> done; \
> for folder in ~/.maildir/*; do \
> if [ -x $folder]; then \
> box=$(basename "$folder"); \
> for file in ~/.maildir/$box/.*; do \
> box2=$(basename "$file"); \
> if [ ! "$box2" = '.' -a ! "$box2" = '..' -a ! "$box2" = '.customflags' \
> -a ! "$box2" = '.subscriptions' ]; then \
> echo -n "\"+$box/$box2\" "; \
> fi; \
> done; \
> fi; \
> done`
Run this by hand in a shell and see what get. Is there a
new-line for instance between the for loops. And do you have a
trailing newline? Remember this is only evaluated on start-up.
Does it work if hard-code maildir++ files?
I use regular maildir mailboxes and use find to populate it:
mailboxes `find $HOME/mail/received $HOME/mail/received/lists -mindepth 1 -maxdepth 1 -type d \! -name spam -printf '%h/%f '; echo`
/Allan
--
Allan Wind
Life Integrity, LLC
<http://lifeintegrity.com>
Reply to: