On Wed, November 14, 2012 05:55, Linda wrote: > I use dovecot with Maildir for the imap server. I can view > the inbox fine but can't access or list the subdirectories > > Here is the .muttrc lines that would be relevant > > set spoolfile=imap://office-mail@star/ > set folder=imap://office-mail@star/ > set record=imap://office-mail@star/Sent > set imap_user=office-mail > mailboxes =/home/office-mail/Maildir/ > 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` > > I am pretty sure I need to change ~/maildir to something but > don't know what to use in its place. Also I changed > mailboxes from Mail to Maildir but it doesn't seem to change > anything. I also tired a set mask command I found in some > howtos but then I lost the inbox.
I used to generate the folder list on the fly, using a small perl script, which queries the IMAP Server directly:¹ ¹ http://article.gmane.org/gmane.mail.mutt.user/29341 regards, Chstian