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 »
  • imap2soap.pl with free/web-based IMAP accounts?
Pages: 1 [2]

Author Topic: imap2soap.pl with free/web-based IMAP accounts?  (Read 14329 times)

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: imap2soap.pl with free/web-based IMAP accounts?
August 06, 2008, 04:44:51 pm
jalama,

Try turning debug on in your IMAP connection setup and your Socket setup if you're using SSL:
Code: [Select]
my $imap = Mail::IMAPClient->new(
                                 Socket   => IO::Socket::SSL->new
                                        ( Proto => 'tcp',
                                          SSL_verify_mod => 0x00,
                                          PeerAddr => 'gmail-imap.l.google.com',
                                          PeerPort => '993',
                                          Debug => 1,
                                        ),
                                 User     => $imapUser,
                                 Password => $imapPass,
                                 UID      => 1,
                                 Clear    => 1, # no buffering
                                 Debug    => 1,
                                 )
http://dharmatech.org
oss@dharmatech.org
801.541.8671

lucasbaker

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: imap2soap.pl with free/web-based IMAP accounts?
August 21, 2008, 05:28:52 pm
Has anyone had any luck figuring out the cause of this error?  I keep getting stuck on it.

Code: [Select]
imap2soap: Fatal: During SOAP initialization (Can't call method "fault" on an undefined value at /usr/local/bin/imap2soap.pl line 144.
)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: imap2soap.pl with free/web-based IMAP accounts?
August 21, 2008, 05:44:09 pm
I think it's authentication - Triple check your SOAP server configuration in your imap2soap.conf file

$SOAP_Server   = "http://DOMAIN/administrator/components/com_civicrm/civicrm/extern/soap.php";
$SOAP_User     = 'civimail';           # dedicated user account with access to CiviCRM
$SOAP_Password = 'civimail';          # password you set for this account
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

lucasbaker

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: imap2soap.pl with free/web-based IMAP accounts?
September 07, 2008, 12:37:05 pm
Unfortunately, I've checked and verified my SOAP authentication settings within the conf file and am still getting this message.  I'm really unsure where to go from here.

Authentication doesn't appear to be the problem.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: imap2soap.pl with free/web-based IMAP accounts?
September 07, 2008, 05:56:11 pm
I noticed a couple of posts in this thread referred to the "INBOX" setting. I don't use Google et al, but for my IMAP server, I needed to change "INBOX" to "Inbox". Perhaps that is worth a try.

lucasbaker

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: imap2soap.pl with free/web-based IMAP accounts?
September 07, 2008, 05:59:34 pm
Thanks for the suggestion.

I just tried "Inbox", but am still getting the same error. :(

Will keeping chipping away at this though.

lucasbaker

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: imap2soap.pl with free/web-based IMAP accounts?
September 08, 2008, 05:08:29 pm
This is quite frustrating.

It seems to hit a brick wall when it is authenticating to the SOAP server.  Yet, I have verified the credentials I am using to connect to the server.

The error seems to occur when it is trying to check for any faults on the authentication which is supposed to run just before.

However, I'm guessing that it isn't running.

Code: [Select]
sub authenticate()
{
  my $result =
    $soapClient->authenticate($SOAP_User, $SOAP_Password);

  if ($result->fault) {                 # Authentication error, fail!
    error "SOAP: $result->faultstring";
  }
  $soapKey = $result->result;
}

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using IMAP2SOAP »
  • imap2soap.pl with free/web-based IMAP accounts?

This forum was archived on 2017-11-26.