EFA translation

General eFa discussion
Post Reply
carlos248ar
Posts: 4
Joined: 06 Apr 2014 14:22

EFA translation

Post by carlos248ar »

Hello

Great job!

1) There are spanish translation ? Im doing one for myself for reports than could be read by users (amateur translation an put here/etc/MailScanner/reports/es)

2) As an old ESVA user ( from 1xxx to lastone) I find there arent a report that i found so usefull, MTA Statistics (POSTFIX), i copy the php of that report as is called in ESVA (/var/www/html/mailscanner/rep_mtastats.php) but dont work (may be not include in function.php or not instaled the RRDTool)

3) I import black and white lists, working in testing, coming soon in production
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: EFA translation

Post by shawniverson »

1) Sorry, we only have English at the moment. However, if you are willing to translate (you can download MailScanner and get all the languages), I would be happy to add it to our source branch :D

2) Can you share this php file with me? I think I know what it needs to start working. Maybe I can add it in EFA?

3) :text-+1:
carlos248ar
Posts: 4
Joined: 06 Apr 2014 14:22

Re: EFA translation

Post by carlos248ar »

this de code

<?php
/*
MailWatch for MailScanner
Original Copyright (C) 2003 Steve Freegard (smf@f2s.com)
Modified for ESVA, Copyright (C) 2007 Gal Zilberman

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

require("./mailscanner/functions.php");
authenticate();
html_start("MTA Statistics");
echo "<center>";
echo "<iframe src=\"/cgi-bin/mailgraph.cgi\" height=2200 width=650px scrolling=off frameborder=0>Your browser doesn't appear to support inline frames. you can view this report directly by clicking <a href=\"/cgi-bin/mailgraph.cgi\">here</a></iframe>";
echo "</center>";
html_end();
?>

i add wath is bold and both, with and without that, version dont work
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: EFA translation

Post by shawniverson »

This is just a page to direct to MailGraph, should already be present under tools...
carlos248ar
Posts: 4
Joined: 06 Apr 2014 14:22

Re: EFA translation

Post by carlos248ar »

Its working now

Only need to change autentication
comment line "authenticate();"
and add line "session_start();"

<?php
require("./functions.php");
/*authenticate();*/
// Authentication checking
session_start();
require('login.function.php');
html_start("MTA Statistics");
echo "<center>";
echo "<iframe src=\"/cgi-bin/mailgraph.cgi\" height=2200 width=650px scrolling=off frameborder=0>Your browser doesn't appear to support inline frames. you can view this report directly by clicking <a href=\"/cgi-bin/mailgraph.cgi\">here</a></iframe>";
echo "</center>";
html_end();
?>
Marziano
Posts: 4
Joined: 20 Jun 2014 22:34

Re: EFA translation

Post by Marziano »

If someone is interested, i've translated to italian the contents of the folders /etc/MailScanner/reports/en and /var/www/html.

In those folders you can see all the files that generate output messages for the end user. I've not translated the main gui, yet. In my setup, the users are not going there. I make them do all the work from the client, sending marked spam to a dedicated folder and emptying this folder on a regular basis via script.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: EFA translation

Post by shawniverson »

Yep, we can add these translations to EFA. Feel free to PM me.
cyril.lebert
Posts: 11
Joined: 20 Aug 2015 06:34

Re: EFA translation

Post by cyril.lebert »

Exist a french version ?
pawell
Posts: 9
Joined: 10 Dec 2015 13:40

Re: EFA translation

Post by pawell »

Hi there,

im trying to create a german translation.
I copied the /etc/MailScanner/reports/en to /etc/MailScanner/reports/de.
How can i activate the de version?
DaN
Posts: 240
Joined: 19 Nov 2014 10:04
Location: Earth

Re: EFA translation

Post by DaN »

hallo,

/etc/MailScanner/rules/
sig.html.rules:
To: *@DOMAIN /etc/MailScanner/reports/de/inline.sig.in.html
To: default /etc/MailScanner/reports/de/inline.sig.out.html

sig.text.rules:
To: *@DOMAIN /etc/MailScanner/reports/de/inline.sig.in.txt
To: default /etc/MailScanner/reports/de/inline.sig.out.txt

DOMAIN=your domain
Post Reply