notmuch/lib
Bart Trojanowski ceee152fca fix notmuch-new bug when database path ends with a trailing /
I configured my database.path with a trailing /, and after running notmuch
new every notmuch search would fail with error messages like this:

  Error opening /inbox/cur/1258565257.000211.mbox:2,S: No such file or directory

The actual bug was in the filename normalization for storage in the
database.  The database.path was removed from the full filename, but if
the database.path from the config file contained a trailing /, the
relative file name would retain an extra leading /... which made it look
like an absolute path after it was read out from the DB.

Signed-off-by: Bart Trojanowski <bart@jukie.net>
2009-11-23 04:37:01 +01:00
..
database-private.h Catch and optionally print about exception at database->flush. 2009-11-22 03:54:20 +01:00
database.cc lib/database.cc: coding style 2009-11-22 05:26:59 +01:00
index.cc Typsos 2009-11-18 03:21:36 -08:00
libsha1.c libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
libsha1.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
Makefile Use $(MAKE) when invoking make from make. 2009-11-12 22:00:51 -08:00
Makefile.local Makefile: Magic silent rules. 2009-11-22 04:29:29 +01:00
message-file.c message_file_get_header: Use break where more clear than continue. 2009-11-17 18:37:45 -08:00
message.cc fix notmuch-new bug when database path ends with a trailing / 2009-11-23 04:37:01 +01:00
messages.c add_message: Don't add any self-references to the database. 2009-11-17 17:55:37 -08:00
notmuch-private.h Permit opening the notmuch database in read-only mode. 2009-11-21 22:04:49 +01:00
notmuch.h Fix freak case problem that broke the compile. 2009-11-21 22:29:31 +01:00
query.cc Catch and optionally print about exception at database->flush. 2009-11-22 03:54:20 +01:00
sha1.c Typsos 2009-11-18 03:21:36 -08:00
tags.c notmuch_tags_advance: Make safe against excessive calls. 2009-11-14 23:02:55 -08:00
thread.cc Typsos 2009-11-18 03:21:36 -08:00
xutil.c libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
xutil.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00