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 (Moderator: Piotr Szotkowski) »
  • civimail alternative configuration - error message on commandline?
Pages: [1]

Author Topic: civimail alternative configuration - error message on commandline?  (Read 1338 times)

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
civimail alternative configuration - error message on commandline?
February 17, 2008, 09:38:39 am
Hi,

I have just been testing the "civimail alternative configuration" and am getting this error for every email it seems:

Use of uninitialized value in pattern match (m//) at ./imap2soap-2.1.pl line 257

Otherwwise it seems to be working. Any ideas, anyone?

Cheers,

Tobias
Kabissa - Space for Change in Africa http://kabissa.org

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: civimail alternative configuration - error message on commandline?
February 20, 2008, 12:22:53 am
Code: [Select]
[code][code][code]The line in question is:

[code]
    my ($replyto) = ($imap->get_header ($msg,"Reply-to")
                     =~ m/\b([A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4})\b/i );

Can you try escaping the at in the regular expression with a backslash and see whether the warning goes away?

Code: [Select]
    my ($replyto) = ($imap->get_header ($msg,"Reply-to")
                     =~ m/\b([A-Z0-9._%-]+\@[A-Z0-9.-]+\.[A-Z]{2,4})\b/i );

(Note: If this works, the next line might need the same treatment.)[/code][/code][/code][/code]
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • civimail alternative configuration - error message on commandline?

This forum was archived on 2017-11-26.