The following bug has been SUBMITTED. ====================================================================== http://dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000113 ====================================================================== Reported By: aaron Assigned To: ====================================================================== Project: DBMail Bug ID: 113 Category: Database layer Reproducibility: always Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 02-Nov-04 00:58 CET Last Modified: 02-Nov-04 00:58 CET ====================================================================== Summary: IMAP Search should parse only headers and retrieve only potential matches Description: [EMAIL PROTECTED] said:
> Currently, the code uses db_fetch_headers() for every message in the > search cycle. Despite the name, this function actually parses the entire > message, multipart boundaries and all. (Misleading function names are > possibly the worst thing about this code...) > > But, for header field searches, one could do with only parsing the main > header. This action is already available in the current code, as > db_get_main_header(); but it is only used for IMAP FETCH. In combination with a query that asks the database to only return potential matches, this should make search much, much faster. I'm going to file it as a bug so that we make sure to get this into 2.0.x ASAP. ====================================================================== Bug History Date Modified Username Field Change ====================================================================== 02-Nov-04 00:58aaron New Bug ======================================================================