CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using IMAP2SOAP »
  • Increasing imap2soap timeout value
Pages: [1]

Author Topic: Increasing imap2soap timeout value  (Read 1575 times)

kngo

  • Guest
Increasing imap2soap timeout value
June 27, 2008, 01:20:12 pm
Is there a way to increase the amount of time imap2soap.pl waits before declaring a timeout and giving up?

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: Increasing imap2soap timeout value
July 02, 2008, 07:46:18 pm
I assume you're talking about the timeout of the imap connection and not the SOAP connection?  I haven't tried it, but it looks like you could just add: 
Timeout => 20,
to your imap connection setup, somewhere around line 255.  So it would look like this:
Code: [Select]
##
## OPEN AN IMAP SESSION
##
  my $imap = Mail::IMAPClient->new(
                                   Server   => $imapHost,
                                   User     => $imapUser,
                                   Password => $imapPass,
                                   Timeout => 20, # number of seconds
                                   UID      => 1,
                                   Clear    => 1, # no buffering
                                  )
    or die "imap2soap: Cannot connect to $imapHost as $imapUser: $@ \n";
http://dharmatech.org
oss@dharmatech.org
801.541.8671

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using IMAP2SOAP »
  • Increasing imap2soap timeout value

This forum was archived on 2017-11-26.