<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>we are developing a web page, for a ticket system, to show the
email messages ordered by the biggest attachments size present in
an IMAP folder, with a pagination of 100 messages per page. Each
raw represents a message with "DATE, FROM, SUBJECT, the preview
(the first 500 chars of the text/html of the messsage) and the
list of the attachments (name + size) it contains.<br>
<br>
The problem is that the page load is VERY slow because we fetch
the entire BODY of all 100 messages, in order to get the preview
and the attachments name and size.<br>
<br>
Now, considering that each messages can contain up to 50 MB of
attachments, we risk to download 5000MB from IMAP for every page.<br>
<br>
An option might be to perform two FETCH for each message:<br>
<br>
- one fetch with just the BODYSTRUCTURE (where we can get the
attachments name and size and the text/html parts).<br>
<br>
- one fetch with the body parts (BODY.PEEK[]) we need to build the
preview (text + html).<br>
<br>
We are wondering if there is a single FETCH command to get the
text and html parts (needed to build the preview) with only the
name and the size of the attachments without downloading the
entire message.<br>
<br>
Thanks.</p>
<pre class="moz-signature" cols="72">--
Alessio Cecchi
Postmaster @ <a class="moz-txt-link-freetext" href="http://www.qboxmail.it">http://www.qboxmail.it</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/alessice">https://www.linkedin.com/in/alessice</a></pre>
</body>
</html>