From f09bea28560b01612ac5a8150c1e0a4f72b26e3b Mon Sep 17 00:00:00 2001 From: pdontthink Date: Mon, 21 Mar 2022 20:39:37 +0000 Subject: [PATCH] Add ability for plugins to request additional header fields in the message list lookup git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14942 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 48d2feeb..93aaaa8c 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -581,6 +581,10 @@ function sqimap_get_small_header_list($imap_stream, $msg_list, $aHeaderFields = array('Date', 'To', 'Cc', 'From', 'Subject', 'X-Priority', 'Content-Type'), $aFetchItems = array('FLAGS', 'RFC822.SIZE', 'INTERNALDATE')) { + global $extra_small_header_fields; + if (!empty($extra_small_header_fields)) + $aHeaderFields = array_merge($aHeaderFields, $extra_small_header_fields); + $aMessageList = array(); /** -- 2.25.1