<quote who="Mary">

> This is a general problem for any mail filtering solution that creates new
> folders on the fly, even if you have some kind of find command locally (as
> per many people's .muttrc files), you still need to restart the MUA to run
> it.
> 
> Does anyone have an MUA that handles new folders being created, or another
> solution for the problem that is MUA independent[1]?

My solution for reading mbox or Maildir format mailboxes on the local
machine is to regenerate the mailbox list whenever it's shown, like this:

  # mbox:
  macro  index   <left>  ':mailboxes `find ~/Mail/ -type f ! -name "Sent" ! -name ".*" 
! -name "*.archive" ! -regex ".*Archives.*" -printf "=%P "`<enter>c?<toggle-mailboxes>'

  # Maildir:
  macro   index   <left>  ':mailboxes `find ~/Maildir/ -type d -maxdepth 1 ! -ipath 
"*archive*" ! -regex ".*\(cur\|new\|tmp\)$" -printf "=%P "`<enter>c?<toggle-mailboxes>'

I also set mailboxes like this outside the macro, so everything's set up
correctly when Mutt starts.

However, I've no idea how to do this for IMAP, given that you have to
subscribe to mailboxes and such with it. When I need to use mutt+IMAP these
days, I sync remote IMAP with local Maildir using offlineimap. The great
thing about that is that I don't sacrifice any speed, I have all of my mail
available to me when disconnected, and offlineimap syncs any changes I make
locally back to the server. It's good stuff, and FAST.

Hope that solves the problem laterally. :-)

- Jeff

-- 
GU4DEC: June 16th-18th in Dublin, Ireland             http://www.guadec.org/
 
    "Orphaned farm-boy hero helps save world against bad-guys, begins a
   journey of self-discovery, and makes interesting friends. Passable." -
                        Andrew Bennetts on Star Wars
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to