2 Oct 13:21
[PATCH] Ignore trailing slashes for folder names with header cache
Rocco Rutte <pdmef <at> gmx.net>
2006-10-02 11:21:13 GMT
2006-10-02 11:21:13 GMT
Hi, with maildir mutt's tab-completion is not optimal as it automatically adds a trailing slash. This leads to different md5 sums (in case one db file per folder is used) and to different keys for the messages. The latter makes it a little more complicated to ignore the slash because the same md5 sum isn't enough because the key is different. Attached is a patch which should work for all hcache modules. The patch doesn't really conform to mutt coding style as does hcache.c in many more places... bye, Rocco -- -- :wq!
diff --git a/hcache.c b/hcache.c
index 0974600..db80da1 100644
--- a/hcache.c
+++ b/hcache.c
@@ -769,14 +769,25 @@ #elif HAVE_GDBM
#endif
}
+static char* get_foldername(const char *folder) {
+ size_t flen = mutt_strlen (folder);
+ char* p = safe_strdup(folder);
(Continue reading)
RSS Feed