Hello,
we fetch our mails with imap and sometimes get a 600s timeout because the Mailserver is shitty...
how can i set the $Param{Timeout} ?
i found: Kernel/System/MailAccount/IMAP.pm
my $Type = 'IMAP';
# connect to host
my $IMAPObject = Net::IMAP::Simple->new(
$Param{Host},
timeout => $Param{Timeout} ,
debug => $Param{Debug} || undef,
);
Cheers,
Michael
Kernel/System/MailAccount/IMAP.pm => how to set $Param{Timeout}
Moderator: crythias
-
- Administrator
- Posts: 3983
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Kernel/System/MailAccount/IMAP.pm => how to set $Param{Timeout}
Hi,
There's no code change required. You can adjust the system configuration Daemon::SchedulerCronTaskManager::Task###MailAccountFetch by adding the parameter --timeout xxx.
Add two items to the params array. One is --timeout, and the other one your timeout in seconds. Don't put them into one item!
- Roy
There's no code change required. You can adjust the system configuration Daemon::SchedulerCronTaskManager::Task###MailAccountFetch by adding the parameter --timeout xxx.
Add two items to the params array. One is --timeout, and the other one your timeout in seconds. Don't put them into one item!
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?