NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

[Web] Fix css; Use socket for Rspamd history; Fix function file name

77c7c1fe
AndrĂ© Peters <[email protected]> 8 years ago
data/web/css/quarantine.css                                          | 2 +-
 data/web/inc/functions.inc.php                                       | 5 +++--
 .../{functions.quarantaine.inc.php => functions.quarantine.inc.php}  | 0
 3 files changed, 4 insertions(+), 3 deletions(-)
 rename data/web/inc/{functions.quarantaine.inc.php => functions.quarantine.inc.php} (100%)

Diff

diff --git a/data/web/css/quarantine.css b/data/web/css/quarantine.css
index 2f7c5ecb..6690ab90 100644
--- a/data/web/css/quarantine.css
+++ b/data/web/css/quarantine.css
@@ -28,7 +28,7 @@ table.footable>tbody>tr.footable-empty>td {
       width: 80%;
   }
 }
-.mass-actions-Quarantine {
+.mass-actions-quarantine {
   user-select: none;
   padding:10px 0 10px 10px;
 }
diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php
index 6eb30e2f..f4e8d039 100644
--- a/data/web/inc/functions.inc.php
+++ b/data/web/inc/functions.inc.php
@@ -1167,12 +1167,13 @@ function get_logs($container, $lines = false) {
   }
   if ($container == "rspamd-history") {
     $curl = curl_init();
+    curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/rspamd-sock/rspamd.sock');
     if (!is_numeric($lines)) {
       list ($from, $to) = explode('-', $lines);
-      curl_setopt($curl, CURLOPT_URL,"http://rspamd-mailcow:11334/history?from=" . intval($from) . "&to=" . intval($to));
+      curl_setopt($curl, CURLOPT_URL,"http://rspamd/history?from=" . intval($from) . "&to=" . intval($to));
     }
     else {
-      curl_setopt($curl, CURLOPT_URL,"http://rspamd-mailcow:11334/history?to=" . intval($lines));
+      curl_setopt($curl, CURLOPT_URL,"http://rspamd/history?to=" . intval($lines));
     }
     curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
     $history = curl_exec($curl);
diff --git a/data/web/inc/functions.quarantaine.inc.php b/data/web/inc/functions.quarantine.inc.php
similarity index 100%
rename from data/web/inc/functions.quarantaine.inc.php
rename to data/web/inc/functions.quarantine.inc.php