summaryrefslogtreecommitdiffstats
path: root/bcache.c
AgeCommit message (Collapse)Author
2019-09-09Convert remaining mutt_encode_path() call to use BUFFER.Kevin McCarthy
Then rename the other uses of mutt_buffer_encode_path() to mutt_encode_path().
2019-09-06Convert bcache to use buffer pools.Kevin McCarthy
2019-06-28Remove unnecessary "" checks for DT_STR and DT_PATH MuttVars.Kevin McCarthy
MuttVars of those types are set via safe_strdup(), which returns NULL if the original is "". Thus Var implies *Var. A good portion of the code relies on that axiom, but over the years some (Var && *Var) checks have crept in, including from me. This was partially because of the INITVAL("") that were in the code, which implied (incorrectly) the initial value could be "". Commit 2f91d43e removed those to make it more clear. This commit removes the *Var checks to make it even clearer, and help avoid them creeping back in again.
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-11-28Update copyright notices.Kevin McCarthy
2017-07-12bcache: cast to avoid implicit signed/unsigned comparison in bcache_pathBrendan Cully
2016-01-01Convert copyright years to all use 4 digit years.Kevin McCarthy
Vincent Lefèvre pointed out the common shortcut, e.g 1996-9, is actually not allowed for copyright years. Convert all the copyright years (for mutt files) to use 4 digits.
2016-01-01Update copyright notices.Kevin McCarthy
This patch only updates existing copyright notices in the source files, using commit dates since the last copyright update in commits e3af935cdb1a and f8fd60d8d3f2. Add a notice to the COPYRIGHT file to refer to our mercurial repository for the full commit history. Add myself to the COPYRIGHT file and smime_keys.pl file.
2009-07-23Fix two warnings "the address of 'foo' will always evaluate as 'true'".Matthias Andree
2009-07-07Make hcache+bcache paths always UTF-8. Closes #3284.Rocco Rutte
2009-01-26Remove old bcache tmpfile before trying to create new one. Closes #3163.Brendan Cully
2009-01-04Update copyrights. Closes #3016.Brendan Cully
I went through the logs of each file with a copyright header and updated the years for the authors in the headers for any non-comment changes they introduced. What a pain!
2008-12-15snprintf returns int, not size_tErik Hovland
2007-04-10Fix some warningsBrendan Cully
2007-04-10Simplify body cache path creationBrendan Cully
2007-03-31Add tmp flag to bcache_put, create bcache_commit.Brendan Cully
2007-03-29Make message cache write to temporary location until file is complete.Brendan Cully
Previously mutt trusted the cache file even when it was incomplete, causing permanently incorrect message display if the fetch was interrupted for some reason.
2006-07-04Rename mutt_bcache_path to bcache_path (it's static), simplify it a bit,Brendan Cully
and just strip '/' in the URL portion up to path instead of replacing them with '_', for prettier cache folder names.
2006-07-04bcache.c and bcache.h accidentally omitted from previous commit.Brendan Cully