diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-12-09 13:26:33 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-12-09 13:26:33 +0000 |
commit | cc1c7ced6b36bf6e184e5294e1ad2e2a580caa22 (patch) | |
tree | 6e5be97461c0c9c39793fa001a4c452987f7cc61 /mail.local | |
parent | 551ae8068f4a605f81537753ebd26120b51787e0 (diff) | |
download | mailutils-cc1c7ced6b36bf6e184e5294e1ad2e2a580caa22.tar.gz mailutils-cc1c7ced6b36bf6e184e5294e1ad2e2a580caa22.tar.bz2 |
(sieve_test): Bugfix: run
sieve_machine_destroy() only if the compilation succeeded.
(deliver): Removed unused variable sb. Use isize instead.
Diffstat (limited to 'mail.local')
-rw-r--r-- | mail.local/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mail.local/main.c b/mail.local/main.c index cad1470d1..0c8d5a992 100644 --- a/mail.local/main.c +++ b/mail.local/main.c @@ -400,8 +400,8 @@ sieve_test (struct mu_auth_data *auth, message_t msg) switch_user_id (auth, 0); chdir ("/"); } + sieve_machine_destroy (&mach); } - sieve_machine_destroy (&mach); } } free (progfile); @@ -673,7 +673,6 @@ deliver (message_t msg, char *name) #if defined(USE_DBM) { size_t n, isize; - struct stat sb; switch (check_quota (name, size, &n)) { @@ -694,7 +693,7 @@ deliver (message_t msg, char *name) exit_code = EX_UNAVAILABLE; failed++; } - else if (sb.st_size > n) + else if (isize > n) { mailer_err ("%s: message would exceed maximum mailbox size for this recipient", name); |