Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
b490f6d8
...
b490f6d87bc2f20269f1adacd9a419314068e19f
authored
2006-01-20 16:30:40 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Define USE_MAILBOX_QUOTAS after including mu_dbm.h
1 parent
e8ac3e5d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
mail.local/mail.local.h
mail.local/mailquota.c
mail.local/mail.local.h
View file @
b490f6d
...
...
@@ -68,11 +68,6 @@
# define INADDR_LOOPBAK 0x7f000001
#endif
#if defined (USE_DBM) || defined (USE_SQL)
# define USE_MAILBOX_QUOTAS 1
#endif
#include <mailutils/argp.h>
#include <mailutils/attribute.h>
#include <mailutils/errno.h>
#include <mailutils/error.h>
...
...
@@ -92,6 +87,11 @@
#include <mu_asprintf.h>
#include <getline.h>
#if defined (USE_DBM) || defined (USE_SQL)
# define USE_MAILBOX_QUOTAS 1
#endif
#include <mailutils/argp.h>
/* Debug */
extern
int
debug_level
;
#define dbg() if (debug_level) debug
...
...
mail.local/mailquota.c
View file @
b490f6d
...
...
@@ -76,9 +76,15 @@ dbm_retrieve_quota (char *name, size_t *quota)
int
unlimited
=
0
;
int
rc
;
if
(
!
quotadbname
||
mu_dbm_open
(
quotadbname
,
&
db
,
MU_STREAM_READ
,
0600
))
if
(
!
quotadbname
)
return
RETR_FAILURE
;
if
(
mu_dbm_open
(
quotadbname
,
&
db
,
MU_STREAM_READ
,
0600
))
{
mu_error
(
_
(
"Cannot open %s: %s"
),
quotadbname
,
mu_strerror
(
errno
));
return
RETR_FAILURE
;
}
memset
(
&
named
,
0
,
sizeof
named
);
memset
(
&
contentd
,
0
,
sizeof
contentd
);
MU_DATUM_PTR
(
named
)
=
name
;
...
...
Please
register
or
sign in
to post a comment