Re: [notmuch] Introducing notmuchsync

2010-01-18 Thread Michal Sojka
On Monday 18 of January 2010 16:12:28 Sebastian Spaeth wrote: Dear list, I really want to sync my maildir flags/folders with notmuch tags and as I haven't seen a script to do that, I've written (the beginnings of?) one. It is probably pre-alpha but I am a fan of release early, release

[notmuch] [PATCH 1/2] Skip German aw: prefix in subjects

2010-01-28 Thread Michal Sojka
This was originally present in Andreas Klöckner's patch. --- lib/index.cc |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/index.cc b/lib/index.cc index 7e2da08..eb97f91 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -116,6 +116,8 @@ skip_re_in_subject (const char

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Michal Sojka
Stores the folder (directory name) of the message in the database as a term with folder prefix. This patch was originally sent by Andreas Klöckner. The differences from the original patch are: - Folder name is taken from strings generated during travesal. It no longer uses glib nor it allocates

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Michal Sojka
On Tuesday 02 February 2010 18:48:25 Arvid Picciani wrote: On Tue, 2 Feb 2010 16:01:08 +0100, Michal Sojkasojk...@fel.cvut.cz wrote: Stores the folder (directory name) of the message in the database as a term with folder prefix. Hi, I've just made several experiments. I tested both

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Michal Sojka
On Tuesday 02 February 2010 22:31:38 micah anderson wrote: On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins jroll...@finestructure.net wrote: I'm starting to think that maybe the folder: field is not the right way to do this, though. What if a message moves? The easiest way to answer

[notmuch] [PATCH 3/4] Rename notmuch-test according to the new naming scheme

2010-02-03 Thread Michal Sojka
Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/notmuch-test | 220 - test/t0001-notmuch-new.sh | 220 + 2 files changed, 220 insertions(+), 220 deletions(-) delete mode 100755 test/notmuch

Re: [notmuch] notmuch new: Memory problem (with uuencoded content)

2010-02-08 Thread Michal Sojka
On Saturday 06 of February 2010 22:45:32 Carl Worth wrote: On Sat, 6 Feb 2010 11:40:18 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: It is straightforward to convert your current test script to Git's framework. If you are interested I'll do it. Yes, I'd be quite interested in seeing

Re: [notmuch] A functional (but rudimentary) test suite for notmuch

2010-02-08 Thread Michal Sojka
On Thursday 04 of February 2010 21:50:18 Carl Worth wrote: The test suite is still extremely rudimentary. Here are some things I'd like to improve about it: I converted the actual version of notmuch-test to git test framework. The result is in the followup patches. I'd like to know opinion of

[notmuch] [PATCH 1/3] Copy test framework from Git

2010-02-08 Thread Michal Sojka
-by: Michal Sojka sojk...@fel.cvut.cz --- test/Makefile | 46 +++ test/README | 297 + test/aggregate-results.sh | 34 ++ test/t-basic.sh | 368 + test/test-lib.sh | 787

[notmuch] [PATCH 3/3] Convert the actual tests to the new framework

2010-02-08 Thread Michal Sojka
To not remove trash directory at the end: ./t0001-new.sh -d To run all tests verbosely: make make GIT_TEST_OPTS=-v TODO: Convert GIT_* variables in test-lib.sh to NOTMUCH_* Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/notmuch-test| 542

[notmuch] [PATCH 2/3] Update test framework for use with notmuch

2010-02-08 Thread Michal Sojka
This removes Git specific things from the test-lib.sh and adds helper functions for notmuch taken from Carl's notmuch-test script. README is also slightly modified to reflect the current state. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/Makefile |1 + test/README

Re: [notmuch] emacs: On getting support for inline images

2010-02-10 Thread Michal Sojka
On Wed, 10 Feb 2010 12:54:52 -0800, Carl Worth cwo...@cworth.org wrote: PS. I know that attaching the output of git format-patch to a message like this isn't the git way. (That is, you won't get the right result by simply piping this message to git am.) But I really wish it were. It seems I

[notmuch] Broken display of a message in emacs

2010-02-11 Thread Michal Sojka
Hi, recently, I got a message (attached) which is diplayed incorrectly in emacs GUI. Instead of the message I see direct output of notmuch show (with ^L characters). I wonder whether it is a porblem of notmuch or it is because the message does not comform to standards. What do you think? Michal

Re: [notmuch] A functional (but rudimentary) test suite for notmuch

2010-02-12 Thread Michal Sojka
On Thu, 11 Feb 2010 13:42:08 -0800, Carl Worth cwo...@cworth.org wrote: Interesting. My only real concern at this point is that some of the new files have a copyright header identifying Junio as the copyright holder, but no license information. Meanwhile, the implicit license of git (GPLv2

Re: [notmuch] [PATCH 2/2] notmuch.el: add a submap (on z for ztash) to stash things.

2010-02-12 Thread Michal Sojka
On Thu, 11 Feb 2010 23:01:08 -0400, da...@tethera.net wrote: From: David Bremner brem...@unb.ca Provide key bindings for stuffing various RFC822 header fields and other metadata into the emacs kill-ring as text. The bindings are as follows: z F notmuch-show-stash-filename z T

Re: [notmuch] [PATCH] Reintroduce HTML inlining, with a much needed optimization

2010-02-12 Thread Michal Sojka
On Tue, 09 Feb 2010 18:18:38 -0800, Carl Worth cwo...@cworth.org wrote: On Tue, 9 Feb 2010 17:55:21 -0800, Alexander Botero-Lowry alex.boterolo...@gmail.com wrote: Now instead of requiring every single message be parsed, we now check the Content-type in the parsed headers and only do HTML

[notmuch] Using test-lib.sh under GPLv3?

2010-02-15 Thread Michal Sojka
Dear Junio, I like the simple and powerful test suite used by Git and I would like to use something like that in Notmuch project (http://notmuchmail.org/). Notmuch is licenced under GPLv3 and we think that things will be simpler if everything in the repository is licenced the same. You are

Re: [notmuch] Mail in git

2010-02-16 Thread Michal Sojka
Hi Stewart, On Mon, 15 Feb 2010 11:29:14 +1100, Stewart Smith stew...@flamingspork.com wrote: Which goes from a 15GB Maildir to a 3.7GB git repo. That's quite interesting ratio. I've tried a plain git add and git gc on my mail store and the result was a repo of approximately 50% of mail store

Re: [notmuch] [PATCH] notmuch: Respect maildir message flags

2010-02-16 Thread Michal Sojka
On Tue, 16 Feb 2010 13:21:28 +1100, Stewart Smith stew...@flamingspork.com wrote: What about this patch (just with those few things fixed)? diff --git a/notmuch-new.c b/notmuch-new.c index f25c71f..8303047 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -39,6 +39,7 @@ typedef struct {

Re: [notmuch] Using test-lib.sh under GPLv3?

2010-02-19 Thread Michal Sojka
Dear Pierre, Johannes (2x) and Sverre, as you can read bellow, I'd like to use git's test-lib.sh in a GPLv3 project. Do you mind if I use your work in that file under GPLv3? Thanks Michal On Mon, 15 Feb 2010 09:39:28 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: Dear Junio, I like

Re: [notmuch] nested tag trees (was: Mail in git)

2010-02-19 Thread Michal Sojka
On Fri, 19 Feb 2010 13:31:15 +1300, martin f krafft madd...@madduck.net wrote: also sprach Ben Gamari bgam...@gmail.com [2010.02.18.1810 +1300]: Instead of nested subtrees, think of 16 subtrees forming a level-1 hash table, or 256 for level-2, which really *ought* to be enough.

Re: [notmuch] patch queue

2010-02-22 Thread Michal Sojka
On Sat, 20 Feb 2010 16:05:35 -0500, Jameson Rollins jroll...@finestructure.net wrote: I'm not at all trying to be pushy; there's just some older stuff in the queue that I would really like to see applied, such as folder-based tagging Hi, as for the folder-based tagging patch sent by myself,

Re: [notmuch] Introducing notmuchsync

2010-03-01 Thread Michal Sojka
On Wed, 24 Feb 2010 10:19:06 -0800, Carl Worth cwo...@cworth.org wrote: Elsewhere in the thread Jameson Rollins wrote: I should have mentioned in my previous mail that I think this tool is a great idea, and I plan on using it. I just hope that all of it's functionality will be integrated

Re: [notmuch] [PATCH] Support for deletion (patch included)

2010-03-01 Thread Michal Sojka
On Thu, 25 Feb 2010 01:00:04 +0100 (CET), ra...@free.fr wrote: Hi Carl, Could you also write a commit message describing what the patch does? The easiest way for me to apply that would be if you would create a git commit, then run git format-patch origin/master and mail the resulting

Re: [notmuch] Thoughts on not seeing messages I can't deal with (yet, or now, or here...)

2010-03-01 Thread Michal Sojka
On Fri, 26 Feb 2010 12:00:06 -0800, Carl Worth cwo...@cworth.org wrote: [This mail started as some off-topic rambling in my reply to the notmuch-reply script. So that's why it starts on one topic and ends somewhere else entirely.] I'm currently avoiding any locking failures with notmuch

Re: [notmuch] What's so great about notmuch?

2010-03-01 Thread Michal Sojka
On Fri, 26 Feb 2010 12:08:49 -0800, Carl Worth cwo...@cworth.org wrote: What's your favorite thing about notmuch? I can process my inbox in a linear fassion (by pressing space). During that, I'm not distracted by various GUI elements, which remind me how many other emails I have to read. I

Re: [notmuch] Introducing notmuchsync

2010-03-01 Thread Michal Sojka
On Mon, 01 Mar 2010 11:27:07 -0500, Ben Gamari bgam...@gmail.com wrote: 2. get the list of new mails which need to be indexed (current notmuch does recursive file traversal, for git-based store it will be something like system(git diff-tree --name-status ...) Is this really

[notmuch] [PATCH 2/2] Emacs code for replying only to sender (bound to 'R' key)

2010-03-01 Thread Michal Sojka
This is probably a very stupid implementation. I do not know elisp well, so I appreciate advises on how to avoid code duplication. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- notmuch.el | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/notmuch.el

Re: [notmuch] Introducing notmuchsync

2010-03-01 Thread Michal Sojka
On Mon, 01 Mar 2010 13:43:24 -0500, Ben Gamari bgam...@gmail.com wrote: Excerpts from Michal Sojka's message of Mon Mar 01 12:18:55 -0500 2010: How do you propose that the backends keep track of what mail has been indexed? For example by using Xapian metadata:

Re: [notmuch] [PATCH] notmuch-reply: Use a shorter 'On, X Y wrote:' line

2010-03-02 Thread Michal Sojka
On Tue, 2 Mar 2010 13:37:42 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: Previously, we would output: 'On Thu, 25 Feb 2010 14:32:54 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote:' now it is: 'On 2010-02-25, Sebastian Spaeth wrote:' In case we don't find a '' (as indicator for

Re: [notmuch] [PATCH] notmuch-reply: Use a shorter 'On, X Y wrote:' line

2010-03-04 Thread Michal Sojka
patch applied, I got: On 2010-03-02, Michal Sojka wrote:. So I fixed that in your patch and added removal of around name. From 0555ba560fdaad3780c186b01b102670451585fb Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth sebast...@sspaeth.de Date: Tue, 2 Mar 2010 13:37:42 +0100 Subject: [PATCH] notmuch

Re: [notmuch] Debian package

2010-03-05 Thread Michal Sojka
On Fri, 05 Mar 2010, Xavier Maillard wrote: Hi, I am using Debian GNU/linux SID and notmuch and I'd like to be bleading edge with notmuch. So I am trying to figure out whether someone is maintaining a Debian package against notmuch git repository or not. If the former, that's nice. Hi, I

Re: [notmuch] Debian package

2010-03-08 Thread Michal Sojka
On Sun, 07 Mar 2010, Xavier Maillard wrote: There are probably things to tweak but there is also something not working for me. Apparentely, you have a special file named 'version' in which you store a version string and its sha1 as taken from the rev HEAD. I do not have one and thus, I can't

Re: [notmuch] [PATCH] To use compose-mail and mail-citation-hook

2010-03-18 Thread Michal Sojka
On Tue, 16 Mar 2010, Sandra Snan wrote: Emacs has an interface called compose-mail which uses whatever mailing mode that you’ve selected in mail-user-agent so if you like the message mode that’s been hard-coded into notmuch.el, (setq mail-user-agent 'message-user-agent) and this will use that.

Re: [notmuch] Tag search peculiarities

2010-03-18 Thread Michal Sojka
On Wed, 17 Mar 2010, Ben Gamari wrote: While trying perfect my initial tagging script, I have run into a very strange set of issue. In my script, I use the following to exclude mailing list traffic from my inbox, notmuch tag -new tag:new and tag:list notmuch tag -new +inbox tag:new

[notmuch] Mailstore abstraction maildir synchronization

2010-03-18 Thread Michal Sojka
Hi all, I've finally found some time to implement the mailstore abstraction was initially described in id:87ljecmnbd@steelpick.localdomain and id:87eijqlz54@steelpick.localdomain. The idea is to allow notmuch operate on different types of mail storage (e.g. mail in git repositories) and

[notmuch] [PATCH 1/4] Mailstore abstraction interface

2010-03-18 Thread Michal Sojka
of this option is the plain-file mailstore currently implemented in notmuch. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- lib/Makefile.local |2 + lib/database-private.h |1 + lib/database.cc | 15 ++-- lib/mailstore-files.c | 43 lib/mailstore

[notmuch] [PATCH 4/4] Tests for maildir-based mailstore

2010-03-18 Thread Michal Sojka
Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/t0006-maildir.sh | 113 + test/test-lib.sh |7 ++- 2 files changed, 118 insertions(+), 2 deletions(-) create mode 100755 test/t0006-maildir.sh diff --git a/test/t0006-maildir.sh b

[notmuch] [PATCH 2/4] Convert mailstore abstraction

2010-03-18 Thread Michal Sojka
library. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- lib/mailstore-files.c | 590 +++ notmuch-new.c | 611 ++--- 2 files changed, 615 insertions(+), 586 deletions(-) diff --git a/lib

Re: [notmuch] [PATCH] notmuch-new: Parse some maildir flags for labels

2010-03-22 Thread Michal Sojka
On Thu, 18 Mar 2010, Emil Sit wrote: Instead of blanket applying tag:inbox and tag:unread to all messages, when parsing a Maildir file, attempt to parse the flags encoded in the filename to determine whether to mark something as unread (and inbox). Also, parse user flagged messages and trash

Re: [notmuch] [PATCH 4/4] Tests for maildir-based mailstore

2010-03-23 Thread Michal Sojka
On Tue, 23 Mar 2010, Ruben Pollan wrote: On 16:39, Thu 18 Mar 10, Michal Sojka wrote: Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/t0006-maildir.sh | 113 + test/test-lib.sh |7 ++- 2 files changed, 118 insertions

[notmuch] [PATCH] Prevent data loss caused by SIGINT during notmuch new

2010-03-26 Thread Michal Sojka
When Ctrl-C is pressed in a wrong time during notmuch new, it can lead to removal of messages from the database even if the files were not removed. It happened at least once to me. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- notmuch-new.c |3 +++ 1 files changed, 3 insertions(+), 0

[notmuch] [PATCH v2 3/4] Add maildir-based mailstore

2010-03-26 Thread Michal Sojka
. This mailstore is enabled by putting the following to your .notmuch-config: [mailstore] type=maildir Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- lib/database.cc |7 ++ lib/mailstore-files.c | 203 - lib/mailstore.c |1 + lib

[notmuch] [PATCH v2 4/4] Tests for maildir-based mailstore

2010-03-26 Thread Michal Sojka
Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/t0006-maildir.sh | 205 + test/test-lib.sh |7 +- 2 files changed, 210 insertions(+), 2 deletions(-) create mode 100755 test/t0006-maildir.sh diff --git a/test/t0006-maildir.sh b

[notmuch] [PATCH v3 1/6] Mailstore abstraction interface

2010-03-27 Thread Michal Sojka
of this option is the plain-file mailstore currently implemented in notmuch. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- lib/Makefile.local |2 + lib/database-private.h |1 + lib/database.cc | 15 ++-- lib/mailstore-files.c | 43 + lib

[notmuch] [PATCH v3 3/6] Add maildir-based mailstore

2010-03-27 Thread Michal Sojka
with the mail store again. This mailstore is enabled by putting the following to your .notmuch-config: [mailstore] type=maildir Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- lib/database.cc |7 ++ lib/mailstore-files.c | 203 - lib

[notmuch] [PATCH v3 6/6] Add 'cat' subcommand

2010-03-27 Thread Michal Sojka
This command dumps raw message identified by filename to standard output. It uses mail store interface to get the message from the right place. notmuch.el was modified to use this command to access the raw message content (view/save attachments and view raw message). Signed-off-by: Michal Sojka

Re: [notmuch] Mailstore abstraction maildir synchronization

2010-03-27 Thread Michal Sojka
On Sat, 27 Mar 2010, Michal Sojka wrote: On Fri, 26 Mar 2010, Michal Sojka wrote: On Wed, 24 Mar 2010, Stewart Smith wrote: On Thu, 18 Mar 2010 16:39:36 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: - Only file-based storage is suported. Notmuch access the files directly

Re: [notmuch] [PATCH] Prevent data loss caused by SIGINT during notmuch new

2010-03-27 Thread Michal Sojka
On Sun, 28 Mar 2010, Sebastian Spaeth wrote: On Sun, 28 Mar 2010 00:37:00 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: On Fri, 26 Mar 2010 22:18:13 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: When Ctrl-C is pressed in a wrong time during notmuch new, it can lead to removal

Re: [notmuch] JSON based emacs UI

2010-03-27 Thread Michal Sojka
On Sun, 28 Mar 2010, Sebastian Spaeth wrote: On Mon, 22 Mar 2010 14:47:39 +, David Edmondson d...@dme.org wrote: I'm pushed the first stage of a JSON based emacs UI to the repository at http://github.com/dme/notmuch (it's in the master branch). Despite the switch to daylight savings

Re: [notmuch] [PATCH] notmuch-config: make new message tags configurable

2010-03-27 Thread Michal Sojka
On Sun, 28 Mar 2010, Ben Gamari wrote: On Fri, 12 Mar 2010 17:13:26 -0500, Ben Gamari bgamari.f...@gmail.com wrote: Add a new_tags option in the [messages] section of the configuration file to allow the user to specify which tags should be added to new messages by notmuch new. Would

[notmuch] [PATCH] Fix compilation when getline is not available

2010-03-29 Thread Michal Sojka
On Mon, 29 Mar 2010, Bhaskara Marthi wrote: Hi all, I'm trying to build notmuch on os x (master branch from today). I got the ports for gmime and xapian, and installed talloc from source, with some minor hitches (just getting talloc alone from samba failed on autoconf due to lack of

Re: [notmuch] JSON based emacs UI

2010-03-29 Thread Michal Sojka
On Mon, 29 Mar 2010, Sebastian Spaeth wrote: On Sun, 28 Mar 2010 07:46:40 +0200, Michal Sojka sojk...@fel.cvut.cz wrote: I don't think this can be solved only in Makefile. From my look at dme's repo, he adds a new subcomand 'part', which is used by the UI. So if you want to use the new UI

Re: [notmuch] [PATCH] Prevent data loss caused by SIGINT during notmuch new

2010-03-30 Thread Michal Sojka
On Mon, 29 Mar 2010, spaetz wrote: hehe, this version compiles but has the logic inverted. Removing the ! from your patch makes it actually work as intended :--). Right! I should definitely be more careful even for such a trivial patches :) It's interesting, that in my branch, I have no

[notmuch] [PATCH] Prevent data loss caused by SIGINT during notmuch new

2010-03-30 Thread Michal Sojka
When Ctrl-C is pressed in a wrong time during notmuch new, it can lead to removal of messages from the database even if the files were not removed. It happened at least once to me. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- notmuch-new.c |3 +++ 1 files changed, 3 insertions(+), 0

Re: [notmuch] Notmuch shared library

2010-04-01 Thread Michal Sojka
On Thu, 01 Apr 2010, Carl Worth wrote: Finally, I'm a tiny bit annoyed that now after a fresh checkout of notmuch and make that one can't easily run ./notmuch without either installing the library (or fiddling with LD_LIBRARY_PATH). I've got some ideas on how to simplify that, but I'm not sure

[notmuch] [PATCH] Makefile: Create include directory when installing headers

2010-04-01 Thread Michal Sojka
When I wanted to create a debian package from the current master, make install failed because of non-existent include directory. This patch fixes this minor issue. --- lib/Makefile.local |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/Makefile.local

Re: [notmuch] Notmuch shared library

2010-04-01 Thread Michal Sojka
On Thu, 01 Apr 2010, Carl Worth wrote: On Thu, 1 Apr 2010 13:24:22 +0200, martin f krafft madd...@madduck.net wrote: also sprach Michal Sojka sojk...@fel.cvut.cz [2010.04.01.1310 +0200]: this can be solved by the following patch, but I don't know how portable it is. You can see

Re: [notmuch] [Sebastian Spaeth] Pull requests

2010-04-08 Thread Michal Sojka
On Wed, 07 Apr 2010, micah anderson wrote: On 2010-03-27, micah anderson wrote: On Thu, 25 Mar 2010 22:50:52 -0400, micah anderson mi...@riseup.net wrote: On Mon, 01 Mar 2010 15:57:00 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: From git repository

Re: Plans for the 0.2 release (this week)

2010-04-08 Thread Michal Sojka
On Wed, 07 Apr 2010, Carl Worth wrote: For the upcoming 0.2 release, here are some things that I would like to have in place: * Anything else that people want, (especially things that already exist and that you're already using). Support for maildir flags on import would be great

[PATCH 2/4] Conversion to mailstore abstraction

2010-04-08 Thread Michal Sojka
of notmuch library, as can be seen by git diff HEAD^ -C Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- lib/Makefile.local |1 + notmuch-new.c = lib/mailstore-files.c | 406 lib/mailstore.c|5 - notmuch-new.c

Re: Plans for the 0.2 release (this week)

2010-04-08 Thread Michal Sojka
On Wed, 07 Apr 2010, Carl Worth wrote: * Anything else that people want, (especially things that already exist and that you're already using). Support for maildir flags on import would be great here. I'm still waiting to see a complete solution I think. So keep the patches

Re: [RFC] reordering and cleanup of thread authors

2010-04-09 Thread Michal Sojka
On Wed, 07 Apr 2010, Dirk Hohndel wrote: This is based in part on some discussion on IRC today. When a thread is displayed in the search results, previously the authors were always displayed in chronological order. But if only part of the thread matches the query, that may or may not be the

Re: [notmuch] [Sebastian Spaeth] Pull requests

2010-04-09 Thread Michal Sojka
On Fri, 09 Apr 2010, Sebastian Spaeth wrote: On 2010-04-08, Michal Sojka wrote: I think that the patch you sent was not the latest version. The latest is in id:1265122868-12133-1-git-send-email-sojk...@fel.cvut.cz, but it is not rebased to the current master. Not sure what I am doing

Re: [RFC] reordering and cleanup of thread authors

2010-04-09 Thread Michal Sojka
On Fri, 09 Apr 2010, Dirk Hohndel wrote: On Fri, 09 Apr 2010 08:07:27 +0200, Michal Sojka sojk...@fel.cvut.cz wrote: On Wed, 07 Apr 2010, Dirk Hohndel wrote: This is based in part on some discussion on IRC today. When a thread is displayed in the search results, previously the authors

Re: Plans for the 0.2 release (this week)

2010-04-10 Thread Michal Sojka
On Sat, 10 Apr 2010, Carl n∅tmuch 䚳 Worth wrote: On Fri, 09 Apr 2010 09:35:07 +0200, Sebastian Spaeth sebast...@sspaeth.de wrote: On 2010-04-09, Michal Sojka wrote: Perhaps Carl should get more Nørwég¡añ friends, :-). Or Görmän or 中文 Are you all trying to show a problem here

Re: Plans for the 0.2 release (this week)

2010-04-10 Thread Michal Sojka
On Sat, 10 Apr 2010, Jameson Rollins wrote: On Sat, 10 Apr 2010 11:02:19 +0200, Michal Sojka sojk...@fel.cvut.cz wrote: On Sat, 10 Apr 2010, Carl n∅tmuch 䚳 Worth wrote: Are you all trying to show a problem here? All of the above comes through fine. Perhaps it's only with non-ASCII

Re: Initial attempt at a merge window for notmuch

2010-04-10 Thread Michal Sojka
On Fri, 09 Apr 2010, Mark Anderson wrote: On Fri, 9 Apr 2010 11:29:20 -0500, Carl Worth cwo...@cworth.org wrote: Of course, it's the same set-theoretic operation I described earlier. I want the set of threads having messages matching: tag:notmuch and date-range intersected with

Re: [PATCH] Mailstore abstraction v4 - part 2 (maildir synchronization)

2010-04-12 Thread Michal Sojka
On Mon, 12 Apr 2010, martin f krafft wrote: also sprach Michal Sojka sojk...@fel.cvut.cz [2010.04.08.1713 +0200]: I'm working on the solution - if the mailstore cannot open the message with the name passed, it tries different names with different maildir flags. Wouldn't

Re: [PATCH] Mailstore abstraction v4 - part 2 (maildir synchronization)

2010-04-12 Thread Michal Sojka
On Mon, 12 Apr 2010, martin f krafft wrote: also sprach Michal Sojka sojk...@fel.cvut.cz [2010.04.12.1347 +0200]: Wouldn't it be better to postpone synchronisation of the tags until after emacs is done with the message? Theoretically, it would be possible, but if, for some reason

Re: [PATCH] notmuch new --new-tags=tags...

2010-04-12 Thread Michal Sojka
On Mon, 12 Apr 2010, Jameson Rollins wrote: On Mon, 12 Apr 2010 10:00:37 +0200, Sebastian Spaeth sebast...@sspaeth.de wrote: On 2010-04-10, Anthony Towns wrote: The attached patch makes notmuch new --new-tags=unread,new set the unread and new tags on any new mail it finds rather than

Re: [PATCH] emacs: Add notmuch-hello.el, a friendly frontend to notmuch

2010-04-13 Thread Michal Sojka
On Mon, 12 Apr 2010, David Edmondson wrote: commit e55dc251b9e8001fe16873fadac565563e606d69 Author: David Edmondson d...@dme.org Date: Mon Apr 12 11:12:23 2010 +0100 emacs: Add notmuch-hello.el, a friendly frontend to notmuch Hi dme, thanks for the great patch. For next time, could

Re: [PATCH] emacs: when archiving move the cursor depending on the sort order.

2010-04-14 Thread Michal Sojka
On Tue, 13 Apr 2010, Servilio Afre Puentes wrote: The current hardcoded behaviour will not take you to the next unread thread when the sort order is set to newer-first from the default of older-first. Is this really what we want? If I sort messages by newest first, it menas that I want to

Re: [PATCH 1/4] Mailstore abstraction interface

2010-04-14 Thread Michal Sojka
On Tue, 13 Apr 2010, Carl Worth wrote: On Thu, 8 Apr 2010 16:42:43 +0200, Michal Sojka sojk...@fel.cvut.cz wrote: The goal of mailstore abstraction is to allow notmuch to store tags together with email messages. The abstract interface is needed because people want to use different ways

Re: [PATCH] First tests for JSON output and UTF-8 in mail body and subject

2010-04-16 Thread Michal Sojka
But you might actually like that change since it's one you requested in your first version of the modular test suite. I'm dropping the annoying execute_expecting macro that both runs notmuch and tests the output. There's now a much cleaner separation such as: output=$($NOTMUCH search

[PATCH 2/2] emacs: Access raw messages through cat subcommand

2010-04-20 Thread Michal Sojka
notmuch-command variable to contain the name of a script containing: ssh u...@host notmuch $@ If the ssh client has enabled connection sharing (ControlMaster option in OpenSSH), the emacs interface is almost as responsive as with local invocation. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz

[PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread Michal Sojka
to operate with a remote database. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- NEWS |3 +++ notmuch-client.h |3 +++ notmuch-show.c | 39 +++ notmuch.c|4 4 files changed, 49 insertions(+), 0 deletions(-) diff --git

Re: [PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread Michal Sojka
On 20.4.2010 09:21, David Edmondson wrote: On Tue, 20 Apr 2010 09:16:32 +0200, Michal Sojkasojk...@fel.cvut.cz wrote: This command dumps a raw message identified by a filename to the standard output. It allows MUAs to access the messages for piping, attachment manipulation, etc. in the

Re: [PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread Michal Sojka
On Tue, 20 Apr 2010, David Edmondson wrote: On Tue, 20 Apr 2010 12:14:56 +0200, Michal Sojka sojk...@fel.cvut.cz wrote: I'm puzzled why you chose to pass a filename as the argument to 'cat' rather than a message id (id:f...@bar.com)? The reason is that I want be able to distinguish

Re: [PATCH 1/2] Add 'cat' subcommand

2010-04-22 Thread Michal Sojka
On Thu, 22 Apr 2010, Carl Worth wrote: On Tue, 20 Apr 2010 12:14:56 +0200, Michal Sojka sojk...@fel.cvut.cz wrote: On 20.4.2010 09:21, David Edmondson wrote: I'm puzzled why you chose to pass a filename as the argument to 'cat' rather than a message id (id:f...@bar.com)? The reason

Re: [PATCH 1/2] Add 'cat' subcommand

2010-04-22 Thread Michal Sojka
On Thu, 22 Apr 2010, Anthony Towns wrote: On Thu, Apr 22, 2010 at 12:37, Dirk Hohndel hohn...@infradead.org wrote: On Wed, 21 Apr 2010 17:44:03 -0700, Carl Worth cwo...@cworth.org wrote: So I'd prefer to have this command behave just like all others and use the same naming.      

[PATCH] test: Set fixed time zone

2010-04-23 Thread Michal Sojka
) thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; search by to (inbox unread) By setting a fixed time zone in the test script, these problems should be eliminated. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/notmuch-test |2 ++ 1 files changed, 2 insertions(+), 0 deletions

Re: sort order regression

2010-04-23 Thread Michal Sojka
On Fri, 23 Apr 2010, Sebastian Spaeth wrote: Ohh, that is a good point. Maybe I should write some :-). Is the test suite going to be changed any day now or does it still make sense to write tests for the monolitic test suite? I do not have a plan to modularize the test suite in a near future.

Re: notmuch segfault

2010-04-23 Thread Michal Sojka
On Fri, 23 Apr 2010, Sebastian Spaeth wrote: Can it be that in thread.cc in _thread_add_matched_message () ... subject = notmuch_message_get_header (message, subject); if ((strncasecmp (subject, Re: , 4) == 0) || ... If the underlying message disappeared, get_header will return

Re: sort order regression

2010-04-26 Thread Michal Sojka
Want to replay all the git test-suite commits other than any from the person with the missing ack? That should get us pretty close to the current state in git, would give us code we could use, and might even make it possible for us to submit improvements directly to the upstream git

[PATCH] test: Comment why we need to set TZ

2010-04-26 Thread Michal Sojka
--- test/notmuch-test |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/test/notmuch-test b/test/notmuch-test index 7082344..dc413f7 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -1,6 +1,10 @@ #!/bin/bash set -e +# Messages contain time/date values with

[PATCH v2 0/5] Git-based modularization of test suite

2010-05-10 Thread Michal Sojka
Hi, Git's test suite was finally reslicensed and we can use it for notmuch. Here is the converted and modularized version of notmuch-test script which uses git's test-lib.sh. The conversion was done semi-automatically, so I hope I didn't introduce to much errors in the tests. Michal Sojka (5

[PATCH v2 2/5] Update test framework for use with notmuch

2010-05-10 Thread Michal Sojka
This removes Git specific things from the test-lib.sh and adds helper functions for notmuch taken from Carl's notmuch-test script. README is also slightly modified to reflect the current state. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/Makefile |1 + test/README

[PATCH v2 1/5] Copy test framework from Git

2010-05-10 Thread Michal Sojka
. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/Makefile | 48 +++ test/README | 297 test/aggregate-results.sh | 34 ++ test/t-basic.sh | 389 + test/test-lib.sh | 832

[PATCH v2 3/5] test: Update helper functions

2010-05-10 Thread Michal Sojka
Modify the helper functions to work with git-based test suite i.e. 1) Quote arguments where it is necessary. 2) Do not use $NOTMUCH. It doesn't exist and $PATH is set to the build tree 3) Modify pass_if_equal to fit into the git-based test suite. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz

[PATCH 1/4] lib: Return added message even if it already was in the database

2010-05-11 Thread Michal Sojka
--- lib/database.cc |3 ++- lib/notmuch.h |3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 6afc8d9..694b7ec 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -1613,7 +1613,8 @@ notmuch_database_add_message

[PATCH 0/4] Maildir synchronization

2010-05-11 Thread Michal Sojka
patch needs git-based test suite patches sent yesterday. Michal Sojka (4): lib: Return added message even if it already was in the database Maildir synchronization Make maildir synchronization configurable Tests for maildir synchronization lib/database-private.h |2 +- lib

[PATCH 2/4] Maildir synchronization

2010-05-11 Thread Michal Sojka
This patch allows bi-directional synchronization between maildir flags and certain tags. The flag-to-tag mapping is defined by flag2tag array. The synchronization works this way: 1) Whenever notmuch new is executed, the following happens: o New messages are tagged with configured new_tags.

[PATCH 3/4] Make maildir synchronization configurable

2010-05-11 Thread Michal Sojka
This adds group [maildir] and key 'sync_level' to the configuration file. The value of sync_level is used to control how the synchronization happens. The default value is no synchronization. --- lib/database-private.h |2 +- lib/database.cc|9 + lib/message.cc |

[PATCH 4/4] Tests for maildir synchronization

2010-05-11 Thread Michal Sojka
Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/t0011-maildir-sync.sh | 216 test/test-lib.sh | 11 ++- 2 files changed, 223 insertions(+), 4 deletions(-) create mode 100755 test/t0011-maildir-sync.sh diff --git a/test/t0011

Re: [PATCH] Customize saved search order separately from regular search order

2010-06-04 Thread Michal Sojka
On Fri, 04 Jun 2010, Carl Worth wrote: Keith happens to use saved searches only for subsets of his inbox and in that case, it makes a lot of sense to see the results of all of these messages in an oldest-first order. Hi, I used saved searches mostly this way until a few days ago, when I wrote

[PATCH RFC] notmuch-hello: What's in your inbox

2010-06-04 Thread Michal Sojka
for me (e.g. unread). I'm not sure whether the patch applies to recent dme's notmuch-hello updates. If not, I'll rebase it as soon as these patches appear in master. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- emacs/notmuch-hello.el | 39 +-- 1 files

[PATCH v3 3/5] test: Update helper functions

2010-06-10 Thread Michal Sojka
Modify the helper functions to work with git-based test suite i.e. 1) Quote arguments where it is necessary. 2) Do not use $NOTMUCH. It is equal to notmuch since $PATH is set to the build tree. 3) Modify pass_if_equal to fit into the git-based test suite. Signed-off-by: Michal Sojka sojk

[PATCH v3 0/5] Git-based modularization of test suite

2010-06-10 Thread Michal Sojka
was remvoved from the title in t0005-reply.sh Michal Sojka (5): Copy test framework from Git Update test framework for use with notmuch test: Update helper functions Convert the actual tests to the new framework test: Set all times to UTC test/Makefile| 49 ++ test

[PATCH v3 2/5] Update test framework for use with notmuch

2010-06-10 Thread Michal Sojka
This removes Git specific things from the test-lib.sh and adds helper functions for notmuch taken from Carl's notmuch-test script. README is also slightly modified to reflect the current state. Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/Makefile |1 + test/README

  1   2   3   4   5   6   7   8   9   >