/[mailutils]/mailutils/mail.local/mailquota.c
ViewVC logotype

Diff of /mailutils/mail.local/mailquota.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by gray, Thu Nov 7 15:01:41 2002 UTC revision 1.4 by polak, Tue Dec 24 21:03:03 2002 UTC
# Line 1  Line 1 
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>
# Line 77  check_quota (char *name, size_t size, si Line 77  check_quota (char *name, size_t size, si
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))
# Line 90  check_quota (char *name, size_t size, si Line 90  check_quota (char *name, size_t size, si
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      }      }
# Line 103  check_quota (char *name, size_t size, si Line 103  check_quota (char *name, size_t size, si
103        quota = strtoul (buffer, &p, 0);        quota = strtoul (buffer, &p, 0);
104        if (get_size (buffer, &quota, &p))        if (get_size (buffer, &quota, &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      }      }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26