Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

GTMail 2.05: Turning off Domain Listing Drop-Down for a single domain

Quote Reply
GTMail 2.05: Turning off Domain Listing Drop-Down for a single domain
Hello

Are you like me who didn't like to see the drop-down
box when I have only one domain to serve the
email? Well, here is a patch that will remove the
drop-down if there is only one domain (it will come
up automatically, if you have more than one).
GO to your ADMIN directory (where GMail.pm is) and
save this patch file under GMail.pm.patch, then
run the command:

% patch -i GMail.pm.patch GMail.pm

That is it. This patch is created from GTMail2.0.5,
and I haven't tried with any other version. Also,
make sure you will make a backup before running
this patch (or any patch for that matter). Hope this
helps.

-Srinivas

Last edited by:

srinivas: Oct 18, 2001, 8:11 PM
Quote Reply
Re: [srinivas] GTMail 2.05: Turning off Domain Listing Drop-Down for a single domain In reply to
Hi,

Thanks for the patch! We'll look at including that!

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [srinivas] GTMail 2.05: Turning off Domain Listing Drop-Down for a single domain In reply to
Hi
I would like to achieve this... But run this command means nothing to me.... Sorry im no programmer.

Can you be a bit more specific?

Thanks in advance

Capt*

Quote Reply
Re: [CptPugwash] GTMail 2.05: Turning off Domain Listing Drop-Down for a single domain In reply to
What the patch is doing is pretty much doing (well this particular patch) is inserting some code into admin/GMail.pm.
Around line 703, you should see:
Code:
my $match = 0;
for (@domains) {
In between those two lines you can insert (straight from the patch):
Code:
if ($#domains==0) {
my $d = $domains[0];
my $m = 0;
$m = 1 if ($d eq $checked);
my $rc =<<E;
<input type="hidden" name ="$name" value="$d">
$d
E
return ($rc, $m);
}
Hope this helps.


Adrian
Quote Reply
Re: [brewt] GTMail 2.05: Turning off Domain Listing Drop-Down for a single domain In reply to
Hi Adrian.
Thanks for the code.
I must have done it wrong cos I keep getting internal server errors. I made a backup of the GMail.pm so when I use the original it works fine.
Insert the code and we get errors...

How hard is it to copy and paste?

So once I do get this to work... Can i just go ahead and remove the drop down box with only one domain name in or ?????


Thanks again

Capt*
Post deleted by RedRum In reply to

Last edited by:

RedRum: Oct 28, 2001, 3:37 AM
Quote Reply
Re: [RedRum] GTMail 2.05: Turning off Domain Listing Drop-Down for a single domain In reply to
Oh. I was rather hoping for more than that!!!

:)

Capt*
Quote Reply
Re: [CptPugwash] GTMail 2.05: Turning off Domain Listing Drop-Down for a single domain In reply to
Hi,

You can juse remove <%GMail::domains%> and just put:

mydomain.com <input type=hidden name="domain" value="mydomain.com">

instead.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] GTMail 2.05: Turning off Domain Listing Drop-Down for a single domain In reply to
You are my hero.....Cool

Thank you!
Is there anywhere we can get duplicate default templates?

Thanks Alex

Capt*
Quote Reply
Re: [CptPugwash] GTMail 2.05: Turning off Domain Listing Drop-Down for a single domain In reply to
You overwrote GT templates without having a backup of the templates, too?

Hope you've learned a valuable lesson...
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Chewbaca] GTMail 2.05: Turning off Domain Listing Drop-Down for a single domain In reply to
Hey.. What do I know... I'm just a girl!

Seriously.. I have them all backed up now and they are safe.

But working on the default email templates last night and I cannot do anything with the compose one. The layout is totally bizarre.

Thanks

Capt*