[PATCH 4/8] test: initial tests for S/MIME and notmuch-emacs

2015-08-16 Thread David Bremner
Test the ability of notmuch-mua-mail to send S/MIME signed (and encrypted) messages; this really relies on existing functionality in message-mode. The dependency on openssl to generate keys seems acceptable since that's the method I got to work for smime signing in emacs. The generated keys and

[DRAFT PATCH] emacs: show local date next to Date: in case value differs

2015-08-16 Thread David Bremner
Tomi Ollila writes: > Now I took a little better look why the 'relative' date is not enough for > me is that it doesn't always show the local date (it shows like > (28 mins. ago) or (March 30)). If these were (28 mins. ago (07:22)) and > (March 30 16:20) then it would be better (w/ +0300 that

Enabling and disabling maildir.synchronize_flags

2015-08-16 Thread David Bremner
dm-list-email-notmuch at scs.stanford.edu writes: > It seems that disabling it should simply be safe. But re-enabling, one > risks losing tags, as the next notmuch new will cause old maildir flags > to override the xapian database. So that suggests something like: > >notmuch dump > backup >

[PATCH] emacs: tree bugfix

2015-08-16 Thread David Bremner
Mark Walters writes: > Formerly replying to an encrypted message in tree-view did not > work. This is a first attempt to make it work. > --- > > notmuch-mua-reply decides whether to process crypto based on the > buffer-local variable notmuch-show-process-crypto. This sets to its > default value

Enabling and disabling maildir.synchronize_flags

2015-08-16 Thread David Mazieres
David Bremner writes: > dm-list-email-notmuch at scs.stanford.edu writes: > >> It seems that disabling it should simply be safe. But re-enabling, one >> risks losing tags, as the next notmuch new will cause old maildir flags >> to override the xapian database. So that suggests something like:

Re: [PATCH] emacs: tree bugfix

2015-08-16 Thread David Bremner
Mark Walters markwalters1...@gmail.com writes: Formerly replying to an encrypted message in tree-view did not work. This is a first attempt to make it work. --- notmuch-mua-reply decides whether to process crypto based on the buffer-local variable notmuch-show-process-crypto. This sets to

Re: Enabling and disabling maildir.synchronize_flags

2015-08-16 Thread David Bremner
dm-list-email-notm...@scs.stanford.edu writes: It seems that disabling it should simply be safe. But re-enabling, one risks losing tags, as the next notmuch new will cause old maildir flags to override the xapian database. So that suggests something like: notmuch dump backup

Re: [DRAFT PATCH] emacs: show local date next to Date: in case value differs

2015-08-16 Thread David Bremner
Tomi Ollila tomi.oll...@iki.fi writes: Now I took a little better look why the 'relative' date is not enough for me is that it doesn't always show the local date (it shows like (28 mins. ago) or (March 30)). If these were (28 mins. ago (07:22)) and (March 30 16:20) then it would be better

Re: Enabling and disabling maildir.synchronize_flags

2015-08-16 Thread David Mazieres
David Bremner da...@tethera.net writes: dm-list-email-notm...@scs.stanford.edu writes: It seems that disabling it should simply be safe. But re-enabling, one risks losing tags, as the next notmuch new will cause old maildir flags to override the xapian database. So that suggests something

Re: Enabling and disabling maildir.synchronize_flags

2015-08-16 Thread David Bremner
David Mazieres dm-list-email-notm...@scs.stanford.edu writes: So my question remains, what's the easiest safe way to re-enable synchronize_flags after disabling it? (Safe meaning it won't change any tags.) It could be that there's a very simple answer, in which case sticking it in the man

[no subject]

2015-08-16 Thread David Bremner
It turns out S/MIME encryption requires non-trivial additional code in libgmime. There is no reason to wait for that to support signtures (via emacs+openssl|epg), and verification (via notmuch-cli). Here we also test encryption, relying on emacs message-mode facilities. (At least) two things

[PATCH 5/8] test: add broken S/MIME signature verification test for notmuch CLI

2015-08-16 Thread David Bremner
The test is pretty much cut and paste from the PGP/MIME version, with obvious updates taken from notmuch output. This also requires setting up gpgsm infrastucture. --- test/T355-smime.sh | 50 ++ test/test-lib.sh | 1 + 2 files changed, 51

[PATCH 8/8] debian: add gpgsm as build dependency

2015-08-16 Thread David Bremner
It's not needed for the actual build, but it is needed to run the SMIME tests. --- debian/control | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/control b/debian/control index 05cd04f..37ecedd 100644 --- a/debian/control +++ b/debian/control @@ -22,6 +22,7 @@ Build-Depends:

[PATCH 1/8] crypto: refactor context creation to facilitate further work

2015-08-16 Thread David Bremner
From: Jani Nikula j...@nikula.org Let the context creation functions decide how to handle multiple calls and cache the crypto context. No functional changes. --- crypto.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/crypto.c b/crypto.c index

[PATCH 7/8] debian: Recommend gpgsm for S/MIME support

2015-08-16 Thread David Bremner
From: Jameson Graef Rollins jroll...@finestructure.net --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 4bc4cd9..05cd04f 100644 --- a/debian/control +++ b/debian/control @@ -31,7 +31,7 @@ Vcs-Browser:

[PATCH] cli/lib: remove support for GMime 2.4

2015-08-16 Thread David Bremner
It's becoming a maintenance burden to do anything things with the crypto glue code twice, once for 2.4 and once for 2.6. I don't have any 2.4 version available to test on my development machine anymore, so the 2.4 specific code paths are likely not very well tested. --- I started to rebase the

[PATCH] fixup! cli/lib: remove support for GMime 2.4

2015-08-16 Thread David Bremner
--- notmuch-client.h | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/notmuch-client.h b/notmuch-client.h index 78680aa..1f82656 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -30,16 +30,7 @@ #include gmime/gmime.h -/* GMIME_CHECK_VERSION in

[PATCH 3/8] cli: let the user know which protocol is unknown or unsupported

2015-08-16 Thread David Bremner
From: Jani Nikula j...@nikula.org The current error message is not helpful. --- crypto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto.c b/crypto.c index f415abd..11c167e 100644 --- a/crypto.c +++ b/crypto.c @@ -67,7 +67,8 @@ notmuch_crypto_get_context

[PATCH 2/8] crypto: make crypto ctx initialization an array

2015-08-16 Thread David Bremner
From: Jani Nikula j...@nikula.org Make it trivial to add handlers for new protocols without duplicating code. No functional changes. --- crypto.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/crypto.c b/crypto.c index 1187ad7..f415abd 100644 --- a/crypto.c +++

[PATCH 6/8] cli: crypto: S/MIME verification support

2015-08-16 Thread David Bremner
From: Jani Nikula j...@nikula.org notmuch-show --verify will now also process S/MIME multiparts if encountered. Requires gmime-2.6 and gpgsm. Based on work by Jameson Graef Rollins jroll...@finestructure.net. --- crypto.c | 50 ++

ANNOUNCE: muchsync 2 released

2015-08-16 Thread David Mazieres
I'm pleased to announce the release of muchsync version 2. Muchsync is a tool for replicating and synchronizing your notmuch databases across machines. The new version is reported to build out of the box on Mac OS X. There's one new feature, which is a new notmuch config option,

Re: [DRAFT PATCH] emacs: show local date next to Date: in case value differs

2015-08-16 Thread Tomi Ollila
On Sun, Aug 16 2015, David Bremner da...@tethera.net wrote: Tomi Ollila tomi.oll...@iki.fi writes: Now I took a little better look why the 'relative' date is not enough for me is that it doesn't always show the local date (it shows like (28 mins. ago) or (March 30)). If these were (28 mins.

Re: [PATCH] cli/lib: remove support for GMime 2.4

2015-08-16 Thread Tomi Ollila
On Sun, Aug 16 2015, David Bremner da...@tethera.net wrote: It's becoming a maintenance burden to do anything things with the crypto glue code twice, once for 2.4 and once for 2.6. I don't have any 2.4 version available to test on my development machine anymore, so the 2.4 specific code paths

Re: Enabling and disabling maildir.synchronize_flags

2015-08-16 Thread dm-list-email-notmuch
David Bremner da...@tethera.net writes: David Mazieres dm-list-email-notm...@scs.stanford.edu writes: So my question remains, what's the easiest safe way to re-enable [ 2 more citation lines. Click/Enter to show. ] synchronize_flags after disabling it? (Safe meaning it won't change any