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 »
  • Civimail was working great on Civi 2.0 now w/ 2.1
Pages: [1]

Author Topic: Civimail was working great on Civi 2.0 now w/ 2.1  (Read 3008 times)

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Civimail was working great on Civi 2.0 now w/ 2.1
September 29, 2008, 07:09:49 am
my usual test accounts for seeing about opt-out no longer work
For example
Test Account Send Op-out
Check the civimail box
run the imap2soap.conf
and now check the Email box and it is moved to JUNK and the person is not Processed
??
Do I need a new Imap2soap script?
Here are the commands
imap2soap.pl -q -w 1 -l 4 -L 1 /var/www/web42/user/web42_civimail/imap2soap.conf

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: Civimail was working great on Civi 2.0 now w/ 2.1
September 29, 2008, 08:02:39 am
I did change the script to work.
with the shortend reply emails from unsubscribe/optout to u/o
For example
2.0 was unsubscribe.1.366.144960.dc5be59b70bf2357@example.com
2.1 now is u.1.366.144960.dc5be59b70bf2357@example.com

the script just had to have 3 places changed
Line 303
unless ($to =~ m/^\s*<*"?(o|u|bounce|confirm|optout|reply|subscribe|unsubscribe|resubscribe)/i)

Line 415
elsif ($dest eq 'u')  # or an unsubscription

Line 490
elsif ($dest eq 'o')       # or an opt-out


----untested patch file below-------------
Code: [Select]
--- imap2soapnew 2008-09-29 10:38:23.000000000 -0400
+++ imap2soap.pl2.1 2008-09-29 11:00:24.000000000 -0400
@@ -300,7 +300,7 @@
         junk($imap, $msg, "No To: header in message $n");
         next;
       }
-    unless ($to =~ m/^\s*<*"?(bounce|confirm|optout|reply|subscribe|unsubscribe|resubscribe)/i)
+    unless ($to =~ m/^\s*<*"?(o|u|bounce|confirm|optout|reply|subscribe|unsubscribe|resubscribe)/i)
       {
         junk($imap, $msg, "Not a CiviMail message $n -- To: $to");
         next;
@@ -412,7 +412,7 @@
                 or fatal "Could not move to Failed";
             }
           }
-        elsif ($dest eq 'unsubscribe')  # or an unsubscription
+        elsif ($dest eq 'u')  # or an unsubscription
           {
             while (1) {
               $result =
@@ -487,7 +487,7 @@
                 or fatal "Could not move to Failed";
             }
           }
-        elsif ($dest eq 'optOut')       # or an opt-out
+        elsif ($dest eq 'o')       # or an opt-out
           {
             while (1) {
               $result =
« Last Edit: September 29, 2008, 08:05:13 am by alfred_nutile »

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: Civimail was working great on Civi 2.0 now w/ 2.1
October 03, 2008, 07:30:21 am
I;ve just released a new imap2soap.pl that should be v2.1 compliant.  I still don't have a live site to test it on right now, though, so please - if someone can test it out and report back, I would greatly appreciate it.

See: https://svn.civicactions.net/repos/civicrm/scripts/imap2soap.pl

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: Civimail was working great on Civi 2.0 now w/ 2.1
October 03, 2008, 09:25:18 am
I can test it today.

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: Civimail was working great on Civi 2.0 now w/ 2.1
October 03, 2008, 09:34:22 pm
There was a bug in the regex that I just fixed - please pull the new copy.

https://svn.civicactions.net/repos/civicrm/scripts/imap2soap.pl

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using IMAP2SOAP »
  • Civimail was working great on Civi 2.0 now w/ 2.1

This forum was archived on 2017-11-26.