Re: notmuch-haskell

2010-09-23 Thread Thomas Jost
Le 23/09/2010 18:17, Daniel Goldin a écrit : When I commented out (notmuch-fcc-dirs t), smtpmail started working again. Any thoughts? notmuch-fcc-dirs should be a string or a list, not just t. If it's a string, it indicates in which maildir your sent messages will be saved. If it's a list, you

Re: Multiple sender identities (composing)

2011-05-16 Thread Thomas Jost
On Mon, 16 May 2011 09:52:32 -0700, Jameson Graef Rollins jroll...@finestructure.net wrote: On Mon, 16 May 2011 11:52:43 +0200, Thomas Jost schno...@schnouki.net wrote: On Mon, 16 May 2011 19:29:07 +1000, Stewart Smith stew...@flamingspork.com wrote: Thought I'd share this bit of my

Re: [PATCH] emacs: Allow user to choose From address when composing a new message.

2011-05-25 Thread Thomas Jost
On Tue, 24 May 2011 15:02:01 -0700, Carl Worth cwo...@cworth.org wrote: In order to select a From address, the user simply presses M instead of m to begin composing a message. By default the list of names/addresses to be used during completion will be automatically generated by the settings in

[PATCH 1/4] emacs: Allow the user choose the From address when composing a new message from notmuch-show-mode too.

2011-05-25 Thread Thomas Jost
--- emacs/notmuch-show.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 825988c..93f46ac 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -847,7 +847,8 @@ function is used. (define-key map

[PATCH 2/4] emacs: Move the prompt for sender code to a new function.

2011-05-25 Thread Thomas Jost
This allows the code to be reused in different functions without duplicating it. --- emacs/notmuch-mua.el | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index cd4d75d..0bde02c 100644 --- a/emacs/notmuch-mua.el +++

[PATCH 3/4] emacs: Allow the user to choose the From address when forwarding a message.

2011-05-25 Thread Thomas Jost
--- emacs/notmuch-mua.el |8 emacs/notmuch-show.el |7 +++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 0bde02c..7c08a6e 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -182,6 +182,14 @@

[PATCH 4/4] emacs: Allow the user to choose the From address when replying to a message.

2011-05-25 Thread Thomas Jost
--- emacs/notmuch-mua.el |9 - emacs/notmuch-show.el |6 ++ emacs/notmuch.el |7 +++ 3 files changed, 21 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 7c08a6e..d04e69c 100644 --- a/emacs/notmuch-mua.el +++

Re: [PATCH] emacs: Allow user to choose From address when composing a new message.

2011-05-26 Thread Thomas Jost
On Wed, 25 May 2011 15:17:05 -0700, Carl Worth cwo...@cworth.org wrote: I'll also send a few additional patches that make it possible to choose the From address when forwarding a message and when replying to a message. The only real concern I have with the series is that it grabs 'R' for

[PATCH v2 1/4] emacs: Helpers needed for the user to be able to choose the From address when composing a new message

2011-05-26 Thread Thomas Jost
This adds functions and variables needed for this feature to be implemented. Once it's done, the user will be able to use a prefix argument (e.g. pressing C-u m instead of m) and be able to select a From address. By default the list of names/addresses to be used during completion will be

[PATCH v2 2/4] emacs: Allow the user to choose the From address when composing a new message

2011-05-26 Thread Thomas Jost
When pressing C-u m, the user will be prompted for the identity to use. --- emacs/notmuch-hello.el |2 +- emacs/notmuch-mua.el | 11 +++ emacs/notmuch-show.el |2 +- emacs/notmuch.el |2 +- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git

[PATCH v2 3/4] emacs: Allow the user to choose the From address when forwarding a message

2011-05-26 Thread Thomas Jost
When pressing C-u f, the user will be prompted for the identity to use. --- emacs/notmuch-mua.el | 14 ++ emacs/notmuch-show.el |6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 74c9fc1..1b777d9 100644

[PATCH v2 4/4] emacs: Allow the user to choose the From address when replying to a message

2011-05-26 Thread Thomas Jost
When pressing C-u r, the user will be prompted for the identity to use. --- emacs/notmuch-mua.el | 13 - emacs/notmuch-show.el |6 +++--- emacs/notmuch.el |6 +++--- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/emacs/notmuch-mua.el

[PATCH] emacs: Add a customization allowing to always prompt for the From address when composing a new message

2011-05-26 Thread Thomas Jost
--- Hi Jameson, Here it is :) I'm sure it will be useful for many other people too, including myself. To be applied on top of my other patches, then you can set notmuch-always-prompt-for-sender to t. Regards, Thomas emacs/notmuch-mua.el | 11 --- 1 files changed, 8 insertions(+), 3

[PATCH 1/2] emacs: Don't always prompt for the From address when replying

2011-05-27 Thread Thomas Jost
When replying, the From: address is already filled in by notmuch reply, so most of the time there is no need to prompt the user for it. --- Hi Jameson, You're right, this is mostly annoying when replying to messages. Here's a fix. Regards, Thomas emacs/notmuch-mua.el |7 +-- 1 files

[PATCH 2/2] emacs: Cleaner interface when prompting for sender address

2011-05-27 Thread Thomas Jost
Most of the time, every entry in the list of identities has the same user name part. It can then be filled in automatically, and the user can only be prompted for the email address, which makes the interface much cleaner. --- Hi Jameson, Once again, a very good suggestion. I had doubts at first

[RFC] Several minor enhancements to the Emacs interface

2011-05-31 Thread Thomas Jost
Hi list, The thread regarding multiple sender identities seems to have been of interest for several people, so I'd like to share a few other snippets From my Emacs configuration file. Please tell me what you think of them. If you like them, I'd be glad to write some patches so they can be merged

[PATCH] test: run emacs inside tmux if screen is not available

2011-07-20 Thread Thomas Jost
Before this change, the test suite reported many failed tests on machines where screen is not installed (which is the case of many *BSD systems). This patch makes the test suite try to use tmux, another terminal multiplexer, if screen is not available. --- test/test-lib.sh | 13 +++-- 1

[PATCH] libnotmuch: only build symbols list after the modules are built

2011-07-20 Thread Thomas Jost
If the notmuch.sym target does not explicitly depend on $(libnotmuch_modules), gen-version-script.sh may be run before all the .o files are created. This can be observed when doing a parallel build on a machine with many cores: $ make -j ... sh lib/gen-version-script.sh lib/notmuch.h

Re: [PATCH] test: run emacs inside tmux if screen is not available

2011-07-20 Thread Thomas Jost
On Wed, 20 Jul 2011 10:28:38 -0700, Jameson Graef Rollins jroll...@finestructure.net wrote: Non-text part: multipart/signed On Wed, 20 Jul 2011 17:37:35 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: On Wed, 20 Jul 2011 14:36:36 +0200, Thomas Jost schno...@schnouki.net wrote

[PATCH] libnotmuch: only build symbols list after the modules are built

2011-07-20 Thread Thomas Jost
If the notmuch.sym target does not explicitly depend on $(libnotmuch_modules), gen-version-script.sh may be run before all the .o files are created, for example when doing a parallel build on a machine with many cores. --- Hi David, Here's an updated version of the patch with a shorter commit

[PATCH] python: fix Message.get_filenames()

2011-09-30 Thread Thomas Jost
Previously, the Filenames generator only yielded *one* filename before returning, making Message.get_filenames() behave as Message.get_filename(). This commit fixes this incorrect behavior: now the generator yields all the filenames, as expected. --- bindings/python/notmuch/filename.py | 10

[PATCH 4/4] emacs: add notmuch-hello-hook

2011-10-03 Thread Thomas Jost
--- emacs/notmuch-hello.el |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 1cf95d7..00bb5ce 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -111,6 +111,11 @@ So: (integer :tag

[PATCH 1/4] emacs: Add a face for crypto parts headers

2011-10-03 Thread Thomas Jost
--- emacs/notmuch-crypto.el |5 + emacs/notmuch-show.el |4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el index f03266f..673ebb8 100644 --- a/emacs/notmuch-crypto.el +++ b/emacs/notmuch-crypto.el @@ -36,6 +36,11

[PATCH 0/4] Several minor Emacs enhancements

2011-10-03 Thread Thomas Jost
it really is. - The last one creates a hook run after notmuch-hello, just like there are hooks run after notmuch-search and notmuch-show. Regards, Thomas Thomas Jost (4): emacs: Add a face for crypto parts headers emacs: Support a message-mode switch function in notmuch-mua emacs: rename

[PATCH 2/4] emacs: Support a message-mode switch function in notmuch-mua

2011-10-03 Thread Thomas Jost
--- emacs/notmuch-mua.el | 15 +-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 8824b08..68c344e 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -31,6 +31,14 @@ :group 'notmuch :type 'hook)

[PATCH 01/13] test: define a helper function for defining prereqs on executables

2011-10-04 Thread Thomas Jost
While test_expect_success could be used to define these prereqs, this is probably not a good idea: if a prereq is not available, using test_expect_success would result in a test being reported as FAILED at the end of the test suite (and its dependencies as skipped). On the contrary, when using

[PATCH 00/13] Test prereqs and screen-based Emacs tests

2011-10-04 Thread Thomas Jost
to dependent 'emacs' tests test: add 'Emacs' prereq to dependent 'emacs-large-search-buffer' tests Thomas Jost (2): test: define a helper function for defining prereqs on executables test: make smtp-dummy work with Emacs 24 emacs/notmuch-lib.el | 15 --- emacs/notmuch-show.el

[PATCH 02/13] test: add 'GnuPG' prereq to dependent 'crypto' tests

2011-10-04 Thread Thomas Jost
From: Pieter Praet pie...@praet.org Adds a new test that checks for the presence of 'gpg', and adds that test as a prereq to all subsequent tests that rely on GnuPG. This causes tests with unmet dependencies to be skipped. Signed-off-by: Pieter Praet pie...@praet.org --- test/crypto | 35

[PATCH 04/13] test: add 'Emacs' prereq to dependent 'emacs' tests

2011-10-04 Thread Thomas Jost
From: Pieter Praet pie...@praet.org Adds a new test that checks for the presence of 'emacs', and adds that test as a prereq to all subsequent tests that rely on Emacs. This causes tests with unmet dependencies to be skipped. Signed-off-by: Pieter Praet pie...@praet.org --- test/emacs | 71

[PATCH 03/13] test: add 'Emacs' prereq to dependent 'crypto' tests

2011-10-04 Thread Thomas Jost
From: Pieter Praet pie...@praet.org Adds a new test that checks for the presence of 'emacs', and adds that test as a prereq to all subsequent tests that rely on Emacs. This causes tests with unmet dependencies to be skipped. Right now, all crypto tests do depend on Emacs, because it is used to

[PATCH 05/13] test: add 'Emacs' prereq to dependent 'emacs-large-search-buffer' tests

2011-10-04 Thread Thomas Jost
From: Pieter Praet pie...@praet.org Adds a new test that checks for the presence of 'emacs', and adds that test as a prereq to all subsequent tests that rely on Emacs. This causes tests with unmet dependencies to be skipped. Signed-off-by: Pieter Praet pie...@praet.org ---

[PATCH 06/13] test: run emacs inside screen

2011-10-04 Thread Thomas Jost
From: Dmitry Kurochkin dmitry.kuroch...@gmail.com Before the change, emacs run in daemon mode without any visible buffers. Turns out that this affects emacs behavior in some cases. In particular, `window-end' function returns `point-max' instead of the last visible position. That makes it hard

[PATCH 07/13] test: avoid using screen(1) configuration files

2011-10-04 Thread Thomas Jost
From: Dmitry Kurochkin dmitry.kuroch...@gmail.com Set SCREENRC and SYSSCREENRC environment variables to /dev/null as suggested by Jim Paris to avoid potential problems with screen(1) configuration files. --- test/test-lib.sh |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH 08/13] test: do not set frame width in emacs

2011-10-04 Thread Thomas Jost
From: Dmitry Kurochkin dmitry.kuroch...@gmail.com No need for `set-frame-width' in emacs tests since it runs in screen now. --- test/test-lib.el |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/test/test-lib.el b/test/test-lib.el index a783936..97ae593 100644 ---

[PATCH 09/13] test: `notmuch-show-advance-and-archive' with invisible signature

2011-10-04 Thread Thomas Jost
From: Dmitry Kurochkin dmitry.kuroch...@gmail.com Add Emacs test to check that `notmuch-show-advance-and-archive' works for the last message in thread with invisible signature. --- test/emacs | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/test/emacs

[PATCH 10/13] emacs: improve hidden signatures handling in notmuch-show-advance-and-archive

2011-10-04 Thread Thomas Jost
From: Dmitry Kurochkin dmitry.kuroch...@gmail.com Use `previous-single-char-property-change' instead of going through each character by hand and testing it's visibility. This fixes `notmuch-show-advance-and-archive' to work for the last message in thread with hidden signature. ---

[PATCH 11/13] emacs: remove no longer used functions from notmuch-show.el

2011-10-04 Thread Thomas Jost
From: Dmitry Kurochkin dmitry.kuroch...@gmail.com Remove `notmuch-show-move-past-invisible-backward' and `notmuch-show-move-past-invisible-forward' functions which are unused. --- emacs/notmuch-show.el |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git

[PATCH 12/13] emacs: remove unused `point-invisible-p' function

2011-10-04 Thread Thomas Jost
From: Dmitry Kurochkin dmitry.kuroch...@gmail.com `point-invisible-p' does not work correctly when `invisible' property is a list. There are standard `invisible-p' and related functions that should be used instead. --- emacs/notmuch-lib.el | 15 --- 1 files changed, 0

[PATCH 13/13] test: make smtp-dummy work with Emacs 24

2011-10-04 Thread Thomas Jost
In Emacs 24, a space is expected after a SMTP response code. If we don't respect that, smtpmail-send-it will wait forever. --- test/smtp-dummy.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c index 9da8202..021af11 100644 ---

Re: [PATCH 2/4] emacs: Support a message-mode switch function in notmuch-mua

2011-10-11 Thread Thomas Jost
On Mon, 10 Oct 2011 08:50:52 -0700, Jameson Graef Rollins jroll...@finestructure.net wrote: However, I find the customization variable a bit clunky. Since I wasn't presented with any options in the customization, I didn't know what to put in. I copy and pasted switch-to-buffer-other-frame

[PATCH v2] emacs: Support a message-mode switch function in notmuch-mua

2011-10-11 Thread Thomas Jost
--- emacs/notmuch-mua.el | 21 +++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 8824b08..639407f 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -31,6 +31,20 @@ :group 'notmuch :type

Re: [PATCH] Separate Emacs miscellaneous files directory from Emacs code directory.

2011-10-25 Thread Thomas Jost
On Mon, 24 Oct 2011 22:13:11 -0300, David Bremner da...@tethera.net wrote: On Mon, 24 Oct 2011 20:34:58 +0200, Amadeusz Żołnowski aide...@aidecoe.name wrote: --emacsetcdir was added, but it's set default to the same value as --emacslispdir for backward compatibility. --- At a quick

Re: [PATCH 2/4] emacs: Support a message-mode switch function in notmuch-mua

2011-10-25 Thread Thomas Jost
On Tue, 18 Oct 2011 07:46:48 -0700, Jameson Graef Rollins jroll...@finestructure.net wrote: On Tue, 11 Oct 2011 21:49:48 +0200, Thomas Jost schno...@schnouki.net wrote: Another question about this feature: how do you make the window (frame) go away after the email is sent? I do

[PATCH] emacs: Let the user choose where to compose new mails

2011-10-25 Thread Thomas Jost
--- emacs/notmuch-mua.el | 37 +++-- 1 files changed, 35 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 8824b08..ebc922f 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -31,6 +31,34 @@ :group

Re: how do you do everyday mail catchup with notmuch? (was: Re: search for date received possible?)

2011-10-25 Thread Thomas Jost
On Tue, 25 Oct 2011 19:31:01 +0200, Gregor Zattler telegr...@gmx.net wrote: With a convectional email setup, emails are filtered in one/several folders and one looks in these folders for new emails which weren't there last time. (Especially outlook) users get fooled if important emails have

Re: Emacs: notmuch-show-mode failing to actually update tags

2011-10-27 Thread Thomas Jost
On Thu, 27 Oct 2011 10:23:48 +0200, Erlend Simonsen m...@fudgie.org wrote: These seemed to fail: FAIL Add tag from notmuch-show view --- emacs.11.expected 2011-10-27 08:04:40.542525380 + +++ emacs.11.output 2011-10-27 08:04:40.544525353 + @@ -1 +1 @@

Re: [Patch] Fix Emacs interface bug dealing with invisible text

2011-10-30 Thread Thomas Jost
On Fri, 28 Oct 2011 20:29:49 -0400, Ivy Foster joyfulg...@archlinux.us wrote: Hey, folks, I'm new to notmuch, but like much of what I've tried so far. Thanks to all the contributors! The following patch fixes a bug I've noticed in Emacs's notmuch-show mode. Specifically, if you: -

Re: [PATCH 3/3] Add notmuch-hello-mode-hook

2011-10-30 Thread Thomas Jost
On Sat, 29 Oct 2011 12:35:04 -0400, Ivy Foster joyfulg...@archlinux.us wrote: The following patch adds a mode-hook to notmuch-hello-mode. Not much else to say, really. I agree it's useful, but id:1317643438-31272-5-git-send-email-schno...@schnouki.net ;) (the hooks are not run from the same

[PATCH v2] emacs: Let the user choose where to compose new mails

2011-11-09 Thread Thomas Jost
--- emacs/notmuch-mua.el | 40 ++-- 1 files changed, 38 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 8824b08..90834d6 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -31,6 +31,21 @@ :group

Re: [PATCH 06/13] test: run emacs inside screen

2011-11-10 Thread Thomas Jost
On Wed, 09 Nov 2011 23:36:12 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: So I just found out (via git bisect) that this patch is causing tests that use smtp-dummy to hang for me. Has no one else seen the same problem? Any suggestions about what the issue could be?

[PATCH 1/6] test: define a helper function for defining prereqs on executables

2011-11-16 Thread Thomas Jost
While test_expect_success could be used to define these prereqs, this is probably not a good idea: if a prereq is not available, using test_expect_success would result in a test being reported as FAILED at the end of the test suite (and its dependencies as skipped). (Thanks to Pieter Praet for

[PATCH 0/6] Rebase of Pieter's set test prereqs

2011-11-16 Thread Thomas Jost
' tests Thomas Jost (2): test: define a helper function for defining prereqs on executables test: check if emacs and dtach are available in test_emacs() test/crypto| 46 +++--- test/emacs | 82

[PATCH 3/6] test: add 'GnuPG' prereq to dependent 'crypto' tests

2011-11-16 Thread Thomas Jost
From: Pieter Praet pie...@praet.org Adds a new test that checks for the presence of 'gpg', and adds that test as a prereq to all subsequent tests that rely on GnuPG. This causes tests with unmet dependencies to be skipped. Signed-off-by: Pieter Praet pie...@praet.org --- test/crypto | 35

[PATCH 6/6] test: add 'Emacs' prereq to dependent 'emacs-large-search-buffer' tests

2011-11-16 Thread Thomas Jost
From: Pieter Praet pie...@praet.org Adds a new test that checks for the presence of 'emacs', and adds that test as a prereq to all subsequent tests that rely on Emacs. This causes tests with unmet dependencies to be skipped. Signed-off-by: Pieter Praet pie...@praet.org ---

[PATCH 4/6] test: add 'Emacs' prereq to dependent 'crypto' tests

2011-11-16 Thread Thomas Jost
From: Pieter Praet pie...@praet.org Adds a new test that checks for the presence of 'emacs', and adds that test as a prereq to all subsequent tests that rely on Emacs. This causes tests with unmet dependencies to be skipped. Right now, all crypto tests do depend on Emacs, because it is used to

[PATCH 5/6] test: add 'Emacs' prereq to dependent 'emacs' tests

2011-11-16 Thread Thomas Jost
From: Pieter Praet pie...@praet.org Adds a new test that checks for the presence of 'emacs', and adds that test as a prereq to all subsequent tests that rely on Emacs. This causes tests with unmet dependencies to be skipped. Signed-off-by: Pieter Praet pie...@praet.org Conflicts:

Re: [PATCH 0/9] test: (hopefully) better test prerequisites

2011-11-17 Thread Thomas Jost
On Thu, 17 Nov 2011 05:56:17 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: Hi all. The following patch series is an attempt to introduce proper dependencies for external binaries in a less intrusive way than [1]. The primary aim was to avoid changing every subtest that uses

Re: [PATCH 0/6] Rebase of Pieter's set test prereqs

2011-11-17 Thread Thomas Jost
On Wed, 16 Nov 2011 21:50:17 +0100, Pieter Praet pie...@praet.org wrote: On Wed, 16 Nov 2011 15:33:49 +0100, Thomas Jost schno...@schnouki.net wrote: Hello list, This is another rebased version of Pieter's series to add GPG and Emacs as test prereqs, plus some additions on my own

[PATCH] python: use wrapped notmuch_*_t types instead of raw pointers

2011-12-06 Thread Thomas Jost
Now that types are checked correctly, we also need to make sure that all the arguments actually are instances of these types. Otherwise the function calls will fail and raise an exception similar to this one: ctypes.ArgumentError: argument 3: type 'exceptions.TypeError': expected

[PATCH 2/2] test: use python2 instead of python if available

2011-12-07 Thread Thomas Jost
Some distros (Arch Linux) ship Python as python2 and Python 3 as python. Checking for python2 is necessary for the Python tests to work on these platforms. --- test/test-lib.sh |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/test/test-lib.sh b/test/test-lib.sh

[PATCH 1/5] Fix comments about what is stored in the database

2011-12-13 Thread Thomas Jost
Commit 567bcbc2 introduced two new values for each message (content of the From and Subject headers), but the comments about the database schema had not been updated accordingly. --- lib/database.cc |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/database.cc

[PATCH 0/5] Store message modification times in the DB

2011-12-13 Thread Thomas Jost
with a range syntax. - the fourth commit adds the MTIME to the JSON output of notmuch show. - the fifth and last commit adds Message.get_mtime() to the Python bindings. Please tell me what you think of this. Best regards, Thomas Thomas Jost (5): Fix comments about what is stored in the database

[PATCH 2/5] lib: Add a MTIME value to every mail document

2011-12-13 Thread Thomas Jost
This is a time_t value, similar to the message date (TIMESTAMP). It is first set when the message is added to the database, and is then updated every time a tag is added or removed. It can thus be used for doing incremental dumps of the database or for synchronizing it between several computers.

[PATCH 3/5] lib: Make MTIME values searchable

2011-12-13 Thread Thomas Jost
Tag modification times are now searchable as ranges (just like regular message dates) with the mtime: prefix. --- lib/database-private.h |1 + lib/database.cc|3 +++ notmuch.1 | 14 -- notmuch.c | 13 ++--- 4 files changed, 26

[PATCH 4/5] show: include mtime in JSON output

2011-12-13 Thread Thomas Jost
This could be used by a UI implementation somehow. --- notmuch-show.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index 873a7c4..7279601 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -202,17 +202,18 @@ format_message_json

[PATCH 5/5] python: add get_mtime() to the Message class

2011-12-13 Thread Thomas Jost
--- bindings/python/notmuch/message.py | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index ce8e718..56f56c2 100644 --- a/bindings/python/notmuch/message.py +++

[PATCH v3 0/4] Several minor Emacs enhancements

2011-12-13 Thread Thomas Jost
Thomas Jost (4): emacs: Let the user choose where to compose new mails emacs: Add a face for crypto parts headers emacs: rename notmuch-decimal-separator to notmuch-thousands-separator emacs: add notmuch-hello-hook emacs/notmuch-crypto.el |5 + emacs/notmuch-hello.el | 17

[PATCH v3 1/4] emacs: Let the user choose where to compose new mails

2011-12-13 Thread Thomas Jost
Reusing the current window to compose a new mail may be troublesome for the user. This patch introduces a new customizable variable, notmuch-mua-compose-in, which lets the user choose where to create the mail buffer: in the current window (current and default behaviour), in a new window, or in a

[PATCH v3 3/4] emacs: rename notmuch-decimal-separator to notmuch-thousands-separator

2011-12-13 Thread Thomas Jost
In 123,456.78, . is the decimal separator, but , is the thousands separator. This commit also mentions the space being used as thousands separator in several European countries. --- emacs/notmuch-hello.el |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v3 2/4] emacs: Add a face for crypto parts headers

2011-12-13 Thread Thomas Jost
Commit cb841878 introduced new parts handlers for crypto parts, but also hardcoded values for their headers face. This replaces these hardcoded values with a customizable face. --- emacs/notmuch-crypto.el |5 + emacs/notmuch-show.el |4 ++-- 2 files changed, 7 insertions(+), 2

[PATCH] Fix build with binutils-2.22

2011-12-15 Thread Thomas Jost
binutils-2.22 changes the behaviour of ld by defaulting to --no-copy-dt-needed-entries, which means that required objects/libs are not indirectly linked through intermediate objects/libs anymore. As a consequence, when using binutils-2.22, building symbol-test fails with the following error:

[PATCH] emacs: add notmuch-hello-refresh-hook

2011-12-20 Thread Thomas Jost
This hook is called every time a notmuch-hello buffer is updated. --- Hi Dmitry, I like the idea of having a -mode-hook and a -refresh-hook :) Thanks for your suggestions! Regards, Thomas emacs/notmuch-hello.el |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git

Re: [PATCH v3 3/4] emacs: rename notmuch-decimal-separator to notmuch-thousands-separator

2011-12-20 Thread Thomas Jost
On Fri, 16 Dec 2011 16:34:03 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: On Fri, 16 Dec 2011 08:29:00 -0400, David Bremner da...@tethera.net wrote: On Fri, 16 Dec 2011 04:59:22 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: What do perople think about making

Re: [PATCH 2/5] lib: Add a MTIME value to every mail document

2011-12-20 Thread Thomas Jost
On Wed, 14 Dec 2011 14:54:10 -0700, Mark Anderson markr.ander...@amd.com wrote: On Tue, 13 Dec 2011 11:11:42 -0600, Thomas Jost schno...@schnouki.net wrote: This is a time_t value, similar to the message date (TIMESTAMP). It is first set when the message is added to the database

Re: [PATCH 2/5] lib: Add a MTIME value to every mail document

2011-12-20 Thread Thomas Jost
. Right now all of this fits in about 250 lines of Python (could be made shorter) and works quite well for me. I'll put it online after doing some cleanup. Quoth Thomas Jost on Dec 13 at 6:11 pm: This is a time_t value, similar to the message date (TIMESTAMP). It is first set when the message

[PATCH] emacs: add notmuch-hello-refresh-hook

2011-12-20 Thread Thomas Jost
This hook is called every time a notmuch-hello buffer is updated. --- Oops, the previous patch had a typo which prevented it to work (:group notmuch instead of :group 'notmuch). Sorry about that. emacs/notmuch-hello.el |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff

[PATCH 1/2] emacs: rename notmuch-decimal-separator to notmuch-hello-thousands-separator

2011-12-21 Thread Thomas Jost
In 123,456.78, . is the decimal separator, but , is the thousands separator. --- emacs/notmuch-hello.el |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index f892ff7..ef585ea 100644 --- a/emacs/notmuch-hello.el +++

[PATCH 2/2] emacs: Change the default thousands separator to a space

2011-12-21 Thread Thomas Jost
This had been discussed and decided on IRC. Rationale: Therefore the space is recommended in the SI/ISO 31-0 standard, and the International Bureau of Weights and Measures states that for numbers with many digits the digits may be divided into groups of three by a thin space, in order to

Re: [PATCH 2/2] test: add test for `notmuch-hello-refresh-hook'

2011-12-21 Thread Thomas Jost
On Wed, 21 Dec 2011 22:18:26 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: Test that `notmuch-hello-refresh-hook' is called once when `notmuch-hello' is called and twice when calling `notmuch-hello-update' after that. The tests are very similar to tests for

Re: [PATCH] notmuch: Quiet buildbot warnings.

2011-12-21 Thread Thomas Jost
On Tue, 20 Dec 2011 15:20:04 +, David Edmondson d...@dme.org wrote: Cast away the result of various *write functions. Provide a default value for some variables to avoid use before set warnings. --- The buildbot complains about these, though my own system (Debian testing on amd64) does

Re: [PATCH 2/2] test: add test for `notmuch-hello-refresh-hook'

2011-12-21 Thread Thomas Jost
On Thu, 22 Dec 2011 01:54:21 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: On Wed, 21 Dec 2011 22:49:13 +0100, Thomas Jost schno...@schnouki.net wrote: On Wed, 21 Dec 2011 22:18:26 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: Test that `notmuch-hello-refresh-hook

[PATCH] Update NEWS for Emacs changes

2012-01-04 Thread Thomas Jost
--- Hello world, Here's my part. (Also describes Ivy Foster's patch for notmuch-hello-mode-hook.) Regards, Thomas NEWS | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 6650126..8a3ff5a 100644 --- a/NEWS +++ b/NEWS @@ -34,6 +34,25 @@

Re: Info about notmuch database

2012-01-05 Thread Thomas Jost
On Wed, 04 Jan 2012 15:49:19 +, boyska piutto...@logorroici.org wrote: Hello! I like notmuch a lot, so I'm writing a (conceptually) similar software about addressbook: it will scan all your emails, storing email addresses in a xapian database (you can think of it as little brother

Re: Info about notmuch database

2012-01-05 Thread Thomas Jost
On Thu, 5 Jan 2012 16:38:07 +0100, boyska piutto...@logorroici.org wrote: There's a description of the DB schema in lib/database.cc in the notmuch source code. But you may also consider just using libnotmuch instead, if that's enough for what you want to do. thanks, found it, much clearer

Re: Info about notmuch database

2012-01-08 Thread Thomas Jost
On Sun, 08 Jan 2012 13:59:30 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: On Thu, 05 Jan 2012 16:04:22 +0100, Thomas Jost schno...@schnouki.net wrote: There's a description of the DB schema in lib/database.cc in the notmuch source code. But you may also consider just using libnotmuch

[PATCH] Add pseudo-compatibility with gmime 2.6

2012-01-16 Thread Thomas Jost
There are lots of API changes in gmime 2.6 crypto handling. By adding preprocessor directives, it is however possible to add gmime 2.6 compatibility while preserving compatibility with gmime 2.4 too. This is mostly based on id:8762i8hrb9@bookbinder.fernseed.info. This was tested against both

Re: [PATCH] Add pseudo-compatibility with gmime 2.6

2012-01-17 Thread Thomas Jost
On Mon, 16 Jan 2012 22:47:14 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Thomas Jost on Jan 17 at 12:56 am: There are lots of API changes in gmime 2.6 crypto handling. By adding preprocessor directives, it is however possible to add gmime 2.6 compatibility while preserving

[PATCH v2 2/2] Add pseudo-compatibility with gmime 2.6

2012-01-17 Thread Thomas Jost
There are lots of API changes in gmime 2.6 crypto handling. By adding preprocessor directives, it is however possible to add gmime 2.6 compatibility while preserving compatibility with gmime 2.4 too. This is mostly based on id:8762i8hrb9@bookbinder.fernseed.info. This was tested against both

[PATCH v2 1/2] show: don't use hex literals in JSON output

2012-01-17 Thread Thomas Jost
JSON does not support hex literals (0x..) so numbers must be formatted as %d instead of %x. --- notmuch-show.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index d14dac9..91f566c 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@

Re: [PATCH v2 2/2] Add pseudo-compatibility with gmime 2.6

2012-01-17 Thread Thomas Jost
On Tue, 17 Jan 2012 14:48:34 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: On Tue, 17 Jan 2012 11:50:53 +0100, Thomas Jost schno...@schnouki.net wrote: There are lots of API changes in gmime 2.6 crypto handling. By adding preprocessor directives, it is however possible to add gmime 2.6

Re: [PATCH v2 2/2] Add pseudo-compatibility with gmime 2.6

2012-01-19 Thread Thomas Jost
Thanks for this review Austin. New version coming soon. On Tue, 17 Jan 2012 17:25:46 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Thomas Jost on Jan 17 at 11:50 am: There are lots of API changes in gmime 2.6 crypto handling. By adding preprocessor directives, it is however possible

Re: [PATCH v2 2/2] Add pseudo-compatibility with gmime 2.6

2012-01-19 Thread Thomas Jost
On Wed, 18 Jan 2012 20:00:12 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: On Wed, 18 Jan 2012 12:19:45 -0500, Tom Prince tom.pri...@ualberta.net wrote: How did you test against multiple versions? Using different machines? If there was a way for configure (or something to pick the

Re: [PATCH] Add pseudo-compatibility with gmime 2.6

2012-01-19 Thread Thomas Jost
On Tue, 17 Jan 2012 15:38:36 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Thomas Jost on Jan 17 at 11:48 am: On Mon, 16 Jan 2012 22:47:14 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Thomas Jost on Jan 17 at 12:56 am: This is mostly based on id:8762i8hrb9

[PATCH v3 0/2] gmime 2.6 compatibilty, 3rd iteration

2012-01-19 Thread Thomas Jost
-email-schno...@schnouki.net [3] https://bugzilla.gnome.org/show_bug.cgi?id=668085 Thomas Jost (2): show: don't use hex literals in JSON output Add compatibility with gmime 2.6 mime-node.c | 60 +++-- notmuch-client.h | 30 +++- notmuch-reply.c

[PATCH v3 1/2] show: don't use hex literals in JSON output

2012-01-19 Thread Thomas Jost
JSON does not support hex literals (0x..) so numbers must be formatted as %d instead of %x. --- notmuch-show.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index d14dac9..91f566c 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@

[PATCH v3 2/2] Add compatibility with gmime 2.6

2012-01-19 Thread Thomas Jost
There are lots of API changes in gmime 2.6 crypto handling. By adding preprocessor directives, it is however possible to add gmime 2.6 compatibility while preserving compatibility with gmime 2.4 too. This is mostly based on id:8762i8hrb9@bookbinder.fernseed.info. This was tested against both

Re: [PATCH v3 2/2] Add compatibility with gmime 2.6

2012-01-20 Thread Thomas Jost
On Thu, 19 Jan 2012 23:10:44 -0500, Austin Clements amdra...@mit.edu wrote: Nearly there. A few more small comments. Thanks again :) Will post new version soon, including a new patch to update NEWS and INSTALL. Quoth Thomas Jost on Jan 20 at 1:06 am: There are lots of API changes in gmime

[PATCH v4 1/3] show: don't use hex literals in JSON output

2012-01-20 Thread Thomas Jost
JSON does not support hex literals (0x..) so numbers must be formatted as %d instead of %x. --- notmuch-show.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index d14dac9..91f566c 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@

[PATCH v4 2/3] Add compatibility with gmime 2.6

2012-01-20 Thread Thomas Jost
There are lots of API changes in gmime 2.6 crypto handling. By adding preprocessor directives, it is however possible to add gmime 2.6 compatibility while preserving compatibility with gmime 2.4 too. This is mostly based on id:8762i8hrb9@bookbinder.fernseed.info. This was tested against both

[PATCH v4 3/3] Update NEWS and INSTALL about gmime 2.6

2012-01-20 Thread Thomas Jost
--- INSTALL | 12 ++-- NEWS|9 + 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/INSTALL b/INSTALL index e51b397..bc98f1d 100644 --- a/INSTALL +++ b/INSTALL @@ -20,8 +20,8 @@ configure stage. Dependencies -Notmuch depends on three

  1   2   3   >