[vhffs-dev] [1136] add a new mail obfuscation way, swap the localpart and domain and replace the @ by a /, it makes beautiful output strings and is convenient for mailing lists |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
- To: vhffs-dev@xxxxxxxxx
- Subject: [vhffs-dev] [1136] add a new mail obfuscation way, swap the localpart and domain and replace the @ by a /, it makes beautiful output strings and is convenient for mailing lists
- From: subversion@xxxxxxxxxxxxx
- Date: Sun, 20 Jan 2008 07:47:42 +0100
Revision: 1136
Author: gradator
Date: 2008-01-20 06:47:42 +0000 (Sun, 20 Jan 2008)
Log Message:
-----------
add a new mail obfuscation way, swap the localpart and domain and replace the @ by a /, it makes beautiful output strings and is convenient for mailing lists
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Functions.pm
trunk/vhffs-backend/conf/vhffs.conf.dist.in
Modified: trunk/vhffs-api/src/Vhffs/Functions.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Functions.pm 2008-01-20 06:33:07 UTC (rev 1135)
+++ trunk/vhffs-api/src/Vhffs/Functions.pm 2008-01-20 06:47:42 UTC (rev 1136)
@@ -316,6 +316,10 @@
if($tech eq 'javascript') {
return js_encode_mail($mail);
}
+ if($tech eq 'swap') {
+ my @both = split /@/, $mail;
+ $mail = ${@both}[1].'/'.${@both}[0];
+ }
warn("Unsupported email obfuscation method !\n");
return $mail;
Modified: trunk/vhffs-backend/conf/vhffs.conf.dist.in
===================================================================
--- trunk/vhffs-backend/conf/vhffs.conf.dist.in 2008-01-20 06:33:07 UTC (rev 1135)
+++ trunk/vhffs-backend/conf/vhffs.conf.dist.in 2008-01-20 06:47:42 UTC (rev 1136)
@@ -22,8 +22,8 @@
# Directory which contains templates
templatedir = @TEMPLATESDIR@
- # Available languages on this platform
- available_languages = en_US fr_FR es_ES
+ # Available languages on this platform
+ available_languages = en_US fr_FR es_ES
# The default language
default_language = en_US
@@ -79,8 +79,8 @@
# Should be readable and writable by webserver user but not accessible to end users.
captchadir = /tmp
- # Obfuscation technique for emails (none, simple, entities or javascript)
- mail_obfuscation = simple
+ # Obfuscation technique for emails (none, swap, simple, entities or javascript)
+ mail_obfuscation = swap
# This is the URL display for the "Help" link in the panel
url_help = http://help.hoster