summaryrefslogtreecommitdiffstats
path: root/hcache.h
AgeCommit message (Collapse)Author
2019-09-27Convert hcache_open to use buffer pool.Kevin McCarthy
Change the namer function and mutt_hcache_per_folder to operate on a buffer parameter.
2019-01-04Clean up code indentation.Kevin McCarthy
These are mostly automated changes corresponding to the emacs settings: (c-set-style "linux") (setq c-basic-offset 2) (c-set-offset 'case-label '+) Most of the code follows the convention: (add-to-list 'c-cleanup-list 'space-before-funcall) but this is not enforced by this indentation cleanup. Also, I personally dislike tabs, so I have: (setq-default indent-tabs-mode nil) in my own configuration. However I have no desire to change every line just for that effect. So this cleanup does nothing about the mix issue. Some of the secondary files (e.g. regex.c) have been skipped. I've also skipped crypt-gpgme.c, because I need to think about that file. Werner Koch and the GnuPG team contributed most it, and it follows the Gnu indentation settings. It should probably be made uniform with Mutt, but I don't want to discourage future GnuPG contribution to the file. I manually reverted a few unsightly cleanups, and added a few tweeks when I saw things that could be improved.
2017-02-07Create function to free header cache data.Kevin McCarthy
Kyoto Cabinet documents that data from it should be freed via kcfree(). LMDB claims ownership of the data returned, so convert its free operation to be a noop and remove the malloc from its fetch function.
2016-05-09Change M_* symbols to MUTT_*Derek Martin
Changeset 23334e967dd7 created a workaround for a namespace conflict with Solaris and derivatives. After some discussion, the team decided it would be best to move away from using the "M_" prefix for macros. This patch was automatically generated by running: perl -wpi -e 's/\bM_(\w+)\b/MUTT_$1/g' `find . -name '*.[ch]' -print` with the exception that sys_socket.h was exempted. (That file will be backed out subsequent to this commit.) Thanks to Andras Salamon for supplying the perl script used to make this change.
2013-01-17use a separate flag for mutt_hcache_store() to signal that the ↵Michael Elkins
gettimeofday() value should be substituted, so that a 0 uidvalidity can be used by the imap driver. closes #3501
2009-07-29Harmonize hcache uidvalidity size to unsigned int (per IMAP RFC).Brendan Cully
Closes #3296.
2007-09-17Include hcache backend version info in mutt -v outputRocco Rutte
2007-04-10Add hcache path name hookBrendan Cully
2006-05-18Use header_cache_t* instead of void* for header cache.Rocco Rutte
In hcache.c, the header_cache structure is defined to match the needs per DB backend used. Thus the interface uses void* abstract from it. This patch adds a 'header_cache' forward declaration to hcache.h so that we at least get a little more type safety.
2005-12-21I broke DB4 while refactoring hcache.c.Brendan Cully
2005-12-20Refactor header cache a bit to provide (fetch|store)_raw functions. TheseBrendan Cully
will let me keep folder metadata (UIDVALIDITY, NEXT, msg count etc) in the cache, which will help to sync more quickly.