Re: Adding domain names to prefs manually

Torsten Mueller <[email protected]>
Newsgroups gmane.mail.neomail.general
Message-ID <[email protected]>

> Zolla Michalak schrieb:
> 
> Hi -
> 
> I'm new to this group and to NeoMail. I'm hoping this is an easy
> question.
> 
> I use Neomail through Jumpline.com. I need to go into the code and
> edit my list of domain names. I have several sub domains, but they
> don't come up in the drop down box. I already talked to Jumpline, and
> they can't add them for me.
> 
> From peering around in the code, it looks to me like the var I need to
> edit is the $domainnames[] array in neomail-prefs.pl).
> 
> The problem is, I can't find where the values to these variables are
> stored. The only files I have access to on my jumpline account are
> neomail-prefs.pl and neomail.pl.

Originally in neomail.conf, which is located in /var/neomail/
If you don't have access to this file, edit (like you already pointed)
neomail-prefs.pl

> 
> Also, my Perl is a wee bit rusty. If you happen to know the syntax for
> adding an element to an array in Perl, and want to throw that in as a
> bonus, I will be most appreciative.
> 
> Here's a code snippet of what I found --
> line 204 (neomail-prefs.pl) -->

@domainnames = ("hotmail.com","yahoo.com","archesoft.de");

> 
> $temphtml = popup_menu(-name=>'domainname',
>                           -"values"=>\@domainnames,
>                           -default=>$prefs{"domainname"} ||
> $domainnames[0],
>                           -override=>'1');
> 

With this line of perl your "override" the defaults.

If you only want to add new values:
push @domainnames, "archesoft.de";

However, the first variant is prefered, as it gives you more
control.

If you have more values to change, it would be a good idea
to create a "new" my-neomail.conf and include this file
"instead" of the original neomail.conf

Torsten


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.