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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • problem setting up imap2soap (Can't locate Mail/IMAPClient.pm)
Pages: [1]

Author Topic: problem setting up imap2soap (Can't locate Mail/IMAPClient.pm)  (Read 3168 times)

mvcom

  • Guest
problem setting up imap2soap (Can't locate Mail/IMAPClient.pm)
October 20, 2009, 07:47:20 am
I wonder if you can help me out a bit.

I'm trying to install the imap2soap.pl script as per instuctions here;
http://wiki.civicrm.org/confluence/display/CRMDOC/imap2soap

Now, when I try to run the file on the server to test it, I get the following error:

Can't locate Mail/IMAPClient.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8
/usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at ./imap2soap.pl
line 85.

Any advice on what is happening? Are we missing a script on the server? Thanks.
« Last Edit: October 21, 2009, 01:45:04 am by mvcom »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: problem setting up imap2soap (Can't locate Mail/IMAPClient.pm)
October 20, 2009, 10:06:56 am

we recommend that you use CiviMailProcessor.php rather than the perl scripts for recent versions of CiviCRM

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mvcom

  • Guest
Re: problem setting up imap2soap (Can't locate Mail/IMAPClient.pm)
October 21, 2009, 01:46:38 am
Thanks Donald.

I went the CiviMailProcessor.php route. To my knowledge it is set up correctly, but when tested I get the following error:

Quote
Warning: scandir(/maildir/cur) [function.scandir]: failed to open dir: No such file or directory in /home2/public_html/administrator/components/com_civicrm/civicrm/CRM/Mailing/MailStore/Maildir.php on line 69

Warning: scandir() [function.scandir]: (errno 2): No such file or directory in /home2/public_html/administrator/components/com_civicrm/civicrm/CRM/Mailing/MailStore/Maildir.php on line 69

Warning: Invalid argument supplied for foreach() in /home2/public_html/administrator/components/com_civicrm/civicrm/CRM/Mailing/MailStore/Maildir.php on line 69

Warning: scandir(/maildir/new) [function.scandir]: failed to open dir: No such file or directory in /home2/public_html/administrator/components/com_civicrm/civicrm/CRM/Mailing/MailStore/Maildir.php on line 69

Warning: scandir() [function.scandir]: (errno 2): No such file or directory in /home2/public_html/administrator/components/com_civicrm/civicrm/CRM/Mailing/MailStore/Maildir.php on line 69

Warning: Invalid argument supplied for foreach() in /home2/public_html/administrator/components/com_civicrm/civicrm/CRM/Mailing/MailStore/Maildir.php on line 69

Any suggestions on how to resolve it or what the cause might be?

mvcom

  • Guest
Re: problem setting up imap2soap (Can't locate Mail/IMAPClient.pm)
October 27, 2009, 03:38:51 am
Anyone? I would really appreciate any kind of advice. Thanks!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: problem setting up imap2soap (Can't locate Mail/IMAPClient.pm)
October 27, 2009, 06:57:00 am

most likely the directory you have specificed in your Mail Settings path is invalid (/maildir)

You will need to give the full path name to where the mail is being stored as the 'Maildir' protocol.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mvcom

  • Guest
Re: problem setting up imap2soap (Can't locate Mail/IMAPClient.pm)
November 09, 2009, 03:46:14 am
Thanks.

Just to clarify. I need the correct path to the directory/folder where the mail is being stored on the Mail server, right? Not on the web server which hosts CiviCRM and connects to the Mail server?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: problem setting up imap2soap (Can't locate Mail/IMAPClient.pm)
November 09, 2009, 06:44:51 am

yes, the directory path is on the mail server

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mvcom

  • Guest
Re: problem setting up imap2soap (Can't locate Mail/IMAPClient.pm)
November 10, 2009, 04:10:25 am
Thank u!  :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • problem setting up imap2soap (Can't locate Mail/IMAPClient.pm)

This forum was archived on 2017-11-26.