1 |
/* GNU mailutils - a suite of utilities for electronic mail |
/* GNU Mailutils -- a suite of utilities for electronic mail |
2 |
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. |
Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or modify |
GNU Mailutils is free software; you can redistribute it and/or modify |
5 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
6 |
the Free Software Foundation; either version 2, or (at your option) |
the Free Software Foundation; either version 2, or (at your option) |
7 |
any later version. |
any later version. |
8 |
|
|
9 |
This program is distributed in the hope that it will be useful, |
GNU Mailutils is distributed in the hope that it will be useful, |
10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 |
GNU General Public License for more details. |
GNU General Public License for more details. |
13 |
|
|
14 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
15 |
along with this program; if not, write to the Free Software |
along with GNU Mailutils; if not, write to the Free Software |
16 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
17 |
|
|
18 |
#include <mail.local.h> |
#include <mail.local.h> |
77 |
rc = mu_dbm_fetch (db, named, &contentd); |
rc = mu_dbm_fetch (db, named, &contentd); |
78 |
if (rc) |
if (rc) |
79 |
{ |
{ |
80 |
/*mu_error("can't fetch data: %s", strerror (rc));*/ |
/*mu_error (_("can't fetch data: %s"), strerror (rc));*/ |
81 |
return DEFRETVAL; |
return DEFRETVAL; |
82 |
} |
} |
83 |
if (!MU_DATUM_PTR (contentd)) |
if (!MU_DATUM_PTR (contentd)) |
90 |
unlimited = 1; |
unlimited = 1; |
91 |
else if (MU_DATUM_SIZE (contentd) > sizeof(buffer)-1) |
else if (MU_DATUM_SIZE (contentd) > sizeof(buffer)-1) |
92 |
{ |
{ |
93 |
mu_error ("mailbox quota for `%s' is too big: %d digits", |
mu_error (_("mailbox quota for `%s' is too big: %d digits"), |
94 |
name, MU_DATUM_SIZE (contentd)); |
name, MU_DATUM_SIZE (contentd)); |
95 |
quota = groupquota; |
quota = groupquota; |
96 |
} |
} |
103 |
quota = strtoul (buffer, &p, 0); |
quota = strtoul (buffer, &p, 0); |
104 |
if (get_size (buffer, "a, &p)) |
if (get_size (buffer, "a, &p)) |
105 |
{ |
{ |
106 |
mu_error ("bogus mailbox quota for `%s' (near `%s')", name, p); |
mu_error (_("bogus mailbox quota for `%s' (near `%s')"), name, p); |
107 |
quota = groupquota; |
quota = groupquota; |
108 |
} |
} |
109 |
} |
} |