summaryrefslogtreecommitdiff
path: root/mail/qmailadmin/files/patch-vpopmail-quota
blob: 12c77e17d187f35fd81b0542ddd7666f7957e951 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Index: qmailadmin.h
===================================================================
--- qmailadmin.h.orig
+++ qmailadmin.h
@@ -59,8 +59,3 @@
 void del_id_files( char *);
 void init_globals();
 void quickAction (char *username, int action);
-
-/* copied from maildirquota.c in vpopmail
- * it really needs to get into vpopmail.h somehow
- */
-int readuserquota(const char* dir, long *sizep, int *cntp);
Index: template.c
===================================================================
--- template.c.orig
+++ template.c
@@ -426,8 +426,8 @@ int send_template_now(char *filename)
           case 'Q':
             vpw = vauth_getpw(ActionUser, Domain);
             if (strncmp(vpw->pw_shell, "NOQUOTA", 2) != 0) {
-              long diskquota = 0;
-              int maxmsg = 0;
+              storage_t diskquota = 0;
+              storage_t maxmsg = 0;
               char path[256];
 
               quota_to_megabytes(qconvert, vpw->pw_shell);
@@ -547,8 +547,8 @@ int send_template_now(char *filename)
                * then again, with recent changes, the non-admin shouldn't
                * even get to this page.
                */
-              long diskquota = 0;
-              int maxmsg = 0;
+              storage_t diskquota = 0;
+              storage_t maxmsg = 0;
 	      char path[256];
               vpw = vauth_getpw(Username, Domain);
 
Index: user.c
===================================================================
--- user.c.orig
+++ user.c
@@ -170,8 +170,8 @@ int show_user_lines(char *user, char *do
               (AdminType==USER_ADMIN && strcmp(pw->pw_name,Username)==0)))) {
         if (AdminType==DOMAIN_ADMIN || 
             (AdminType==USER_ADMIN && strcmp(pw->pw_name,Username)==0)) {
-          long diskquota = 0;
-          int maxmsg = 0;
+          storage_t diskquota = 0;
+          storage_t maxmsg = 0;
 
           /* display account name and user name */
           printf ("<tr bgcolor=%s>", get_color_text("000"));