Address completion

2010-04-20 Thread Sebastian Spaeth
Oh my goodness. I just tried http://github.com/dme/notmuch/raw/dme-play/emacs/notmuch-address.el together with the latest version of my "addrlookup" tool (which does the same as jkr's notmuch_addresses.py) and it just works, even in current cworth/master. Address completion for to: and cc: headers

Re: Address completion

2010-04-20 Thread Dirk Hohndel
On Tue, 20 Apr 2010 23:33:11 +0200, "Sebastian Spaeth" wrote: > Oh my goodness. I just tried > http://github.com/dme/notmuch/raw/dme-play/emacs/notmuch-address.el > together with the latest version of my "addrlookup" tool (which does the > same as jkr's notmuch_addresses.py) and it just works, ev

Address completion

2010-04-20 Thread Dirk Hohndel
On Tue, 20 Apr 2010 23:33:11 +0200, "Sebastian Spaeth" wrote: > Oh my goodness. I just tried > http://github.com/dme/notmuch/raw/dme-play/emacs/notmuch-address.el > together with the latest version of my "addrlookup" tool (which does the > same as jkr's notmuch_addresses.py) and it just works, eve

Address completion

2010-04-20 Thread Sebastian Spaeth
Oh my goodness. I just tried http://github.com/dme/notmuch/raw/dme-play/emacs/notmuch-address.el together with the latest version of my "addrlookup" tool (which does the same as jkr's notmuch_addresses.py) and it just works, even in current cworth/master. Address completion for to: and cc: headers

[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 > wrote: > > > I'm puzzled why you chose to pass a filename as the argument to 'cat' > > > rather than a message id (id:foo at bar.com)? > > > > The reason is that I want be able to distinguish betwe

[PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread David Edmondson
On Tue, 20 Apr 2010 13:13:36 +0200, Michal Sojka wrote: > On Tue, 20 Apr 2010, David Edmondson wrote: > > On Tue, 20 Apr 2010 12:14:56 +0200, Michal Sojka > > wrote: > > > > I'm puzzled why you chose to pass a filename as the argument to 'cat' > > > > rather than a message id (id:foo at bar.co

[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 Sojka 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 same way as i

[PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread David Edmondson
On Tue, 20 Apr 2010 12:14:56 +0200, Michal Sojka wrote: > > I'm puzzled why you chose to pass a filename as the argument to 'cat' > > rather than a message id (id:foo at bar.com)? > > The reason is that I want be able to distinguish between several > messages with the same id. It strikes me th

[PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread Sebastian Spaeth
> I'm puzzled why you chose to pass a filename as the argument to 'cat' > rather than a message id (id:foo at bar.com)? I agree, especially as some people want to introduce abstract mailstores which might not even have the concept of a file name :). Passing a message-id seems more useful. Sebast

"bouncing" messages

2010-04-20 Thread Sebastian Spaeth
On 2010-04-20, micah anderson wrote: > It would be great if this became a key to make this easier. In mutt, > that key is 'b', which prompts you who you should send the message > to. That key is already bound to showing the body in notmuch, but I'm > sure there are other options. I'm pretty sure,

The archive operation should only archive open messages

2010-04-20 Thread ra...@free.fr
- "Carl Worth" a ?crit : > Once we fix that, I think we can go back to having tag operations > only > affect matched messages in the search view, and I agree that this > will > be extremely convenient. > What about using prefixes to each command, the way Gnus does it*? For instance, 'd' s

[PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread Jameson Rollins
not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100420/96bfc301/attachment-0001.pgp>

Re: pull request

2010-04-20 Thread Carl Worth
On Tue, 20 Apr 2010 06:27:02 +0100, David Edmondson wrote: > The second chunk was intended to cover a similar case (len == 0), but > becomes unnecessary after the first chunk. At least, that's what I > convinced myself after the conversation with Anthony Towns > (id:h2y87b3a4191004060117v5421db8ej

pull request

2010-04-20 Thread Carl Worth
ot some confusion about "body visible" vs. "message visible" that I want to fix before pushing). -Carl -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100420/479ca685/attachment.pgp>

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

2010-04-20 Thread Michal Sojka
The following commands now access the messages via the cat subcommand: view/save attachments, view raw message and pipe message to command. With this patch, it is straightforward to use notmuch emacs interface with a remote database accessed over SSH. To do this, it is sufficient to redefine notmu

[PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread Michal Sojka
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 same way as it is done in notmuch-show-mode (through notmuch show subcommand). This will simplify the MUAs when they need to opera

"bouncing" messages

2010-04-20 Thread Jameson Rollins
looked into that? jamie. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100420/bcb92133/attachment.pgp>

Re: [PATCH] json: Avoid calling strlen(NULL)

2010-04-20 Thread Carl Worth
> There's already a check in json_quote_chararray for len==0, so it > might be sensible to say: > > return (json_quote_chararray (ctx, str, str != NULL ? strlen (str) : 0)); > > OTOH, the code in json_quote_array to deal with that does the same > thing (returns a literal string containing two

[PATCH] json: Avoid calling strlen(NULL)

2010-04-20 Thread Carl Worth
array. I've pushed this out now, (separated into two pieces). -Carl -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100420/8b505c7f/attachment.pgp>

[PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread David Edmondson
On Tue, 20 Apr 2010 09:16:32 +0200, Michal Sojka 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 same way as it is done in > notmuch-show-mode (through notmuch show

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

2010-04-20 Thread Jameson Rollins
On Tue, 20 Apr 2010 12:14:56 +0200, Michal Sojka wrote: > The reason is that I want be able to distinguish between several > messages with the same id. Consider a message sent to a list. One copy > is stored in your sent folder and one in another folder. You may want to > investigate the Receiv

pull request

2010-04-20 Thread David Edmondson
On Mon, 19 Apr 2010 11:07:40 -0700, Carl Worth wrote: > > commit 8586a86b9dd4ed2406a2fbda6c08bdc6a598cfd8 > > debian: git should ignore packaging intermediate files > > I committed an alternate version of this, (with a new debian/.gitignore > file). I used more wildcarding too. And I couldn'

Re: "bouncing" messages

2010-04-20 Thread Jameson Rollins
On Tue, 20 Apr 2010 10:07:21 +0200, "Sebastian Spaeth" wrote: > On 2010-04-20, micah anderson wrote: > I'm pretty sure, we can get a nice keybinding that invokes message mode's > "message-resend" function or something similar. The only disadvantag is > that it asks for the mail address in the min

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

2010-04-20 Thread David Edmondson
On Tue, 20 Apr 2010 13:13:36 +0200, Michal Sojka wrote: > On Tue, 20 Apr 2010, David Edmondson wrote: > > On Tue, 20 Apr 2010 12:14:56 +0200, Michal Sojka > > 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)

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 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 between se

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

2010-04-20 Thread David Edmondson
On Tue, 20 Apr 2010 12:14:56 +0200, Michal Sojka 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 between several > messages with the same id. It strikes me that

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 Sojka 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 same way as it i

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

2010-04-20 Thread Sebastian Spaeth
> I'm puzzled why you chose to pass a filename as the argument to 'cat' > rather than a message id (id:f...@bar.com)? I agree, especially as some people want to introduce abstract mailstores which might not even have the concept of a file name :). Passing a message-id seems more useful. Sebastia

Re: "bouncing" messages

2010-04-20 Thread Sebastian Spaeth
On 2010-04-20, micah anderson wrote: > It would be great if this became a key to make this easier. In mutt, > that key is 'b', which prompts you who you should send the message > to. That key is already bound to showing the body in notmuch, but I'm > sure there are other options. I'm pretty sure,

Re: The archive operation should only archive open messages

2010-04-20 Thread racin
- "Carl Worth" a écrit : > Once we fix that, I think we can go back to having tag operations > only > affect matched messages in the search view, and I agree that this > will > be extremely convenient. > What about using prefixes to each command, the way Gnus does it*? For instance, 'd' s

Difference between search and filter

2010-04-20 Thread Xavier Maillard
Hi, GNU Emacs interface comes with 2 functions I am not sure I am using correctly. What's the difference between searching and filtering exactly (s and f) ? It seems to me that they deserve the same purpose. Regards, Xavier

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

2010-04-20 Thread David Edmondson
On Tue, 20 Apr 2010 09:16:32 +0200, Michal Sojka 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 same way as it is done in > notmuch-show-mode (through notmuch show

[PATCH 1/2] Add 'cat' subcommand

2010-04-20 Thread Michal Sojka
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 same way as it is done in notmuch-show-mode (through notmuch show subcommand). This will simplify the MUAs when they need to opera

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

2010-04-20 Thread Michal Sojka
The following commands now access the messages via the cat subcommand: view/save attachments, view raw message and pipe message to command. With this patch, it is straightforward to use notmuch emacs interface with a remote database accessed over SSH. To do this, it is sufficient to redefine notmu