From: Paul L. <pa...@sq...> - 2021-08-10 05:33:13
|
Bill, On Tue, August 10, 2021 5:15 am, Bill Shirley wrote: > You were right. I commented out my two line patch in date.php > getTimeStamp (so the errors would resume) and > added the preg_replace statements in imap_messages.php: > <snip> > Some of the strings did have multiple spaces between words. No errors > now. Can you provide the actual errant date strings? What kind of IMAP server/setup/configuration is this from? -- Paul Lesniewski SquirrelMail Team Please support Open Source Software by donating to SquirrelMail! http://squirrelmail.org/donate_paul_lesniewski.php > On 8/9/2021 6:33 PM, Paul Lesniewski wrote: >> Bill, >> >> We need to see the origin of the problem, which in this case might be a >> strange date string from the IMAP server and/or in a date header. Your >> best place to debug is in functions/imap_messages.php around line 911. >> Can try doing: >> sm_print_r($internal_date, $date, '=========='); >> And you can make it conditional on the username if you know who is >> having >> the trouble. >> >> There are two lines with str_replace(' ', ' ', $internal_date); just >> below that which may need to be changed to use a regex: >> preg_replace('/\s+/', ' ', $internal_date); >> >> You can also use the info plugin and test some of your IMAP server >> responses. >> > > > ----- > squirrelmail-devel mailing list > Posting guidelines: http://squirrelmail.org/postingguidelines > List address: squ...@li... > List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel > List info (subscribe/unsubscribe/change options): > https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel |