On Tue, 2003-03-04 at 19:47, Arnt Gulbrandsen wrote: > > Say I want to open one message in a mail client that first shows a > > list of messages: > > > > 1 FETCH 1:30 ENVELOPE (fetch a screenful) > > 2 FETCH 20 BODYSTRUCTURE > > 3 FETCH 20 BODY[1] > > Or > > 1 FETCH 1:30 (BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject)])
Have you even looked at what BODYSTRUCTURE actually returns? It doesn't return From field. It doesn't return To field. It doesn't return Date field. It doesn't return anything useful for a list of message headers, other than possibly figuring out if it contains attachments, signatures or such. If you wanted to do it without ENVELOPE, you'd likely do: 1 FETCH 1:30 BODY.PEEK[HEADER.FIELDS (From Subject Date)] But I think many servers are more optimized for ENVELOPE fetches than fetching partial headers so you're wasting server's resources with that.
