Hi,
Have posted on this before without success.
http://forums.contribs.org/index.php?topic=15657.msg60278#msg60278Hope someone can help on the following :
I have been having a bit of a mail problem in my 5.1.2 server which seems to emanate from the email-ipup script. Unfortunately I am no Perl programmer and wondered if anyone could shed some light on this. I have posted to the forums but have no reply.
It seems that the call to startmail via crontab works OK to run the timed mail runs, but when the server tries to run email-ipup when it connects, the email-ipup script fails.
As far as I can tell it doesn't seem to correctly pull the Method key from the fetchmail line in the database - in my case it should return multidrop:
my $EmailRetrieval = db_get_prop(\%conf, "fetchmail", 'Method');
return unless (defined $properties{'EmailRetrieval'});
If I insert "use diagnostics;" and a line to print the $EmailRetrieval variable to check what it is :
print " $properties{EmailRetrieval}\n";
I get the following error :
[root@wingate actions]# ./email-ipup
Use of uninitialized value in concatenation (.) at ./email-ipup line 65 (#1)
(W uninitialized) An undefined value was used as if it were already defined. It was
interpreted as a "" or a 0, but maybe it was a mistake. To suppress this
warning assign a defined value to your variables.
Line 65 is the print statement.
I presume that this means that the variable is not being correctly obtained (or my print statement is wrong, although I have used it at other points in the script to check variables and it works fine).
Can someone tell me what is happening or how to debug it ?
/sbin/e-smith/db configuration getprop fetchmail Method at the command prompt shows : multidrop = enabled
Is there a way to do a "print db_get_prop(\%conf, "fetchmail", 'Method');" in the script to see the result ?
Yours in desperation...........
B. Rgds
John