25 Jun 2012 22:51
[RFC PATCH 05/14] new: use new URL-based filenames for messages
This commit breaks a bunch of tests; fixes follow. Signed-off-by: Ethan Glasser-Camp <ethan@...> --- notmuch-new.c | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/notmuch-new.c b/notmuch-new.c index 938ae29..1f11b2c 100644 --- a/notmuch-new.c +++ b/notmuch-new.c <at> <at> -287,7 +287,7 <at> <at> add_files (notmuch_database_t *notmuch, { DIR *dir = NULL; struct dirent *entry = NULL; - char *next = NULL; + char *next = NULL, *path_uri = NULL; time_t fs_mtime, db_mtime; notmuch_status_t status, ret = NOTMUCH_STATUS_SUCCESS; notmuch_message_t *message = NULL; <at> <at> -315,7 +315,16 <at> <at> add_files (notmuch_database_t *notmuch, fs_mtime = st.st_mtime; - status = notmuch_database_get_directory (notmuch, path, &directory); + /* maildir URIs should never have a hostname component, but + * uriparser doesn't parse paths correctly if they start with //, + * as in scheme://host//path. + */ + if (path[0] == '/')(Continue reading)
RSS Feed