imap headers cache - Mutt

This is a discussion on imap headers cache - Mutt ; Hi all, If I understand correctly, versions of mutt starting from 1.5.7 allow the storing of imap headers in a local cache (see http://wiki.mutt.org/index.cgi?HeaderCache ). I have successfully downloaded and compiled mutt-1.5.9, I suppose that I must add something to ...

+ Reply to Thread
Results 1 to 9 of 9

imap headers cache

  1. Default imap headers cache

    Hi all,

    If I understand correctly, versions of mutt starting from 1.5.7 allow
    the storing of imap headers in a local cache (see
    http://wiki.mutt.org/index.cgi?HeaderCache).
    I have successfully downloaded and compiled mutt-1.5.9, I suppose that
    I must add something to my configuration file in order for the caching
    feature to work. However, I have not been able to find what to do in
    the configuration.

    Any clues ?


  2. Default Re: imap headers cache

    Clemence Magnien:
    > I have successfully downloaded and compiled mutt-1.5.9, I
    > suppose that I must add something to my configuration file in
    > order for the caching feature to work. However, I have not
    > been able to find what to do in the configuration.


    http://wwwcip.informatik.uni-erlange...sithglan/mutt/

    Hendrik

  3. Default Re: imap headers cache



    Hendrik Mangels wrote:
    > Clemence Magnien:


    > http://wwwcip.informatik.uni-erlange...sithglan/mutt/


    Hi, I should have mentioned that I did find this page but could not
    figure it out.
    It says the imap part of mutt-hc is integrated in mutt CVS HEAD
    (mutt-1.5.7), so I should not need to apply a patch to use imap
    headers caching, should I?
    I think I am missing something but cannot find what.

    Clemence


  4. Default Re: imap headers cache

    Hello Clemence,
    download mutt-1.5.7 or later. And run the *configure* command with the
    additional "--enable-hcache" and "--enable-imap". Than add the following
    line to your .muttrc:

    set header_cache=/tmp/clemence-hcache

    if mutt doesn't know about the header cache variable than you compiled
    it the wrong way. Get sure that you start the right executable. The
    first open of a large mailbox takes a bit longer while consecutive opens
    are very fast compared to the uncached version.

    Thomas

  5. Default Re: imap headers cache

    On 3 Jun 2005 08:11:29 GMT, Thomas Glanzmann wrote:
    > set header_cache=/tmp/clemence-hcache


    Using /tmp may be a little unwise. Some linux distros (Debian
    certainly) clean /tmp on bootup so *bang* goes your cache. A hidden
    file in ~/ could be much handier.

    --
    Stephen Patterson steve@patter.mine.nu http://patter.mine.nu/
    Linux Counter No: 142831 GPG Public key: E3E8E974
    "Whoever said nothing is impossible never tried slamming a revolving door."
    -- Melissa O'Brien

  6. Default Re: imap headers cache

    Hello,

    > Using /tmp may be a little unwise. Some linux distros (Debian
    > certainly) clean /tmp on bootup so *bang* goes your cache. A hidden
    > file in ~/ could be much handier.


    so what? If it gets wiped you rebuild it. And for example our machines
    have /tmp on shmfs which makes the cache even faster. And if your HOME
    directory is NFS shared it is just bullshit to put your cache in.
    For more than 5thousand messages to cache it is wise to let header_cache
    point to a directory which scales a lot better than the single file
    approach.

    Thomas

  7. Default Re: imap headers cache



    Thomas Glanzmann wrote:
    > Hello Clemence,
    > download mutt-1.5.7 or later. And run the *configure* command with the
    > additional "--enable-hcache" and "--enable-imap". Than add the following
    > line to your .muttrc:
    >
    > set header_cache=/tmp/clemence-hcache
    >


    Thanks for the answer!
    As a matter of fact I had already tried that, and configure had failed.
    I had assumed that it was because I had picked up a wrong version of
    mutt or something.

    As it is, the error message is:
    configure: error: You need Sleepycat DB4 or GDBM for --enable-hcache,
    although I do have gdbm installed, in a non standard location.
    I will have to find a way to make it aware of gdbm.

    Thanks,
    Clemence


  8. Default Re: imap headers cache

    * Clemence Magnien on Sat, Jun 04, 2005:
    > As a matter of fact I had already tried that, and configure had failed.
    > I had assumed that it was because I had picked up a wrong version of
    > mutt or something.
    >
    > As it is, the error message is:
    > configure: error: You need Sleepycat DB4 or GDBM for --enable-hcache,
    > although I do have gdbm installed, in a non standard location.
    > I will have to find a way to make it aware of gdbm.


    I gather from your postings to fink-users that you've installed
    gdbm via fink?

    Try something like the following before compiling:

    export CFLAGS="-I/sw/include"
    export LDFLAGS="-L/sw/lib"
    export CXXFLAGS="$CFLAGS"
    export CPPFLAGS="$CXXFLAGS"
    export ACLOCAL_FLAGS="-I/sw/share/aclocal"
    export PKG_CONFIG_PATH='/sw/lib/pkgconfig'

    Worked for me.

    c
    --
    _B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>

  9. Default Re: imap headers cache



    Christian Ebert wrote:

    > I gather from your postings to fink-users that you've installed
    > gdbm via fink?
    >
    > Try something like the following before compiling:
    >
    > export CFLAGS="-I/sw/include"
    > export LDFLAGS="-L/sw/lib"
    > export CXXFLAGS="$CFLAGS"
    > export CPPFLAGS="$CXXFLAGS"
    > export ACLOCAL_FLAGS="-I/sw/share/aclocal"
    > export PKG_CONFIG_PATH='/sw/lib/pkgconfig'
    >
    > Worked for me.


    I am indeed using fink, and your solution worked perfectly!

    Thank you very much,
    Clemence

    (concerning the actual location of the cache, I think it matters
    little to me as I am using a laptop)


+ Reply to Thread

Similar Threads

  1. IMAP mark_old not working; also blank lines in headers
    By Application Development in forum Mutt
    Replies: 1
    Last Post: 01-16-2007, 02:56 PM
  2. accessing cache when IMAP mailbox unavailable
    By Application Development in forum Pegasus
    Replies: 3
    Last Post: 06-13-2006, 02:49 PM
  3. Converting headers into IMAP keywords with SIEVE ?
    By Application Development in forum IMAP
    Replies: 0
    Last Post: 02-25-2005, 06:38 PM
  4. IMAP Cache
    By Application Development in forum Pegasus
    Replies: 14
    Last Post: 01-31-2005, 06:11 PM
  5. Maildir header cache now supports imap, too
    By Application Development in forum Mutt
    Replies: 0
    Last Post: 07-16-2004, 02:14 AM