Re: Fetching entire message for index page
On Fri, Nov 14, 2003 at 06:31:37AM -0800, moseley@xxxxxxxx wrote:
> I check headers in messages to see if my address is mentioned. For
> example:
> color index yellow black "~x hank\.org" # References
> color index green black "~i hank\.org" # Message ID
> color index blue black "~h In-Reply-To:.*hank\.org
> The problem is I'm using imap over the network and those checks causes the
> entire message to be fetched (which is a pain on a slow link with lots
> of messages with large binary attachments).
As Michelle said, none of the patterns you mention should cause the
entire message to be fetched. It should just grab the header. If you
were using something else like ~b or ~B, then it would have to fetch
the body too.
> Is it a limiation of imap that the entire message must be fetched?
Negative. IMAP specifies ways to retreive specific portions of a
message, if I remember correctly. I have not delved mutt's IMAP code
in sufficient depth to know how much mutt is able to benefit from this
potential. Still, if you're matching on the body, it'll need to get
the whole body anyway, and if not, it should only need the headers.
It might be worth doing some debugging, to see what IMAP commands are
actually being issued, and where the time is being taken up.
Cheers,
Allister
--
Allister MacLeod <amacleod@xxxxxxxx> | http://amacleod.is-a-geek.org/
Elen síla lúmenn'omentielvo.