[PATCH 1/4] test: insert into the folder with trailing /

2017-08-12 Thread Yuri Volchkov
From database's point of view, "Drafts" and "Drafts/" are different folders Signed-off-by: Yuri Volchkov --- test/T070-insert.sh | 7 +++ 1 file changed, 7 insertions(+) diff --git a/test/T070-insert.sh b/test/T070-insert.sh index 48f212e..380934a 100755 ---

[PATCH 3/4] test: show id:<> works even if the first duplicated is deleted

2017-08-12 Thread Yuri Volchkov
Signed-off-by: Yuri Volchkov --- test/T670-duplicate-mid.sh | 25 + 1 file changed, 25 insertions(+) diff --git a/test/T670-duplicate-mid.sh b/test/T670-duplicate-mid.sh index ea5e1d6..decbc0a 100755 --- a/test/T670-duplicate-mid.sh +++

[PATCH 4/4] show: workaround for the missing file problem

2017-08-12 Thread Yuri Volchkov
If a message to be shown has several duplicated files, and for some reason the first file in the list is not available anymore, notmuch will exit with error. This is clearly a problem in the database, but we are not going to let this problem be a show-stopper. Let's walk through the list, and

[PATCH 2/4] insert: strip trailing / in folder path

2017-08-12 Thread Yuri Volchkov
I have faced a problem, that messages sent by emacs could not be shown or found later. The "notmuch show id:" says "no such file or directory". The reason of this behavior is the following chain of events: 1) While sending a message, emacs calls notmuch insert --folder=maildir/Sent/ <

[PATCH 0/4] fix "no such file" problem for emails send by emacs

2017-08-12 Thread Yuri Volchkov
Hi, I have faced a problem, that messages sent by emacs could not be shown or found later. The "notmuch show id:" says "no such file or directory". This patch series fixes the problem related to my use case. The detailed description of the root cause is provided in the related patch. Yuri

[PATCH] test: remove remainder of previously killed basic test

2017-08-12 Thread Yuri Volchkov
In the commit 51cd69feb1d131db7a468e33e0fa2e043caad41e the part of the test "test runs if prerequisite is satisfied" has been removed. However, there was a remainder of that test - variable 'haveit'. Kill it, to not to confuse people. Signed-off-by: Yuri Volchkov ---

Re: notmuch search does not work with search term 'id:'

2017-08-12 Thread Jörg Volbers
That was helpful! The output is: Query(((Tmail AND 0 * QE5-a1wt6bgr-elaine/2/42589-dc960...@nlsender05.ui-portal.com) AND_NOT (Kdeleted OR Kspam))) Actually my config has "search.exclude_tags=deleted;spam" set, and the mail IS a spam mail. (I wanted to train bogofilter). Did not know that

Re: [PATCH] go: update bindings to compile with notmuch 0.25

2017-08-12 Thread David Bremner
Kamil Klimkiewicz writes: > Attached is a simple patch that fixes go bindings to compile with > notmuch 0.25. Please note it doesn't change the go API, ie. go methods > *don't* return Status values. I am not sure you also want to break go > API with the update. If you do, I

Re: Wish: notmuch-emacs: allow for reply to attached message/rfc822 message

2017-08-12 Thread David Bremner
Gregor Zattler writes: > Dear notmuch developers, > > it would be great if it was possible in notmuch-emacs to reply to > the very mime part of a message, the cursor is in. > > Use case: Mailman sends emails for approval to list owners where > the last mime parts are a rfc822

Wish: notmuch-emacs: allow for reply to attached message/rfc822 message

2017-08-12 Thread Gregor Zattler
Dear notmuch developers, it would be great if it was possible in notmuch-emacs to reply to the very mime part of a message, the cursor is in. Use case: Mailman sends emails for approval to list owners where the last mime parts are a rfc822 attachment to which said list owner may answer in order