605 |
struct mu_auth_data *auth; |
struct mu_auth_data *auth; |
606 |
int status; |
int status; |
607 |
stream_t istream, ostream; |
stream_t istream, ostream; |
608 |
size_t size; |
off_t size; |
609 |
int failed = 0; |
int failed = 0; |
610 |
|
|
611 |
auth = mu_get_auth_by_name (name); |
auth = mu_get_auth_by_name (name); |
678 |
return; |
return; |
679 |
} |
} |
680 |
|
|
681 |
if ((status = stream_size (ostream, (off_t *) &size))) |
if ((status = stream_size (ostream, &size))) |
682 |
{ |
{ |
683 |
mailer_err (_("can't get stream size (mailbox %s): %s"), |
mailer_err (_("can't get stream size (mailbox %s): %s"), |
684 |
path, mu_strerror (status)); |
path, mu_strerror (status)); |
688 |
|
|
689 |
#if defined(USE_DBM) |
#if defined(USE_DBM) |
690 |
{ |
{ |
691 |
size_t n, isize; |
size_t n; |
692 |
|
off_t isize; |
693 |
|
|
694 |
switch (check_quota (name, size, &n)) |
switch (check_quota (name, size, &n)) |
695 |
{ |
{ |
703 |
break; |
break; |
704 |
|
|
705 |
default: |
default: |
706 |
if ((status = stream_size (istream, (off_t *) &isize))) |
if ((status = stream_size (istream, &isize))) |
707 |
{ |
{ |
708 |
mailer_err (_("can't get stream size (input message): %s"), |
mailer_err (_("can't get stream size (input message): %s"), |
709 |
path, mu_strerror (status)); |
path, mu_strerror (status)); |
728 |
off_t off = size; |
off_t off = size; |
729 |
size_t nwr, nrd; |
size_t nwr, nrd; |
730 |
char *buf = NULL; |
char *buf = NULL; |
731 |
size_t bufsize = 1024; |
off_t bufsize = 1024; |
732 |
|
|
733 |
stream_size (istream, (off_t *) &bufsize); |
stream_size (istream, &bufsize); |
734 |
for (; (buf = malloc (bufsize)) == NULL && bufsize > 1; bufsize /= 2) |
for (; (buf = malloc (bufsize)) == NULL && bufsize > 1; bufsize /= 2) |
735 |
; |
; |
736 |
|
|