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 dying with international character sets
Pages: [1]

Author Topic: imap2soap.pl dying with international character sets  (Read 2548 times)

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
imap2soap.pl dying with international character sets
November 02, 2008, 03:47:28 pm
I've found that imap2soap.pl dies when presented with international character sets  :(

Though is sounds like there is going to be a new, better mechanism for the return channel (http://forum.civicrm.org/?topic=5220) in 2.2, I suspect there will remain many users who will need an updated imap2soap.pl that can handle unicode character sets.  I see that amavisd 2.4.2 uses some new Perl libraries to handle proper encoding of the messages, and I suspect pulling in that code will fix things.

I'm a bit swamped right now, but will try to get to this in the next couple weeks.  If anyone out there is interested in working on this and making a patch/contribution, please replay asap - so we're not both working on this at the same time.

Thanks!
=Fen

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Re: imap2soap.pl dying with international character sets
November 06, 2008, 11:10:53 am
Does anyone know what the best - MIME and UNICODE-safe - way is to read IMAP mail via Perl?  It appears Mail::IMALClient alone is not up to the task...

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Re: imap2soap.pl dying with international character sets
November 18, 2008, 07:56:09 am
It turns out that imap2soap.pl was dying when sending an unencoded MIME body to CiviCRM via the SOAP channel.  I've installed and partially tested a fix (maybe a hack?) that fixes the problem on my systems, though I don't use the message body returned via the back-channel for anything, so I'm not sure this will work in all cases, and this is a known problem with some mailers (see e.g., http://issues.civicrm.org/jira/browse/CRM-2959).

Try the new version available from https://svn.civicactions.net/repos/civicrm/scripts/ and please post if you discover any issues.  There's a "Note:" at the top describing the change, which is on line #338.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using IMAP2SOAP »
  • imap2soap.pl dying with international character sets

This forum was archived on 2017-11-26.