Changeset 5335:68a9c3e74f9a for doc

Show
Ignore:
Timestamp:
2007-12-11 06:22:44 (12 months ago)
Author:
Rocco Rutte <pdmef@…>
Branch:
HEAD
Message:

Manual: Update caching docs (hcache naming, maintenance)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/manual.xml.head

    r5332 r5335  
    60646064 
    60656065<para> 
    6066 These are optional which means they're not enabled by default. 
    6067 Details on how to enable either of these techniques are given in the 
    6068 following subsections. 
     6066Header caching is optional as it depends on external libraries, body 
     6067caching is always enabled if mutt is compiled with POP and/or IMAP 
     6068support as these use it (body caching requires no external library). 
    60696069</para> 
    60706070 
     
    60986098 
    60996099<para> 
    6100 For the one-file-per-folder case, database files will be named by MD5 
    6101 sums. They may be safely removed if a system is short on space. You 
    6102 can compute the name of the header cache file for a particular folder 
     6100For the one-file-per-folder case, database files for remote folders 
     6101will be named according to their URL while database files for local 
     6102folders will be named by the MD5 checksums of their path. These database 
     6103files may be safely removed if a system is short on space. You 
     6104can compute the name of the header cache file for a particular local folder 
    61036105through a command like the following: 
    61046106</para> 
     
    61076109<screen> 
    61086110$ printf '%s' '/path/to/folder' | md5sum 
    6109 $ printf '%s' 'imaps://user@host/path/to/folder' | md5sum 
    6110 $ printf '%s' 'pops://user@host' | md5sum 
    61116111</screen> 
    61126112</para> 
     
    61216121<sect2 id="body-caching"> 
    61226122<title>Body caching</title> 
     6123 
     6124<para> 
     6125Both cache methods can be combined using the same directory for storage 
     6126(and for IMAP/POP even provide meaningful file names) which simplifies 
     6127manual maintenance tasks. 
     6128</para> 
     6129 
    61236130 
    61246131<para> 
     
    61276134for POP and IMAP folders because messages usually have to be 
    61286135downloaded only once. 
    6129 </para> 
    6130  
    6131 <para> 
    6132 If the configure script is called with <emphasis>--enable-pop</emphasis> 
    6133 and/or <emphasis>--enable-imap</emphasis>, body caching will be 
    6134 built in as it does not require additional software packages such 
    6135 as database libraries. 
    61366136</para> 
    61376137 
     
    61506150All files can be removed as needed if the consumed disk space 
    61516151becomes an issue as mutt will silently fetch missing items again. 
     6152</para> 
     6153 
     6154</sect2> 
     6155 
     6156<sect2 id="maint-cache"> 
     6157<title>Maintenance</title> 
     6158 
     6159<para> 
     6160Mutt does not (yet) support maintenance features for header cache 
     6161database files so that files have to be removed in case they grow too 
     6162big. It depends on the database library used for header caching whether 
     6163disk space freed by removing messages is re-used. 
     6164</para> 
     6165 
     6166<para> 
     6167For body caches, mutt can keep the local cache in sync with the 
     6168remote mailbox if the 
     6169<link linkend="message-cache-clean">&dollar;message&lowbar;cache&lowbar;clean</link> 
     6170variable is set. Cleaning means to remove messages from the cache which 
     6171are no longer present in the mailbox which only happens when other mail 
     6172clients or instances of mutt using a different body cache location 
     6173delete messages (Mutt itself removes deleted messages from the cache 
     6174when syncing a mailbox). As cleaning can take a noticeable amount of time, 
     6175it should not be set in general but only occasionally. 
    61526176</para> 
    61536177