[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Neomail - modify domain name for the from field
- Subject: RE: [cobalt-users] Neomail - modify domain name for the from field
- From: cobaltusers <cobaltusers@xxxxxxxxxx>
- Date: Wed Jul 17 16:41:00 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
I checked the build file for my Raq4i and it shows 3100R
so based on that information I was thinking that the information
Taco's script in the neomail_prefs.pl would be using the following section:
<snip>
elsif ($BUILD =~ /3001R/ || $BUILD =~ /3100R/) {
$VIRTUSERTABLE="/etc/mail/virtusertable";
</snip>
which if I'm understanding this correctly would use this
<snip>
if ($VIRTUSERTABLE ne "") {
my $SITEHOSTNAME=$ENV{HTTP_HOST};
if ($SITEHOSTNAME =~ /^([-\@\w.]+)$/) {
$SITEHOSTNAME = $1; # $data now untainted
</snip>
Could you add an elseif ($SITEHOSTNAME =~ "this is the part I have no idea
about"
with some kind of regular expression (I hope that is what this is
"/^([-\@\w.]+)$/")
to remove the my. from the domain?
Is this possible or is my guessing and fumbling just way off?
Brian
-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Brian
Sent: Wednesday, July 17, 2002 2:13 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] Neomail - modify domain name for the from field
Hello list,
I'm trying to figure out how to modify the code that I think Taco added so
when neomail removes the www. from the domain name it can also remove my.
from a domain name. Has anyone done this or can you point me in the right
direction.
Thank You,
Brian
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users