Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
for ($i = 1; $i <= $msg_list["count_mails"]; $i++) { $email = $pop3->get_mail($i); if ($email == false) { echo $pop3->error; continue; } if (substr($email[2], 0, 20) == 'Envelope-to: bounce.') echo $email[2] . '<br>';}exit;
Basically, all you have to do is to pass the bounce emails into our SOAP interface. You don’t have to scan for the email addresses, you don’t have to judge the bounce reasons, you don’t have to count the number of bounces and put emails on hold – this is all done by CiviCRM. (Take a look at the civicrm_mailing_bounce_type and civicrm_mailing_bounce_pattern tables – having said the above, we’re very interested in real-life use cases and any additions to these tables’ contents.)If you figure out how to take emails from your inbox and pass them to CiviCRM’s SOAP interface (in the proper form), my bet would be you’re basically done with your solution.
Piotr Szotkowski said 'use Perl because it’s available on the servers almost by default, is way faster than PHP and is known to more server administrators than PHP.' What do you mean by faster, less CPU time per message or less processing (elapsed) time per message?
Given that the imap2soap.pl script reads a message from an IMAP mailbox on a possibly remote server, it is going to be very slow in terms of elapsed time, irrespective of programming language.