summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/vmailmgr-tools/files')
-rw-r--r--net-mail/vmailmgr-tools/files/digest-vmailmgr-tools-0.22
-rw-r--r--net-mail/vmailmgr-tools/files/digest-vmailmgr-tools-0.2-r13
-rw-r--r--net-mail/vmailmgr-tools/files/vmailmgr-tools-0.2-quota.patch46
3 files changed, 51 insertions, 0 deletions
diff --git a/net-mail/vmailmgr-tools/files/digest-vmailmgr-tools-0.2 b/net-mail/vmailmgr-tools/files/digest-vmailmgr-tools-0.2
index ceda1eac479f..6a78bd795da8 100644
--- a/net-mail/vmailmgr-tools/files/digest-vmailmgr-tools-0.2
+++ b/net-mail/vmailmgr-tools/files/digest-vmailmgr-tools-0.2
@@ -1 +1,3 @@
MD5 1c583f46a62821bc1a90cbf6ce83bf32 vmailmgr-tools-0.2.tar.gz 33925
+RMD160 d5ef695eb0886759f079bd6fa4016c9ccc6b4d28 vmailmgr-tools-0.2.tar.gz 33925
+SHA256 94e72dff32148b2fbfacc150938c303afe68297f90fda7421b8e98076ef231a0 vmailmgr-tools-0.2.tar.gz 33925
diff --git a/net-mail/vmailmgr-tools/files/digest-vmailmgr-tools-0.2-r1 b/net-mail/vmailmgr-tools/files/digest-vmailmgr-tools-0.2-r1
new file mode 100644
index 000000000000..6a78bd795da8
--- /dev/null
+++ b/net-mail/vmailmgr-tools/files/digest-vmailmgr-tools-0.2-r1
@@ -0,0 +1,3 @@
+MD5 1c583f46a62821bc1a90cbf6ce83bf32 vmailmgr-tools-0.2.tar.gz 33925
+RMD160 d5ef695eb0886759f079bd6fa4016c9ccc6b4d28 vmailmgr-tools-0.2.tar.gz 33925
+SHA256 94e72dff32148b2fbfacc150938c303afe68297f90fda7421b8e98076ef231a0 vmailmgr-tools-0.2.tar.gz 33925
diff --git a/net-mail/vmailmgr-tools/files/vmailmgr-tools-0.2-quota.patch b/net-mail/vmailmgr-tools/files/vmailmgr-tools-0.2-quota.patch
new file mode 100644
index 000000000000..214df9a6cb72
--- /dev/null
+++ b/net-mail/vmailmgr-tools/files/vmailmgr-tools-0.2-quota.patch
@@ -0,0 +1,46 @@
+diff -Nru vmailmgr-tools-0.2.orig/vcheckquota.c vmailmgr-tools-0.2/vcheckquota.c
+--- vmailmgr-tools-0.2.orig/vcheckquota.c 2006-06-15 06:22:31.000000000 +0300
++++ vmailmgr-tools-0.2/vcheckquota.c 2006-06-15 07:25:14.936298750 +0300
+@@ -33,10 +33,10 @@
+ const char program[] = "vcheckquota";
+ const int msg_show_pid = 0;
+ const char cli_help_prefix[] = "vmailmgr quota enforcement program\n";
+-const char cli_help_suffix[] = "\
+-Warning: the soft-message is linked into the users maildir once for each\
+-message that is received while the account is over its soft quota. This may\
+-result in multiple warning messages.\n";
++const char cli_help_suffix[] = "\n"
++"Warning: the soft-message is linked into the users maildir once for each\n"
++"message that is received while the account is over its soft quota. This may\n"
++"result in multiple warning messages.\n";
+ const char cli_args_usage[] = "";
+ const int cli_args_min = 0;
+ const int cli_args_max = 0;
+@@ -58,8 +58,13 @@
+ static struct stat st;
+ static void wrap_stat(const char* path)
+ {
+- if (stat(path, &st) == -1)
+- die3sys(111, "Cannot stat '", path, "'");
++ if (stat(path, &st) < 0) {
++ if (errno == ENOENT) {
++ st.st_blocks = 0;
++ st.st_mode = 0;
++ } else
++ die3sys(111, "Cannot stat '", path, "'");
++ }
+ }
+
+ static unsigned long stat_size(const char* path)
+@@ -77,8 +82,10 @@
+ DIR* dir;
+ direntry* entry;
+
+- if ((dir = opendir(path)) == 0)
++ if ((dir = opendir(path)) == 0) {
++ if (errno == ENOENT) return;
+ die3sys(111, "Could not open directory '", path, "'");
++ }
+
+ while((entry = readdir(dir)) != 0) {
+ const char* name = entry->d_name;