<<< Date Index >>>     <<< Thread Index >>>

Re: maildir header cache patch



On Wed 17-Dec-2003 at 10:47:19AM +0300, Sergei Kolobov wrote:
> 
> When I first visit a folder, X-Label: fields are displayed properly for
> all *new* messages, but as soon as I change folder and then return to
> the original folder, X-Label: field is empty for all messages. I guess
> it's not saved to the cache or something, though I haven't investigate
> the issue further.

I had a (probably) related problem with the Content-Disposition:
field.  It only manifests when a message consists of a single MIME
part that also represents a "file" with a filename:

    Content-Disposition: inline; filename="very-small-image.png"

This is what the 'attach menu' looks like for such a message that
hasn't yet been added to the header cache:

  q:Exit  s:Save  |:Pipe  p:Print  ?:Help
    I     1 very-small-image.png             [image/png, base64, 0.3K]

  -- Mutt: Attachments
  Save to file: very-small-image.png

This is correct, the image is inline; when you save, mutt suggests
the right filename.

Subsequently, once the message exists in the cache, the 'attach
menu' looks like this (and the save function doesn't suggest a
filename): 

  q:Exit  s:Save  |:Pipe  p:Print  ?:Help
    A     1 <no description>                 [image/png, base64, 0.3K]

  -- Mutt: Attachments
  Save to file:

I eventually abandoned the header-cache patch for other reasons;
mutt was taking longer to update the display when a new message
entered a Maildir than it took to open the Maildir in the
first-place.

-- 
Bruno