[Vtigercrm-commits] [Vtiger development] #8089: Mail Converter ignore not encoded words in subject beginnig

Vtiger development vtiger-tickets at trac.vtiger.com
Sat Jun 7 13:05:01 GMT 2014


#8089: Mail Converter ignore not encoded words in subject beginnig
------------------------------------------------+--------------------------
 Reporter:  branokosik                          |       Owner:  developer
     Type:  defect                              |      Status:  new
 Priority:  major                               |   Milestone:  6.1.0
Component:  vtigercrm                           |     Version:  6.1.0 - wip
 Severity:  Critical                            |  Resolution:
 Keywords:  mail, converter, subject, encoding  |
------------------------------------------------+--------------------------

Comment (by branokosik):

 Solution:

 {{{
 diff a/modules/Settings/MailConverter/handlers/MailRecord.php
 b/modules/Settings/MailConverter/handlers/MailRecord.php
 index 5f60593..d0e8df6 100644
 --- a/modules/Settings/MailConverter/handlers/MailRecord.php
 +++ b/modules/Settings/MailConverter/handlers/MailRecord.php
 @@ -158,6 +158,9 @@
                 if(is_null($words)) $words = array();
                 $returnvalue = $input;

 +
 if(preg_match('/([^\?]+)(?=\=\?[^\?]+\?[^\?]+\?[^\?]+\?=)/', $input,
 $matches)) {
 +                       array_push($words, $matches[0]);
 +               }
                 if(preg_match_all('/=\?([^\?]+)\?([^\?]+)\?([^\?]+)\?=/',
 $input, $matches)) {
                         $totalmatches = count($matches[0]);
 }}}

--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8089#comment:1>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM


More information about the vtigercrm-commits mailing list