archive_me1Add my vote for this tag create new tag
, view all tags
TWiki Version: 20010301 beta.

OS: Windows NT Workstation 4.0sp6

Net.pm has a platform dependency error at line 129:

my $mailhost = &TWiki::Prefs::getPreferencesValue( "MAILHOST" ) || "mail";
This presumes that the environment variable MAILHOST is available in the environment or that some string "mail" has meaning to the host OS. This is not the case in Windows.

However, when I changed the above line to:

my $mailhost = "mail.myhost.com" # not the real one obviously, 
                                 # but similar to my isp's mail host address
it worked!

I suggest the fix for this is YACV (Yet Another Config Variable). If Twiki.cfg::MAILHOST is "" then check the env then if it's "", fail soft and continue (currently things like registration fail if MAILHOST is undefined as it is on Windows). Otherwise, use the value in MAILHOST.

-- DavidLeBlanc - 16 Mar 2001

Actually MAILHOST is a Preference value, which is set in TWikiPreferences.

If there is a great need above this, it might be possible to add a TWik.cfg default variable as well.

-- NicholasLee - 17 Mar 2001

The MAILHOST entry was actually missing in TWikiPreferences of the Beta release. I made the entry and it will be in the next Beta.

At the same time I changed the variable name of the outgoing mail server from MAILHOST to SMTPMAILHOST. This is in anticipation of a future incoming mail host variable like POPMAILHOST. Commited to TWikiAlphaRelease.

-- PeterThoeny - 17 Mar 2001

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2001-03-17 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.