From 9fa586cb737ddbeba1b856275f01fa543ecf3a51 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 13 Sep 2007 09:17:47 +0000 Subject: [PATCH] 100% done causes status to set to done again in mail2infolog --- infolog/inc/class.boinfolog.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/infolog/inc/class.boinfolog.inc.php b/infolog/inc/class.boinfolog.inc.php index b151e7ecc5..0ddeaf8495 100644 --- a/infolog/inc/class.boinfolog.inc.php +++ b/infolog/inc/class.boinfolog.inc.php @@ -883,9 +883,10 @@ class boinfolog $name[] = !empty($address->personal) ? $address->personal : $emailadr; } // shorten long (> $this->max_line_chars) lines of "line" chars (-_+=~) in mails - $_message = preg_replace_callback('/[-_+=~]{'.$this->max_line_chars.',}/m', + $_message = preg_replace_callback('/[-_+=~\.]{'.$this->max_line_chars.',}/m', create_function('$matches',"return substr(\$matches[0],0,$this->max_line_chars);"),$_message); $type = isset($this->enums['type']['email']) ? 'email' : 'note'; + $status = isset($this->status['defaults'][$type]) ? $this->status['defaults'][$type] : 'done'; $info = array( 'info_id' => 0, 'info_type' => $type, @@ -894,9 +895,9 @@ class boinfolog 'info_subject' => $_subject, 'info_des' => $_message, 'info_startdate' => $_date, - 'info_status' => isset($this->status['defaults'][$type]) ? $this->status['defaults'][$type] : 'done', + 'info_status' => $status, 'info_priority' => 1, - 'info_percent' => 100, + 'info_percent' => $status == 'done' ? 100 : 0, 'referer' => false, 'link_to' => array( 'to_app' => 'infolog',