Bound the access to the maildirs.

  This updates #69, and hopefully prevents the crash on resize.