$eq = new CRM_Core_DAO();
$eq->query("SELECT $contacts.display_name as display_name,
- $emails.email as email
+ $emails.email as email,
+ $queue.job_id as job_id,
+ $queue.hash as hash
FROM $queue
INNER JOIN $contacts
ON $queue.contact_id = $contacts.id
$b = $parsed->generateBody();
// strip Return-Path of possible bounding brackets, CRM-4502
- $h['Return-Path'] = trim($h['Return-Path'], '<>');
+ if (!empty($h['Return-Path'])) {
+ $h['Return-Path'] = trim($h['Return-Path'], '<>');
+ }
// FIXME: ugly hack - find the first MIME boundary in
// the body and make the boundary in the header match it