List:Eventum General Discussion« Previous MessageNext Message »
From:Bryan Alsdorf Date:April 5 2005 7:56am
Subject:Re: How eventum handles emails
View as plain text  
Hi Matthew,

That is a bug in Eventum that wasn't stripping those values. The code 
was there, but it wasn't catching all situations. This fix will be in 
1.5.2. In the mean time, I have included the diff below so you can 
change the file locally.

Thanks for pointing this out to us.

Regards,
/bryan

--- 1.33/include/class.notification.php	Mon Apr  4 09:00:53 2005
+++ 1.34/include/class.notification.php	Tue Apr  5 07:47:32 2005
@@ -309,14 +309,14 @@
          $header_names = Mime_Helper::getHeaderNames($_headers);
          // we don't want to keep the (B)Cc list for an eventum-based email
          $ignore_headers = array(
-            'To',
-            'Cc',
-            'Bcc'
+            'to',
+            'cc',
+            'bcc'
          );
          $headers = array();
          // build the headers array required by the smtp library
          foreach ($structure->headers as $header_name => $value) {
-            if ((in_array($header_name, $ignore_headers)) ||
+            if ((in_array(strtolower($header_name), $ignore_headers)) ||
                      (!in_array($header_name, 
array_keys($header_names))) ||
                      (strstr($header_name, ' '))) {
                  continue;

Matthew Dickinson wrote:
> Hi,
> 
> I'm a little concerned over some of the behaviour eventum has with regards
> to automatically associating emails with issues... It seems like that it
> automatically adds contacts from the email to the notification list, and
> there's no way to turn it off? Also, it seems to resend the email out again,
> to people who aren't on the notification list, but are CC'd, BCC'd or
> additional addresses in the "to" field - is this behaviour desired?
> 
> Thanks,
> 
> Matthew
> 
> 

-- 
Bryan Alsdorf, Software Engineer
MySQL AB, www.mysql.com

Are you MySQL certified?  www.mysql.com/certification
Thread
How eventum handles emailsMatthew Dickinson31 Mar
  • Re: How eventum handles emailsBryan Alsdorf5 Apr
    • RE: How eventum handles emailsMatthew Dickinson6 Apr
      • RE: How eventum handles emailsJim Wildman7 Apr
        • RE: How eventum handles emailsJoao Prado Maia7 Apr
      • Re: How eventum handles emailsBryan Alsdorf14 Apr