--- cryptpw.module.orig 2008-10-12 01:31:58.000000000 -0700 +++ cryptpw.module 2010-02-17 13:35:43.000000000 -0800 @@ -351,15 +351,18 @@ function _cryptpw_maildirmake($maildir) { foreach(array('cur','new','tmp') as $d) { - if (!mkdir("$maildir/$d",0700,TRUE)) { - drupal_set_message( - t('Could not create directory %d.', - array('%d'=>"$maildir/$d") - ) - ); - return FALSE; + if (!is_dir("$maildir/$d")) { + if (!mkdir("$maildir/$d",0700,TRUE)) { + drupal_set_message( + t('Could not create directory %d.', + array('%d'=>"$maildir/$d") + ) + ); + return FALSE; + } } } + return TRUE; } function _cryptpw_rm_rf($d) {