[PATCH] Fix subject handling

2014-09-30 Thread Ian Main
I'm just starting to use notmuch so I'm not sure if this is the right way to fix this but this was erroring out so I changed it to what you see here which is working for me now. --- vim/notmuch.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/notmuch.vim

[PATCH] VIM: Automatically refresh folder screen

2014-10-01 Thread Ian Main
This patch makes the folder screen refresh each time you 'enter' it. This way when you read a folder and mark items as read the changes are reflected immediately when you return to the folder view. Ian --- vim/notmuch.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/notmuch.vim

[PATCH] VIM: Make starting in 'insert' mode for compose optional

2014-10-01 Thread Ian Main
This adds a variable to make starting in insert mode optional when composing and replying to emails. I found it unusual to be started in insert mode so I thought I'd make it optional as others may find this as well. Ian --- vim/notmuch.vim | 13 +++-- 1 file changed, 11

[PATCH] VIM: Add a 'tag all' folder option.

2014-10-01 Thread Ian Main
This adds the ability to mark an entire folder as read (or any other tags you like once you map it). Ian --- vim/notmuch.vim | 11 +++ 1 file changed, 11 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 331e930..3f2444b 100644 --- a/vim/notmuch.vim +++

[PATCH] VIM v2: Add a 'tag all' folder option.

2014-10-01 Thread Ian Main
This adds the ability to mark an entire folder as read (or any other tags you like once you map it). This update adds documentation for the command. Ian --- vim/notmuch.txt | 1 + vim/notmuch.vim | 11 +++ 2 files changed, 12 insertions(+) diff --git a/vim/notmuch.txt

[PATCH] VIM: Add better attachment support

2014-10-02 Thread Ian Main
This patch changes how the notmuch vim client supports attachments: - For each attachment an 'Attachment number: filename' is added to the header - You can then use 'e' to extract the attachment under the cursor or use it elsewhere to extract all attachments (the prior behavior) - You can use

Re: notmuch-vim doesn't respect notmuch config defaults

2014-10-02 Thread Ian Main
David Bremner wrote: Sergei Shilovsky sshilov...@gmail.com writes: I would suggest to use `notmuch config list` to get configuration values in vim if possible I guess this is a general question we haven't really resolved, namely sharing configuration information between various notmuch

[PATCH] VIM: Use notmuch CLI for config

2014-10-02 Thread Ian Main
This patch switches from reading .notmuch-config directly to using the CLI the same way that emacs does it. It actually uses less code and is probably less error prone. Ian --- vim/notmuch.vim | 31 --- 1 file changed, 12 insertions(+), 19 deletions(-) diff

[PATCH v2] VIM: Use notmuch CLI for config

2014-10-02 Thread Ian Main
This patch switches from reading .notmuch-config directly to using the CLI the same way that emacs does it. It actually uses less code and is probably less error prone. Ian --- This update changes result to be '' instead of nil by default so missing config items won't cause an error.

Re: [PATCH v2] VIM: Use notmuch CLI for config

2014-10-03 Thread Ian Main
David Bremner wrote: Ian Main im...@stemwinder.org writes: This patch switches from reading .notmuch-config directly to using the CLI the same way that emacs does it. It actually uses less code and is probably less error prone. Ian The general approach seems sane; it seems

RE: notmuch-vim doesn't respect notmuch config defaults

2014-10-03 Thread Ian Main
Sergei Shilovsky wrote: I would suggest to use `notmuch config list` to get configuration values in vim if possible Reproduction example follows: /home/sh cat .notmuch-config [new] tags=new;inbox;unread ignore= [search] exclude_tags=deleted;spam [maildir]

[PATCH] Improve moving between messages in a thread

2014-10-06 Thread Ian Main
This patch adds a few changes to moving between threads: - It supports 'scrolloff' so that if you have this set it will move the buffer and cursor so the next/prev email starts at the top of the screen. - It adds the ability to use shift-tab to go to the previous msg in the thread. Ian

RE: [PATCH] Improve moving between messages in a thread

2014-10-06 Thread Ian Main
Ian Main wrote: This patch adds a few changes to moving between threads: - It supports 'scrolloff' so that if you have this set it will move the buffer and cursor so the next/prev email starts at the top of the screen. - It adds the ability to use shift-tab to go to the previous msg

[PATCH] VIM: Make an option to save sent mail locally

2014-10-06 Thread Ian Main
Add an option to use 'notmuch insert' to save your sent mail. --- vim/notmuch.vim | 17 + 1 file changed, 17 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 331e930..cb280c3 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -58,6 +58,7 @@ let

[PATCH] VIM: Improve moving between messages in a thread

2014-10-06 Thread Ian Main
Add a few changes to moving between threads: - It supports 'scrolloff' so that if you have this set it will move the buffer and cursor so the next/prev email starts at the top of the screen. - It adds the ability to use shift-tab to go to the previous msg in the thread. Ian --- This

[PATCH] VIM: Make an option to save sent mail locally

2014-10-06 Thread Ian Main
Add an option to use 'notmuch insert' to save your sent mail. --- Add -inbox as well. vim/notmuch.vim | 17 + 1 file changed, 17 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 331e930..a9044c4 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -58,6 +58,7

[PATCH] VIM: Improve search list

2014-10-06 Thread Ian Main
Make the width of the search name column expand/contract with the length of the longest search name string. Fix syntax highlighting to make the above work right. Add the ability to use a blank search pattern to create a spacer to break up searches into groups. --- vim/notmuch.txt

Re: [PATCH] VIM: Make an option to save sent mail locally

2014-10-06 Thread Ian Main
Tomi Ollila wrote: On Mon, Oct 06 2014, Ian Main im...@stemwinder.org wrote: Add an option to use 'notmuch insert' to save your sent mail. --- Add -inbox as well. vim/notmuch.vim | 17 + 1 file changed, 17 insertions(+) diff --git a/vim/notmuch.vim b/vim

Re: [PATCH] VIM: Add better attachment support

2014-10-10 Thread Ian Main
Franz Fellner wrote: It works as described. But IMHO it would be better to prompt the user to enter the location where he wants to save the attachment(s). This path could be taken if s:notmuch_attachment_tmpdir_default is set to empty. Or implement a different function for save to. It would

Re: [PATCH] VIM: Add URI handling

2014-10-10 Thread Ian Main
Franz Fellner wrote: Works nice. Tested with an https and a mailto URI. But it would be awesome if you could add message id handling, So one could easily navigate to linked messages. I only found emacs client implement this feature. What I read in the docs about ruby URI module it should be

Re: [PATCH] VIM: Improve moving between messages in a thread

2014-10-10 Thread Ian Main
. As I use the vim client more my plan is to just keep fixing things that get in my way. Thanks for catching the vim_puts. :) Thanks for you're reviews!! Ian On Mon, 6 Oct 2014 10:55:16 -0700, Ian Main im...@stemwinder.org wrote: @@ -113,6 +114,22 @@ EOF call s:kill_this_buffer

Re: [PATCH] VIM: Add URI handling

2014-10-15 Thread Ian Main
= msg.filename @mail = mail @start = 0 On Fri, 10 Oct 2014 11:18:31 -0700, Ian Main im...@stemwinder.org wrote: Franz Fellner wrote: Works nice. Tested with an https and a mailto URI. But it would be awesome if you could add message id handling

notmuch vim patches

2014-10-15 Thread Ian Main
For those who are interested, I've created a fork of the official(?) github repo that contains all the patches I've worked on so far. For those using notmuch-vim this would be a much easier way to try out the new code. https://github.com/imain/notmuch-vim I think it could be useful to get

Re: notmuch vim patches

2014-10-16 Thread Ian Main
Franz Fellner wrote: I'm starting to realize that I could default to using 'enter' to both open URI's and view attachments. Any other ideas welcome. - make some of the functions public so users can bind them to keys they want Not sure I understand this one. You want to be able to

Re: notmuch vim patches

2014-10-16 Thread Ian Main
Franz Fellner wrote: I'm starting to realize that I could default to using 'enter' to both open URI's and view attachments. Any other ideas welcome. - make some of the functions public so users can bind them to keys they want - introduce show_[prev,next]_unread_msg, probably

Re: notmuch vim patches

2014-10-17 Thread Ian Main
Franz Fellner wrote: On Thu, 16 Oct 2014 15:30:11 -0700, Ian Main im...@redhat.com wrote: Franz Fellner wrote: I'm starting to realize that I could default to using 'enter' to both open URI's and view attachments. Any other ideas welcome. - make some of the functions

Re: [PATCH] VIM: Add URI handling

2014-10-20 Thread Ian Main
Franz Fellner wrote: On Wed, 15 Oct 2014 12:33:55 -0700, Ian Main im...@stemwinder.org wrote: Franz Fellner wrote: Here is a working implementation. Please review carefully as I only can simulate ruby and vimscript knowledge from what I see in notmuch.vim sourcefile and quick

Re: [PATCH v2] VIM: Use notmuch CLI for config

2014-10-20 Thread Ian Main
David Bremner wrote: Ian Main im...@stemwinder.org writes: This patch switches from reading .notmuch-config directly to using the CLI the same way that emacs does it. It actually uses less code and is probably less error prone. Ian We're starting to get a few notmuch-vim

[PATCH v2] VIM: Make an option to save sent mail locally

2014-10-20 Thread Ian Main
Add an option to use 'notmuch insert' to save your sent mail. --- This update changes the 'system' line and adds a sent mailbox option. vim/notmuch.vim | 22 ++ 1 file changed, 22 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 331e930..b0c6ebd 100644 ---

[PATCH v3] VIM: Improve moving between messages in a thread

2014-10-20 Thread Ian Main
Add a few changes to moving between threads: - It supports 'scrolloff' so that if you have this set it will move the buffer and cursor so the next/prev email starts at the top of the screen. - It adds the ability to use shift-tab to go to the previous msg in the thread. Ian --- Remove

RE: [PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Ian Main
Thanks Franz! So this works well in the main searches by not showing anything I have marked as 'spam'. However if I force a search for tag:spam and then try to view any of the messages presented they will not show up because of the way we display the email.. :-/ I'm not sure what is the best

[PATCH v2] VIM: Make patch saving in vim a little better.

2014-10-20 Thread Ian Main
It seems like there was some bitrot on the previous version of this which made it not work correctly. This fixes the bitrot and also updates how it works. - Sometimes [PATCH.*] isn't at the beginning of the message (often on lists I'm on). - It now goes through all the messages in the thread.

RE: [PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Ian Main
Franz Fellner wrote: Ian Main wrote: Thanks Franz! So this works well in the main searches by not showing anything I have marked as 'spam'. However if I force a search for tag:spam and then try to view any of the messages presented they will not show up because of the way we

[PATCH] VIM: Add better attachment support

2014-10-23 Thread Ian Main
This patch changes how the notmuch vim client supports attachments: - For each message part a 'Part number: filename' is added to the header. - You can then use 'e' to extract the attachment under the cursor or use it elsewhere to extract all attachments (the prior behavior) - You can use 'v'

[PATCH v2] VIM: Add URI handling

2014-10-23 Thread Ian Main
Add URI handling to the vim client. You can now press 'enter' by default and the client will parse the current line and find any 'Part's or URIs available for opening. If there are more than one it opens the one under the cursor or else it opens the only one available. It also supports mailto:

[PATCH] VIM: Fix header management and fold threads

2014-10-23 Thread Ian Main
Yes, it's here, the patch you've all been waiting for! Well, maybe: - Add a variable to control which headers are displayed normally. - Any header that is not displayed normally will be listed in a folded area in the message so you can access it at will (can be turned off). - Add the

RE: Looking for the perfect mail client

2014-10-23 Thread Ian Main
Sepp Tannhuber wrote: Dear all, I'm wondering whether there's a notmuch mail client - with a handling similar to alot - which is capable to show html content without html2ascii conversion - which can use vim as editor - which doesn't need a web browser - which doesn't need a mouse -

[PATCH v2] VIM: Fix header management and fold threads

2014-10-23 Thread Ian Main
Yes, it's here, the patch you've all been waiting for! Well, maybe: - Add a variable to control which headers are displayed normally. - Any header that is not displayed normally will be listed in a folded area in the message so you can access it at will (can be turned off). - Add the

RE: [PATCH] VIM: Automatically refresh folder screen

2014-10-24 Thread Ian Main
Can I get someone to test this one? It's pretty simple and useful. Ian Ian Main wrote: This patch makes the folder screen refresh each time you 'enter' it. This way when you read a folder and mark items as read the changes are reflected immediately when you return to the folder view

RE: [PATCH] VIM v2: Add a 'tag all' folder option.

2014-10-24 Thread Ian Main
This one is pretty straightforward and useful too. Ian Ian Main wrote: This adds the ability to mark an entire folder as read (or any other tags you like once you map it). This update adds documentation for the command. Ian --- vim/notmuch.txt | 1 + vim/notmuch.vim | 11

Re: Looking for the perfect mail client

2014-10-24 Thread Ian Main
Sepp Tannhuber wrote: Ian Main im...@redhat.com schrieb am 6:28 Freitag, 24.Oktober 2014: I wonder if you'd be willing to give the vim client a go. We've done a lot of work to it lately and I think it would handle all you listed here. For me, it's hard to get familiar with it because I

[PATCH v3] VIM: Add URI handling

2014-10-24 Thread Ian Main
This patch adds URI handling to the vim client. You can now press 'enter' by default and the client will parse the current line and find any 'Part's or URIs available for opening. If there are more than one it opens the one under the cursor or else it opens the only one available. It also

[PATCH v4 2/2] VIM: Add URI handling

2014-10-24 Thread Ian Main
Add URI handling to the vim client. You can now press 'enter' by default and the client will parse the current line and find any 'Part's or URIs available for opening. If there are more than one it opens the one under the cursor or else it opens the only one available. It also supports mailto:

[PATCH v4 1/2] VIM: Add better attachment support

2014-10-24 Thread Ian Main
Change how the notmuch vim client supports attachments: - For each message part a 'Part number: filename' is added to the header. - You can then use 'e' to extract the attachment under the cursor or use it elsewhere to extract all attachments (the prior behavior) - You can use 'v' to 'view'

Re: Looking for the perfect mail client

2014-10-24 Thread Ian Main
Sepp Tannhuber wrote: Ian Main im...@stemwinder.org schrieb am 18:02 Freitag, 24.Oktober 2014: Interesting, good feedback. Is it the usage that is difficult or setup? Installation was not a problem for me although the files »notmuch.vim« and »notmuch.txt« were not found by »make install

Re: [PATCH v4 1/2] VIM: Add better attachment support

2014-10-27 Thread Ian Main
Tomi Ollila wrote: On Fri, Oct 24 2014, Ian Main im...@stemwinder.org wrote: Change how the notmuch vim client supports attachments: - For each message part a 'Part number: filename' is added to the header. - You can then use 'e' to extract the attachment under the cursor or use

Re: Looking for the perfect mail client

2014-10-27 Thread Ian Main
Sepp Tannhuber wrote: Ian Main im...@stemwinder.org schrieb am 23:33 Freitag, 24.Oktober 2014: https://github.com/imain/notmuch-vim/blob/master/doc/notmuch.txt Aha, the documentation is in the doc directory. Makes sense. :-) I'm sorry, I have ignored it. Perhaps you could refer

[PATCH v2] VIM: Better reply handling with multiple emails

2014-10-27 Thread Ian Main
This patch fixes reply handling when using multiple emails. This adds a config check for other_email and uses that information when formulating reply headers. It will strip out your own email addresses from the reply and set the From: to be an email of yours found in the original message. Note

[PATCH v3] VIM: Better reply handling with multiple emails

2014-10-27 Thread Ian Main
Fix reply handling when using multiple emails. This adds a config check for other_email and uses that information when formulating reply headers. It will strip out your own email addresses from the reply and set the From: to be an email of yours found in the original message. Ian --- Fix

Re: Looking for the perfect mail client

2014-10-27 Thread Ian Main
Sepp Tannhuber wrote: Ian Main im...@stemwinder.org schrieb am 23:33 Freitag, 24.Oktober 2014: https://github.com/imain/notmuch-vim/blob/master/doc/notmuch.txt Aha, the documentation is in the doc directory. Makes sense. :-) I'm sorry, I have ignored it. Perhaps you could refer

RE: [PATCH] VIM: Improve performance of folders_render

2015-01-23 Thread Ian Main
Yes, LGTM. This greatly improves performance of the startup screen. Ian Franz Fellner wrote: Simply use query.count_[messages,threads] instead of actually running the query and using the count attribute of the result set. --- vim/notmuch.vim | 2 +- 1 file changed, 1 insertion(+), 1

Re: [DRAFT] New features in Vim interface

2015-01-17 Thread Ian Main
Bartosz Telenczuk wrote: Dear David, (CC Ian and Franz) Before Christmas we had a flurry of patches from Ian Main (in copy). I think there is some functionality overlap with what you proposed. As far as I know Ian has mainly been working on his private fork of the vim client

[PATCH] Fix subject handling

2014-09-30 Thread Ian Main
I'm just starting to use notmuch so I'm not sure if this is the right way to fix this but this was erroring out so I changed it to what you see here which is working for me now. --- vim/notmuch.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/notmuch.vim

[PATCH] Make patch saving in vim a little better.

2014-09-30 Thread Ian Main
It seems like there was some bitrot on the previous version of this which made it not work correctly. This fixes the bitrot and also updates how it works. - Sometimes [PATCH.*] isn't at the beginning of the message (often on lists I'm on). - It now goes through all the messages in the thread.

[PATCH] VIM: Automatically refresh folder screen

2014-10-01 Thread Ian Main
This patch makes the folder screen refresh each time you 'enter' it. This way when you read a folder and mark items as read the changes are reflected immediately when you return to the folder view. Ian --- vim/notmuch.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/notmuch.vim

[PATCH] VIM: Automatically refresh folder screen

2014-10-01 Thread Ian Main
This patch makes the folder screen refresh each time you 'enter' it. This way when you read a folder and mark items as read the changes are reflected immediately when you return to the folder view. Ian --- vim/notmuch.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/notmuch.vim

[PATCH] VIM: Make starting in 'insert' mode for compose optional

2014-10-01 Thread Ian Main
This adds a variable to make starting in insert mode optional when composing and replying to emails. I found it unusual to be started in insert mode so I thought I'd make it optional as others may find this as well. Ian --- vim/notmuch.vim | 13 +++-- 1 file changed, 11

[PATCH] VIM: Add a 'tag all' folder option.

2014-10-01 Thread Ian Main
This adds the ability to mark an entire folder as read (or any other tags you like once you map it). Ian --- vim/notmuch.vim | 11 +++ 1 file changed, 11 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 331e930..3f2444b 100644 --- a/vim/notmuch.vim +++

[PATCH] VIM v2: Add a 'tag all' folder option.

2014-10-01 Thread Ian Main
This adds the ability to mark an entire folder as read (or any other tags you like once you map it). This update adds documentation for the command. Ian --- vim/notmuch.txt | 1 + vim/notmuch.vim | 11 +++ 2 files changed, 12 insertions(+) diff --git a/vim/notmuch.txt

[PATCH] VIM: Add better attachment support

2014-10-02 Thread Ian Main
This patch changes how the notmuch vim client supports attachments: - For each attachment an 'Attachment : ' is added to the header - You can then use 'e' to extract the attachment under the cursor or use it elsewhere to extract all attachments (the prior behavior) - You can use 'v' to 'view'

notmuch-vim doesn't respect notmuch config defaults

2014-10-02 Thread Ian Main
David Bremner wrote: > Sergei Shilovsky writes: > > > I would suggest to use `notmuch config list` to get configuration > > values in vim if possible > > I guess this is a general question we haven't really resolved, namely > sharing configuration information between various notmuch frontends.

[PATCH] VIM: Add URI handling

2014-10-02 Thread Ian Main
This patch adds URI handling to the vim client. You can now press 'u' by default and the client will parse the current line and find any URIs available. If there are more than one it opens the one under the cursor or else it opens the only one available. It also supports mailto: URI's and will

[PATCH] VIM: Use notmuch CLI for config

2014-10-02 Thread Ian Main
This patch switches from reading .notmuch-config directly to using the CLI the same way that emacs does it. It actually uses less code and is probably less error prone. Ian --- vim/notmuch.vim | 31 --- 1 file changed, 12 insertions(+), 19 deletions(-) diff

[PATCH v2] VIM: Use notmuch CLI for config

2014-10-02 Thread Ian Main
This patch switches from reading .notmuch-config directly to using the CLI the same way that emacs does it. It actually uses less code and is probably less error prone. Ian --- This update changes result to be '' instead of nil by default so missing config items won't cause an error.

[PATCH] VIM: Better reply handling with multiple emails

2014-10-02 Thread Ian Main
This patch fixes reply handling when using multiple emails. This adds a config check for other_email and uses that information when formulating reply headers. It will strip out your own email addresses from the reply and set the From: to be an email of yours found in the original message. Note

[PATCH v2] VIM: Use notmuch CLI for config

2014-10-03 Thread Ian Main
David Bremner wrote: > Ian Main writes: > > > This patch switches from reading .notmuch-config directly to using > > the CLI the same way that emacs does it. It actually uses less code > > and is probably less error prone. > > > > Ian > > The g

notmuch-vim doesn't respect notmuch config defaults

2014-10-02 Thread Ian Main
Sergei Shilovsky wrote: > I would suggest to use `notmuch config list` to get configuration > values in vim if possible > > Reproduction example follows: > > /home/sh> cat .notmuch-config > [new] > tags=new;inbox;unread > ignore= > > [search] > exclude_tags=deleted;spam > > [maildir] >

[PATCH] Improve moving between messages in a thread

2014-10-06 Thread Ian Main
This patch adds a few changes to moving between threads: - It supports 'scrolloff' so that if you have this set it will move the buffer and cursor so the next/prev email starts at the top of the screen. - It adds the ability to use shift-tab to go to the previous msg in the thread. Ian

[PATCH] Improve moving between messages in a thread

2014-10-06 Thread Ian Main
Ian Main wrote: > This patch adds a few changes to moving between threads: > > - It supports 'scrolloff' so that if you have this set it will move the > buffer and cursor so the next/prev email starts at the top of the > screen. > - It adds the ability to use shift-tab to

[PATCH] VIM: Make an option to save sent mail locally

2014-10-06 Thread Ian Main
Add an option to use 'notmuch insert' to save your sent mail. --- vim/notmuch.vim | 17 + 1 file changed, 17 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 331e930..cb280c3 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -58,6 +58,7 @@ let

[PATCH] VIM: Improve moving between messages in a thread

2014-10-06 Thread Ian Main
Add a few changes to moving between threads: - It supports 'scrolloff' so that if you have this set it will move the buffer and cursor so the next/prev email starts at the top of the screen. - It adds the ability to use shift-tab to go to the previous msg in the thread. Ian --- This

[PATCH] VIM: Make an option to save sent mail locally

2014-10-06 Thread Ian Main
Add an option to use 'notmuch insert' to save your sent mail. --- Add -inbox as well. vim/notmuch.vim | 17 + 1 file changed, 17 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 331e930..a9044c4 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -58,6 +58,7

[PATCH] VIM: Improve search list

2014-10-06 Thread Ian Main
Make the width of the search name column expand/contract with the length of the longest search name string. Fix syntax highlighting to make the above work right. Add the ability to use a blank search pattern to create a spacer to break up searches into groups. --- vim/notmuch.txt

[PATCH] VIM: Make an option to save sent mail locally

2014-10-06 Thread Ian Main
Tomi Ollila wrote: > On Mon, Oct 06 2014, Ian Main wrote: > > > Add an option to use 'notmuch insert' to save your sent mail. > > --- > > > > Add -inbox as well. > > > > vim/notmuch.vim | 17 + > > 1 file changed, 17 insertio

[PATCH] VIM: Add better attachment support

2014-10-10 Thread Ian Main
Franz Fellner wrote: > It works as described. But IMHO it would be better to prompt the user to > enter the location where he wants to save the attachment(s). This path > could be taken if s:notmuch_attachment_tmpdir_default is set to empty. > Or implement a different function for "save to". It

[PATCH] VIM: Add URI handling

2014-10-10 Thread Ian Main
Franz Fellner wrote: > Works nice. Tested with an https and a mailto URI. > But it would be awesome if you could add message id handling, So one > could easily navigate to linked messages. I only found emacs client > implement this feature. What I read in the docs about ruby URI module > it should

[PATCH] VIM: Improve moving between messages in a thread

2014-10-10 Thread Ian Main
tion. Yeah I agree. This is a start anyway. As I use the vim client more my plan is to just keep fixing things that get in my way. Thanks for catching the vim_puts. :) Thanks for you're reviews!! Ian > On Mon, 6 Oct 2014 10:55:16 -0700, Ian Main wrote: > > @@ -113,6

[PATCH] VIM: Make an option to save sent mail locally

2014-10-14 Thread Ian Main
feature and the the rest of your work is very much > appreciated! > > Franz Thanks for the review Franz! I'll do another round of patch fixing soon I'm sure. Ian > On Mon, 6 Oct 2014 11:10:36 -0700, Ian Main wrote: > > Add an option to use 'notmuch insert' to save yo

[PATCH] VIM: Add URI handling

2014-10-15 Thread Ian Main
gt; + module URI > + class MsgID < Generic > + end > + > + @@schemes['ID'] = MsgID > + end > + > class Message > attr_accessor :start, :body_start, :end > - attr_reader :message_id, :filename, :mail >

notmuch vim patches

2014-10-15 Thread Ian Main
For those who are interested, I've created a fork of the official(?) github repo that contains all the patches I've worked on so far. For those using notmuch-vim this would be a much easier way to try out the new code. https://github.com/imain/notmuch-vim I think it could be useful to get

notmuch vim patches

2014-10-16 Thread Ian Main
Franz Fellner wrote: > > > > I'm starting to realize that I could default to using 'enter' to both > > open URI's and view attachments. Any other ideas welcome. > > - make some of the functions public so users can bind them to keys they > want Not sure I understand this one. You want to

notmuch vim patches

2014-10-17 Thread Ian Main
Franz Fellner wrote: > On Thu, 16 Oct 2014 15:30:11 -0700, Ian Main wrote: > > Franz Fellner wrote: > > > > > > > > > > I'm starting to realize that I could default to using 'enter' to both > > > > open URI's and view attachments.

[PATCH] VIM: Add URI handling

2014-10-20 Thread Ian Main
Franz Fellner wrote: > On Wed, 15 Oct 2014 12:33:55 -0700, Ian Main wrote: > > Franz Fellner wrote: > > > Here is a working implementation. > > > Please review carefully as I only can simulate ruby and vimscript > > > knowledge from what I see in notmuch.vim

[PATCH v2] VIM: Use notmuch CLI for config

2014-10-20 Thread Ian Main
David Bremner wrote: > Ian Main writes: > > > This patch switches from reading .notmuch-config directly to using > > the CLI the same way that emacs does it. It actually uses less code > > and is probably less error prone. > > > > Ian > > We're

[PATCH v2] VIM: Make an option to save sent mail locally

2014-10-20 Thread Ian Main
Add an option to use 'notmuch insert' to save your sent mail. --- This update changes the 'system' line and adds a sent mailbox option. vim/notmuch.vim | 22 ++ 1 file changed, 22 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 331e930..b0c6ebd 100644 ---

[PATCH v3] VIM: Improve moving between messages in a thread

2014-10-20 Thread Ian Main
Add a few changes to moving between threads: - It supports 'scrolloff' so that if you have this set it will move the buffer and cursor so the next/prev email starts at the top of the screen. - It adds the ability to use shift-tab to go to the previous msg in the thread. Ian --- Remove

[PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Ian Main
Thanks Franz! So this works well in the main searches by not showing anything I have marked as 'spam'. However if I force a search for tag:spam and then try to view any of the messages presented they will not show up because of the way we display the email.. :-/ I'm not sure what is the best

[PATCH v2] VIM: Make patch saving in vim a little better.

2014-10-20 Thread Ian Main
It seems like there was some bitrot on the previous version of this which made it not work correctly. This fixes the bitrot and also updates how it works. - Sometimes [PATCH.*] isn't at the beginning of the message (often on lists I'm on). - It now goes through all the messages in the thread.

[PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Ian Main
Franz Fellner wrote: > Ian Main wrote: > > > > Thanks Franz! > > > > So this works well in the main searches by not showing anything I have > > marked > > as 'spam'. However if I force a search for tag:spam and then try to view > > any > &

[PATCH] VIM: Add better attachment support

2014-10-23 Thread Ian Main
This patch changes how the notmuch vim client supports attachments: - For each message part a 'Part : ' is added to the header. - You can then use 'e' to extract the attachment under the cursor or use it elsewhere to extract all attachments (the prior behavior) - You can use 'v' to 'view' the

[PATCH v2] VIM: Add URI handling

2014-10-23 Thread Ian Main
Add URI handling to the vim client. You can now press 'enter' by default and the client will parse the current line and find any 'Part's or URIs available for opening. If there are more than one it opens the one under the cursor or else it opens the only one available. It also supports mailto:

[PATCH] VIM: Fix header management and fold threads

2014-10-23 Thread Ian Main
Yes, it's here, the patch you've all been waiting for! Well, maybe: - Add a variable to control which headers are displayed normally. - Any header that is not displayed normally will be listed in a folded area in the message so you can access it at will (can be turned off). - Add the

Looking for the perfect mail client

2014-10-23 Thread Ian Main
Sepp Tannhuber wrote: > Dear all, > > I'm wondering whether there's a notmuch mail client > - with a handling similar to alot > - which is capable to show html content without html2ascii conversion > - which can use vim as editor > - which doesn't need a web browser > - which doesn't need a mouse

[PATCH v2] VIM: Fix header management and fold threads

2014-10-23 Thread Ian Main
Yes, it's here, the patch you've all been waiting for! Well, maybe: - Add a variable to control which headers are displayed normally. - Any header that is not displayed normally will be listed in a folded area in the message so you can access it at will (can be turned off). - Add the

[PATCH] VIM: Automatically refresh folder screen

2014-10-24 Thread Ian Main
Can I get someone to test this one? It's pretty simple and useful. Ian Ian Main wrote: > This patch makes the folder screen refresh each time you 'enter' it. > This way when you read a folder and mark items as read the changes are > reflected immediately when you return to the fo

[PATCH] VIM v2: Add a 'tag all' folder option.

2014-10-24 Thread Ian Main
This one is pretty straightforward and useful too. Ian Ian Main wrote: > This adds the ability to mark an entire folder as read (or any other > tags you like once you map it). > > This update adds documentation for the command. > > Ian > --- > vim/notmuch.txt |

Looking for the perfect mail client

2014-10-24 Thread Ian Main
Sepp Tannhuber wrote: > Ian Main schrieb am 6:28 Freitag, 24.Oktober 2014: > > > I wonder if you'd be willing to give the vim client a go. We've done a lot > > of work to it lately and I think it would handle all you listed here. > For me, it's hard to get familiar w

[PATCH v3] VIM: Add URI handling

2014-10-24 Thread Ian Main
This patch adds URI handling to the vim client. You can now press 'enter' by default and the client will parse the current line and find any 'Part's or URIs available for opening. If there are more than one it opens the one under the cursor or else it opens the only one available. It also

[PATCH v4 1/2] VIM: Add better attachment support

2014-10-24 Thread Ian Main
Change how the notmuch vim client supports attachments: - For each message part a 'Part : ' is added to the header. - You can then use 'e' to extract the attachment under the cursor or use it elsewhere to extract all attachments (the prior behavior) - You can use 'v' to 'view' the

[PATCH v4 2/2] VIM: Add URI handling

2014-10-24 Thread Ian Main
Add URI handling to the vim client. You can now press 'enter' by default and the client will parse the current line and find any 'Part's or URIs available for opening. If there are more than one it opens the one under the cursor or else it opens the only one available. It also supports mailto:

  1   2   >