[PATCH] completion: complete bash completion rewrite

2013-03-02 Thread Jani Nikula
Rewrite the bash completion script to actually do something useful. There are still a few rough edges (documented as BUGS/TODO), but it's already fairly good. In addition to completing all the notmuch keyword arguments, it does some nice stuff, like complete tags on 'notmuch tag (+|-)TAB' and

Re: [PATCH] cli: crypto: tell gmime to use gpg-agent

2013-03-02 Thread David Bremner
Jani Nikula j...@nikula.org writes: For decryption, we expect there to be a functioning gpg-agent, and we want gpg to talk to it for any needed credentials. There's a gmime function to declare that: g_mime_gpg_context_set_use_agent() [1], [2]. Start using it. Pushed this, and the followup

Re: Update for nmbug, round 2

2013-03-02 Thread David Bremner
David Bremner da...@tethera.net writes: Tomi Ollila tomi.oll...@iki.fi writes: David: are you going to send followup patches soon? I'm running nmbug with these patches and it works fine. I have two followup patches that add an nmbug init command to create an empty nmbug repo, but this is

Batch tagging - add id_list as tag possible?

2013-03-02 Thread Rainer M Krug
Hi I would like to tag my mails automatically by using the id_list as the tag name, but as far as I can se in the manual, this is not possible yet. Is this true? It would be great if I could have +%id_list And it would automatically tag my mails with the list I'd? At the moment I am using afew

Re: Batch tagging - add id_list as tag possible?

2013-03-02 Thread David Bremner
Rainer M Krug r.m.k...@gmail.com writes: Hi I would like to tag my mails automatically by using the id_list as the tag name, but as far as I can se in the manual, this is not possible yet. Is this true? That's correct. It would be great if I could have +%id_list And it would

[BUG] inconsistent user context handling w/ tramp

2013-03-02 Thread Simon Campese
Hello, after using tramp to open a file using the 'su' or 'sudo' protocol as user X, the next time I run 'compose-mail' to compose a message it apparently looks in the home directory of user X for its config file, mail directory etc. In the compose window, I get the error message 'Error reading

[PATCH 2/3] Go bindings: wrap notmuch_message_get_date

2013-03-02 Thread Julius Plenz
--- bindings/go/src/notmuch/notmuch.go |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 0bdbba9..306b104 100644 --- a/bindings/go/src/notmuch/notmuch.go +++

[PATCH 1/3] Go bindings: clean up the documentation

2013-03-02 Thread Julius Plenz
Most of the copypaste is either misleading or not helpful; remove that, and add useful comments where it’s helping. --- bindings/go/src/notmuch/notmuch.go | 737 +--- 1 file changed, 188 insertions(+), 549 deletions(-) diff --git

Re: [PATCH 1/3] Go bindings: clean up the documentation

2013-03-02 Thread Justus Winter
Hi Julius, Quoting Julius Plenz (2013-03-02 15:50:54) Most of the copypaste is either misleading or not helpful; remove that, and add useful comments where it’s helping. --- [...] +// Open an existing notmuch database located at 'path'. By default the +// database should be opened for

Re: [PATCH 2/3] Go bindings: wrap notmuch_message_get_date

2013-03-02 Thread Justus Winter
Quoting Julius Plenz (2013-03-02 15:50:55) -// TODO: wrap notmuch_message_get_date +func (self *Message) GetDate() time.Time { It's customary to name the receiver just m for the type Message. I realize that the rest of the code uses self too, but I'd love to see this converted and maybe we

Re: [BUG] inconsistent user context handling w/ tramp

2013-03-02 Thread David Bremner
Simon Campese notmuchmail_...@campese.de writes: Hello, after using tramp to open a file using the 'su' or 'sudo' protocol as user X, the next time I run 'compose-mail' to compose a message it apparently looks in the home directory of user X for its config file, mail directory etc. In the

Re: Batch tagging - add id_list as tag possible?

2013-03-02 Thread Rainer M Krug
On Saturday, March 2, 2013, David Bremner wrote: Rainer M Krug r.m.k...@gmail.com javascript:; writes: Hi I would like to tag my mails automatically by using the id_list as the tag name, but as far as I can se in the manual, this is not possible yet. Is this true? That's correct.

[RFC PATCH 1/3] cli: cosmetic style cleanup

2013-03-02 Thread Jani Nikula
--- notmuch-config.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index b5c2066..45b4c0e 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -398,39 +398,28 @@ notmuch_config_open (void *ctx, * the configuration

[RFC PATCH 2/3] cli: add reply.honor_followup_to configuration option

2013-03-02 Thread Jani Nikula
The reply.honor_followup_to configuration option determines whether notmuch reply takes into account the Mail-Followup-To: header in incoming messages. --- notmuch-client.h |7 +++ notmuch-config.c | 43 +++ 2 files changed, 50 insertions(+) diff

[RFC PATCH 3/3] cli: support Mail-Followup-To: in notmuch reply

2013-03-02 Thread Jani Nikula
Use Mail-Followup-To header to determine recipients according to http://cr.yp.to/proto/replyto.html if configured and present in the message being replied to. --- notmuch-reply.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/notmuch-reply.c

Re: Batch tagging - add id_list as tag possible?

2013-03-02 Thread David Bremner
Rainer M Krug r.m.k...@gmail.com writes: On Saturday, March 2, 2013, David Bremner wrote: It would be great if I could have +%id_list And it would automatically tag my mails with the list I'd? It should be possible to script that, using e.g. formail to extract the list id. But this

[PATCH] config: do not overwrite symlinks when saving config file

2013-03-02 Thread Jani Nikula
Use realpath on the config path before writing. If that fails, fallback to the previous behaviour. Previously 'notmuch setup' and 'notmuch config set' overwrote the config file even if it was a symbolic link. --- notmuch-config.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-)

Re: [PATCH] config: do not overwrite symlinks when saving config file

2013-03-02 Thread Tomi Ollila
On Sat, Mar 02 2013, Jani Nikula j...@nikula.org wrote: Use realpath on the config path before writing. If that fails, fallback to the previous behaviour. Previously 'notmuch setup' and 'notmuch config set' overwrote the config file even if it was a symbolic link. --- notmuch-config.c |

Re: notmuch webmails

2013-03-02 Thread John Lenz
On 2013-02-28 18:41:08 UTC, Mark Anderson markr.ander...@amd.com wrote: John, Where should I look to figure out how to resolve these dependencies? On a fresh install from scratch today I got the same problem, and was able to resolve it by first installing yesod-platform and then after

Re: [RFC PATCH 3/3] cli: support Mail-Followup-To: in notmuch reply

2013-03-02 Thread Peter Wang
On Sat, 2 Mar 2013 21:55:21 +0200, Jani Nikula j...@nikula.org wrote: Use Mail-Followup-To header to determine recipients according to http://cr.yp.to/proto/replyto.html if configured and present in the message being replied to. I would like to see an option to --reply-to=list that, as far as

[ANNOUNCE] notmuch-web 0.1.0

2013-03-02 Thread John Lenz
I have been recently working on a web interface to notmuch. The past two weeks, I have used it as my only email client and since the trial period was a great success (I had no major issues or problems and never had to revert to another client), I have decided to release an initial version. I am

afew filter rules

2013-03-02 Thread Patrick Totzke
//notmuchmail.org/mailman/listinfo/notmuch -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130302/06a813e9/attachment.pgp>

[PATCH] completion: complete bash completion rewrite

2013-03-02 Thread Jani Nikula
Rewrite the bash completion script to actually do something useful. There are still a few rough edges (documented as BUGS/TODO), but it's already fairly good. In addition to completing all the notmuch keyword arguments, it does some nice stuff, like complete tags on 'notmuch tag (+|-)' and config

[PATCH] cli: crypto: tell gmime to use gpg-agent

2013-03-02 Thread David Bremner
Jani Nikula writes: > For decryption, we expect there to be a functioning gpg-agent, and we > want gpg to talk to it for any needed credentials. There's a gmime > function to declare that: g_mime_gpg_context_set_use_agent() [1], [2]. > Start using it. Pushed this, and the followup man page

Update for nmbug, round 2

2013-03-02 Thread David Bremner
David Bremner writes: > Tomi Ollila writes: > >> >> David: are you going to send followup patches soon? I'm running nmbug >> with these patches and it works fine. >> > > I have two followup patches that add an "nmbug init" command to create > an empty nmbug repo, but this is only really

Batch tagging - add id_list as tag possible?

2013-03-02 Thread Rainer M Krug
email: Rainer at krugs.de Skype: RMkrug -- next part -- An HTML attachment was scrubbed... URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130302/18e482e5/attachment-0001.html>

Batch tagging - add id_list as tag possible?

2013-03-02 Thread David Bremner
Rainer M Krug writes: > Hi > > I would like to tag my mails automatically by using the id_list as the tag > name, but as far as I can se in the manual, this is not possible yet. Is > this true? > That's correct. > It would be great if I could have > +%id_list > > And it would automatically tag

[BUG] inconsistent user context handling w/ tramp

2013-03-02 Thread Simon Campese
Hello, after using tramp to open a file using the 'su' or 'sudo' protocol as user X, the next time I run 'compose-mail' to compose a message it apparently looks in the home directory of user X for its config file, mail directory etc. In the compose window, I get the error message 'Error reading

[PATCH 3/3] Go bindings: Wrap (most) remaining notmuch thread functions

2013-03-02 Thread Julius Plenz
--- bindings/go/src/notmuch/notmuch.go | 89 +++- 1 file changed, 88 insertions(+), 1 deletion(-) diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 306b104..8829f82 100644 --- a/bindings/go/src/notmuch/notmuch.go +++

[PATCH 2/3] Go bindings: wrap notmuch_message_get_date

2013-03-02 Thread Julius Plenz
--- bindings/go/src/notmuch/notmuch.go |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 0bdbba9..306b104 100644 --- a/bindings/go/src/notmuch/notmuch.go +++

[PATCH 1/3] Go bindings: clean up the documentation

2013-03-02 Thread Julius Plenz
Most of the copy is either misleading or not helpful; remove that, and add useful comments where it?s helping. --- bindings/go/src/notmuch/notmuch.go | 737 +--- 1 file changed, 188 insertions(+), 549 deletions(-) diff --git a/bindings/go/src/notmuch/notmuch.go

[PATCH 1/3] Go bindings: clean up the documentation

2013-03-02 Thread Justus Winter
Hi Julius, Quoting Julius Plenz (2013-03-02 15:50:54) > Most of the copy is either misleading or not helpful; remove that, and > add useful comments where it?s helping. > --- > [...] > +// Open an existing notmuch database located at 'path'. By default the > +// database should be opened for

[PATCH 2/3] Go bindings: wrap notmuch_message_get_date

2013-03-02 Thread Justus Winter
Quoting Julius Plenz (2013-03-02 15:50:55) > -// TODO: wrap notmuch_message_get_date > +func (self *Message) GetDate() time.Time { It's customary to name the receiver just m for the type Message. I realize that the rest of the code uses self too, but I'd love to see this converted and maybe we

[BUG] inconsistent user context handling w/ tramp

2013-03-02 Thread David Bremner
Simon Campese writes: > Hello, > > after using tramp to open a file using the 'su' or 'sudo' protocol as > user X, the next time I run 'compose-mail' to compose a message it > apparently looks in the home directory of user X for its config file, > mail directory etc. In the compose window, I get

Batch tagging - add id_list as tag possible?

2013-03-02 Thread Rainer M Krug
+49 - (0)3 21 21 25 22 44 email: Rainer at krugs.de Skype: RMkrug -- next part -- An HTML attachment was scrubbed... URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130302/903fd0d6/attachment.html>

[RFC PATCH 1/3] cli: cosmetic style cleanup

2013-03-02 Thread Jani Nikula
--- notmuch-config.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index b5c2066..45b4c0e 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -398,39 +398,28 @@ notmuch_config_open (void *ctx, * the configuration

[RFC PATCH 2/3] cli: add reply.honor_followup_to configuration option

2013-03-02 Thread Jani Nikula
The reply.honor_followup_to configuration option determines whether notmuch reply takes into account the Mail-Followup-To: header in incoming messages. --- notmuch-client.h |7 +++ notmuch-config.c | 43 +++ 2 files changed, 50 insertions(+) diff

[RFC PATCH 3/3] cli: support Mail-Followup-To: in notmuch reply

2013-03-02 Thread Jani Nikula
Use Mail-Followup-To header to determine recipients according to http://cr.yp.to/proto/replyto.html if configured and present in the message being replied to. --- notmuch-reply.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/notmuch-reply.c

Batch tagging - add id_list as tag possible?

2013-03-02 Thread David Bremner
Rainer M Krug writes: > On Saturday, March 2, 2013, David Bremner wrote: >> > It would be great if I could have >> > +%id_list >> > >> > And it would automatically tag my mails with the list I'd? >> >> It should be possible to script that, using e.g. formail to extract the >> list id. > > But

[PATCH] config: do not overwrite symlinks when saving config file

2013-03-02 Thread Jani Nikula
Use realpath on the config path before writing. If that fails, fallback to the previous behaviour. Previously 'notmuch setup' and 'notmuch config set' overwrote the config file even if it was a symbolic link. --- notmuch-config.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-)

[PATCH] config: do not overwrite symlinks when saving config file

2013-03-02 Thread Tomi Ollila
On Sat, Mar 02 2013, Jani Nikula wrote: > Use realpath on the config path before writing. If that fails, > fallback to the previous behaviour. > > Previously 'notmuch setup' and 'notmuch config set' overwrote the > config file even if it was a symbolic link. > --- > notmuch-config.c | 10

notmuch webmails

2013-03-02 Thread John Lenz
On 2013-02-28 18:41:08 UTC, Mark Anderson wrote: > John, > > Where should I look to figure out how to resolve these dependencies? > On a fresh install from scratch today I got the same problem, and was able to resolve it by first installing yesod-platform and then after that the few

[ANNOUNCE] notmuch-web 0.1.0

2013-03-02 Thread John Lenz
I have been recently working on a web interface to notmuch. The past two weeks, I have used it as my only email client and since the trial period was a great success (I had no major issues or problems and never had to revert to another client), I have decided to release an initial version. I am