[Vtigercrm-commits] [Vtiger development] #7921: MailConverter is scanning since 1 Jan 1970 if no timezone set

Vtiger development vtiger-tickets at trac.vtiger.com
Tue Jan 21 22:01:49 GMT 2014


#7921: MailConverter is scanning since 1 Jan 1970 if no timezone set
--------------------------+----------------------------
 Reporter:  nilayspartan  |      Owner:  developer
     Type:  defect        |     Status:  new
 Priority:  critical      |  Milestone:  Unassigned
Component:  vtigercrm     |    Version:  6.0.0
 Severity:  Critical      |   Keywords:  Mail Converter
--------------------------+----------------------------
 If a mailbox is created with timezone as "I Don't know", when checking for
 the last scanned time for a folder the check at line 147 in
 modules/Settings/MailConverter/handlers/MailScannerInfo.php

 if (!empty($this->timezone)) is always true.

 The reason found on vardump of $this->timezone return string(1) " ", which
 is not empty and the condition is passed. This inturn results in the
 lastscanned date to be set to 1-Jan-1970.

 Workaround for this which I have added is to trim $this->timezone and also
 to check if $this->timezone is not set to false;


 This leads the mailconverter to be completely unusable, as the no of
 emails grows it takes a large amount of time and sometimes exceeds the
 execution time and no rules are applied for the latest emails.

--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7921>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM


More information about the vtigercrm-commits mailing list