Permalink
Browse files

notmuch: fix new->cur maildir move

Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information...
1 parent 186b9b1 commit 6df3384acf29de86071731f55292ce8cfeb8c16b @karelzak committed Apr 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mutt_notmuch.c
View
@@ -641,7 +641,7 @@ static void append_message(CONTEXT *ctx, notmuch_message_t *msg)
if (folder) {
FILE *f = maildir_open_find_message(folder, path, &newpath);
if (f) {
- h = maildir_parse_stream(M_MAILDIR, f, path, 0, NULL);
+ h = maildir_parse_stream(M_MAILDIR, f, newpath, 0, NULL);
fclose(f);
dprint(1, (debugfile, "nm: not up-to-date: %s -> %s\n",
@@ -936,7 +936,7 @@ int nm_sync(CONTEXT *ctx, int *index_hint)
break;
}
if (h->deleted) {
- dprint(2, (debugfile, "nm: remove filename '%s'\n", old));
+ dprint(2, (debugfile, "nm: delete filename '%s'\n", old));
notmuch_database_remove_message(db, old);
changed = 1;
} else if (*new && *old) {

0 comments on commit 6df3384

Please sign in to comment.