Re: problem with large mailbox on imap server
"Stephen Isard" <3s9xh9m02@...> wrote:
> Running nail 11.13 on a linux redhat 9 system, making an imap connection
> to a server.
>
> With a very large mail folder (~5000 messages), a typo in a header
> command, e.g.,
> h typo
> which normally provokes an error message:
> No applicable messages from {typo}
> causes nail to freeze until it is killed with kill -9.
The problem here is that most forms of "h typo" are correct commands
for nail. So it just does what it was instructed to do; it searches
for messages sent by "typo". Now since searches of this form are
case-sensitive but IMAP searches are not, nail has to download all
the data it needs and to check for matches on the client machine. This
can take a lot of time before nail can finally print "No applicable
messages from {typo}". I'm sorry to say, but the only way to avoid
the problem completely is not to make typos in message specifications
when reading large IMAP folders.
Actually there is a design decision involved at this point. When it
needs the contents of any header field of an IMAP message, nail will
currently request the entire message header from the server. This is
actually a speed advantage in many situations. First, performance in
networking does not only depend on the amount of data transmitted,
but also on the number of transmission requests. Thus it can well be
that it is faster to download an entire message header than to fetch
two or three individual header fields in separate operations. Second,
(Continue reading)