From: <pdo...@us...> - 2023-07-28 23:09:16
|
Revision: 14991 http://sourceforge.net/p/squirrelmail/code/14991 Author: pdontthink Date: 2023-07-28 23:09:14 +0000 (Fri, 28 Jul 2023) Log Message: ----------- Some IMAP servers are picky about extraneous spaces Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php 2023-04-13 05:56:39 UTC (rev 14990) +++ branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php 2023-07-28 23:09:14 UTC (rev 14991) @@ -748,10 +748,12 @@ } $internaldate = getPref($data_dir, $username, 'internal_date_sort', SMPREF_ON); + if ($extra_small_header_fields !== '') + $extra_small_header_fields = ' ' . $extra_small_header_fields; if ($internaldate) { - $query = "FETCH $msgs_str (FLAGS UID RFC822.SIZE INTERNALDATE BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject X-Priority Importance Priority Content-Type $extra_small_header_fields)])"; + $query = "FETCH $msgs_str (FLAGS UID RFC822.SIZE INTERNALDATE BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject X-Priority Importance Priority Content-Type$extra_small_header_fields)])"; } else { - $query = "FETCH $msgs_str (FLAGS UID RFC822.SIZE BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject X-Priority Importance Priority Content-Type $extra_small_header_fields)])"; + $query = "FETCH $msgs_str (FLAGS UID RFC822.SIZE BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject X-Priority Importance Priority Content-Type$extra_small_header_fields)])"; } $read_list = sqimap_run_command_list ($imap_stream, $query, true, $response, $message, $uid_support); $i = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |