diff options
Diffstat (limited to 'maildir/maildirmake.c')
| -rw-r--r-- | maildir/maildirmake.c | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/maildir/maildirmake.c b/maildir/maildirmake.c index a106894..9e14eb4 100644 --- a/maildir/maildirmake.c +++ b/maildir/maildirmake.c @@ -336,6 +336,19 @@ char	*tmp=0;  	if (quota)  	{ +		struct stat stat_buf; + +		if (stat(maildir, &stat_buf) < 0 && errno == ENOENT) +		{ +			if (maildir_make(maildir, perm & ~0022, +					 (perm & ~0022), +					 0) < 0) +			{ +				perror(maildir); +				exit(1); +			} +		} +  		maildir_quota_set(maildir, quota);  		exit(0);  	} | 
