[prev in list] [next in list] [prev in thread] [next in thread]
List: dspam-users
Subject: Re: [Dspam-user] Change spam email address in webui?
From: Patrick Lists <dspam-list () puzzled ! xs4all ! nl>
Date: 2013-03-07 1:11:26
Message-ID: 5137E93E.3080205 () puzzled ! xs4all ! nl
[Download RAW message or body]
On 03/06/2013 04:10 PM, Patrick Lists wrote:
> Does anyone know how to change this so it says
> spam@<domain_of_person_logged_in> ?
Yes bad netiquette to reply to my own question but I think I found out
how to do it and maybe it helps someone else. I know no perl whatsoever
(Google was my teacher) but it seems to work for me. Use at own risk,
In file templates/nav_performance.html (or the one under your preferred
language dir) at around line 38:
-<strong>spam-$CURRENT_USER$$LOCAL_DOMAIN$</strong>
+<strong>$SPAM_ADDR$</strong>
In file dspam.cgi at around line 1527:
if ($CURRENT_USER !~ /\@/) {
$DATA{'LOCAL_DOMAIN'} = "\@$CONFIG{'LOCAL_DOMAIN'}";
}
+my $user_domain = $CURRENT_USER . $DATA{'LOCAL_DOMAIN'};
+my @attr = split (/\@/,$user_domain);
+my $spam_address = "spam\@$attr[1]";
+$DATA{'SPAM_ADDR'} = "$spam_address";
&output(%DATA);
Regards,
Patrick
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic