Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

notmuch: fix new->cur maildir move

Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information...
commit 6df3384acf29de86071731f55292ce8cfeb8c16b 1 parent 186b9b1
@karelzak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mutt_notmuch.c
View
4 mutt_notmuch.c
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.