[PATCH v3 2/4] Integrate notmuch-maildir-fcc into notmuch

2010-04-26 Thread Sebastian Spaeth
Require notmuch-maildir-fcc and also install it. Rename all jkr/* functions to notmuch-maildir-fcc-* Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- emacs/Makefile.local |1 + emacs/notmuch-maildir-fcc.el | 42 ++ emacs/notmuch.el

[PATCH v3 4/4] Integrate notmuch-fcc mechansim

2010-04-26 Thread Sebastian Spaeth
I have gone wild and added a defcustom notmuch-fcc-dirs. Depending on the value of that variable we will not do any maildir fcc at all (nil, the default), or it is of the format ((defaultsentbox) (full name em...@address . Work/sentbox) (full name2 ema...@address2 . Work2/sentbox)) The outbox

[PATCH 1/3] emacs: Adapt the logo background colour to that of the frame

2010-04-26 Thread David Edmondson
The notmuch logo uses transparency. That can display poorly when inserting the image into an emacs buffer (black logo on a black background), so force the background colour of the image. We use a face (`notmuch-hello-logo-background') to represent the colour so that `defface' can be used to

[PATCH 3/3] emacs: Add a search to the 'recent searches' list once only

2010-04-26 Thread David Edmondson
Avoiding adding the same search string to the 'recent searches' list more than once by testing whether the string was already used with `member' rather than `memq'. --- emacs/notmuch-hello.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-hello.el

[PATCH 2/3] emacs: Remove the accelerator keys from the hello buffer

2010-04-26 Thread David Edmondson
Carl though that the recent search accelerator keys are not useful, so remove them. --- emacs/notmuch-hello.el | 44 ++-- 1 files changed, 18 insertions(+), 26 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index

Re: Unhandled Xapian exception

2010-04-26 Thread Sebastian Spaeth
On 2010-04-24, Carl Worth wrote: On Fri, 23 Apr 2010 13:21:56 +0200, Sebastian Spaeth sebast...@sspaeth.de wrote: I propose to try..catch this code block and rather than returning VOID it could return NOTMUCH_STATUS_SUCCESS or NOTMUCH_XAPIAN_EXCEPTION. Not sure how

Re: [PATCH] emacs: Add notmuch-hello.el, a friendly frontend to notmuch

2010-04-26 Thread David Edmondson
On Fri, 23 Apr 2010 13:13:01 -0700, Carl Worth cwo...@cworth.org wrote: * This should be integrated such that (require 'notmuch) provides the notmuch-hello functionality. That's our documented access point for getting at notmuch functionality. I'll do this, but I wonder if it is

Re: [SCM] notmuch - thread-based email index, search and tagging. branch, master, updated. 0.2-180-gc87d17f

2010-04-26 Thread Sebastian Spaeth
On 2010-04-25, David Edmondson wrote: Originally this was the behaviour (jump to the search box), but I found that it really annoyed me. To use any of the keybindings it's necessary to move the cursor out of the search entry area. Actually, a widget can have its own keymap, so it is entirely

Re: sort order regression

2010-04-26 Thread Michal Sojka
Want to replay all the git test-suite commits other than any from the person with the missing ack? That should get us pretty close to the current state in git, would give us code we could use, and might even make it possible for us to submit improvements directly to the upstream git

[PATCH] test: Comment why we need to set TZ

2010-04-26 Thread Michal Sojka
--- test/notmuch-test |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/test/notmuch-test b/test/notmuch-test index 7082344..dc413f7 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -1,6 +1,10 @@ #!/bin/bash set -e +# Messages contain time/date values with

[PATCH] emacs: Correct message/header/citation/signature hiding

2010-04-26 Thread David Edmondson
Set `buffer-invisibility-spec' to `nil' (a list) if it is just `t' before inserting any body parts, otherwise removing items from `buffer-invisibility-spec' (which is what `notmuch-show-headers-visible' and `notmuch-show-message-visible' do) is a no-op and has no effect. This caused threads with

Re: [PATCH] RFC: Add From guessing when forwarding email

2010-04-26 Thread David Edmondson
On Fri, 23 Apr 2010 15:52:15 -0700, Dirk Hohndel hohn...@infradead.org wrote: Given how little elisp I know I'm quite interested in feedback and better implementations I think that: (defun notmuch-show-forward-message () Forward the current message. (interactive) (let ((user-mail-address

[PATCH] emacs: Automatically load notmuch-address

2010-04-26 Thread David Edmondson
notmuch-address.el tries to be careful to insinuate itself into message mode only if it will do something useful, so it's safe to load it all of the time. --- emacs/notmuch-mua.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el

Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread David Edmondson
On Fri, 23 Apr 2010 17:49:38 -0700, Carl Worth cwo...@cworth.org wrote: I finally hit on doing (require 'notmuch-address) in .emacs. As noted previously, can we please make (require 'notmuch) pull in all notmuch functionality rather than having it separated like this? Patch sent. Finally,

Re: Wrapping up the 0.3 release

2010-04-26 Thread Jameson Rollins
On Mon, 26 Apr 2010 11:51:46 +0530, Aneesh Kumar K. V aneesh.ku...@linux.vnet.ibm.com wrote: * A thread with only one message doesn't show the message body by default. I need to use 'h' key binding to show the message body. Multiple message thread seems to work fine. Yeah, I've been

Re: [PATCH] emacs: Allow headers to be shown by default in show mode

2010-04-26 Thread David Edmondson
On Sat, 24 Apr 2010 05:42:54 -0700, Carl Worth cwo...@cworth.org wrote: On Fri, 23 Apr 2010 21:08:48 +0100, David Edmondson d...@dme.org wrote: I like the current behaviour, but changing the default would be fine. Which parts of it do you like? Being able to toggle the header back and

Re: [PATCH] notmuch.pod: pod version of documentation, converted by rman, massaged by hand.

2010-04-26 Thread David Edmondson
On Sat, 24 Apr 2010 11:04:49 -0300, David Bremner da...@tethera.net wrote: As I'm faced with writing docs for output selection, I'd like to revisit this idea. I didn't get any feedback, positive or negative about the idea of keeping the docs in pod. I don't care much about the format, but I

Re: Unhandled Xapian exception

2010-04-26 Thread David Edmondson
On Sat, 24 Apr 2010 07:38:03 -0700, Carl Worth cwo...@cworth.org wrote: Otherwise, we might want to start supporting more clever handling of the exception. For example, the high-level application might want to retry an operation if it fails due to a DatabaseModified exception. This is what I

Re: Kudos! Also: +1 PGP!

2010-04-26 Thread Jameson Rollins
On Sun, 25 Apr 2010 19:57:33 +0100, Darren McGuicken mailing-notm...@fernseed.info wrote: I've been slowly moving all my day-to-day mailing needs to notmuch over the last month and the only thing I'm missing is native message decryption and verification support - is this being actively worked

[PATCH] emacs: Suppress window creation when replying

2010-04-26 Thread David Edmondson
The buffer used to edit a reply should overlay the original message. Encourage this by setting `same-window-regexps' locally. --- emacs/notmuch-mua.el | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index

[PATCH] emacs: Sort headers when composing

2010-04-26 Thread David Edmondson
Always sort the headers in the message composition window. --- emacs/notmuch-mua.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index b69e31c..004b50a 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -112,6

Re: Wrapping up the 0.3 release

2010-04-26 Thread David Edmondson
On Sat, 24 Apr 2010 08:37:11 -0700, Carl Worth cwo...@cworth.org wrote: Meanwhile, I'm aware of two regressions I'd like to see fixed before 0.3: * Reply is now splitting the window We're copying the original message into the new reply buffer, so what's the advantage of

Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread Sebastian Spaeth
On 2010-04-26, David Edmondson wrote: M-n to move forward in the list, M-p to move backwards (including into any history you have accrued). Alternatively, some of us have that weird new invention on their keyboards called arrow keys ;-) ___ notmuch

[PATCH] emacs: Hide the User-Agent: when composing messages

2010-04-26 Thread David Edmondson
Add a list of headers to those hidden by `message-mode' when composing. By default the list includes only User-Agent:. --- emacs/notmuch-mua.el | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index

[wiki] emacstips: Add GPG signing tip

2010-04-26 Thread Sebastian Spaeth
I just added a short blurb to the wiki page stating how to sign/encrypt outgoing mail conveniently. Please review and improve: http://notmuchmail.org/emacstips/#sign_messages_gpg Sebastian P.S. Do note that this mail should be signed if things are working out :) pgplzkPvrLCyu.pgp Description:

[PATCH] emacs: Add more functions to clean up text/plain parts

2010-04-26 Thread David Edmondson
Add: - notmuch-wash-wrap-long-lines: Wrap lines longer than the width of the current window whilst maintaining any citation prefix. - notmuch-wash-tidy-citations: Tidy up citations by: - compress repeated otherwise blank citation lines, - remove otherwise blank citation lines at the head and

Re: Kudos! Also: +1 PGP!

2010-04-26 Thread Sebastian Spaeth
We were discussing on IRC whether decryption should be handled in notmuch show --decrypt or in emacs and I had a quick look at what it would take for emacs. Here is a snippet of code that outputs Good signature from 5585F58CC827A062 Sebastian Spaeth (Private Communication) sebast...@sspaeth.de

[PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread David Edmondson
For composing new messages and forwarding, leave the cursor on the 'To:' field. For replies, leave the cursor at the start of the body. In all cases, mark the buffer as not modified so that the user is not prompted if she decides to immediately kill the buffer. --- emacs/notmuch-mua.el | 32

Re: Wrapping up the 0.3 release

2010-04-26 Thread Carl Worth
On Sat, 24 Apr 2010 08:37:11 -0700, Carl Worth cwo...@cworth.org wrote: * Reply is now splitting the window Patch sent. * Composing a new message with 'm' brings up headers in a scrambled order. Patch sent. Perfect! Both of these are pushed now. Thanks for the quick fixes.

Re: [PATCH] configure: add ignored options for compatibility.

2010-04-26 Thread Carl Worth
gentoo's ebuild script expects 2 more options for configure: --host (same format as --build) --datadir Thanks. This is pushed now. -Carl -- carl.d.wo...@intel.com pgpUEt0nvM8nz.pgp Description: PGP signature ___ notmuch mailing list

Some messages show only headers.

2010-04-26 Thread Abhishek Dasgupta
Hi all, I've been using notmuch for some time, and I noticed that some mails show only the header when pressing [return] on notmuch-show-all. If I press [return] on the highlighted From: header then the entire message displays. Is this behaviour expected? The default behaviour in most other

Re: [PATCH] Makefile: specify libnotmuch.so location with -rpath

2010-04-26 Thread Carl Worth
On Sun, 25 Apr 2010 17:59:35 +0200, Adrien Bustany mad...@mymadcat.com wrote: On Sun, 25 Apr 2010 16:38:40 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: In order to handle installation into user directories, it is convenient to encode the library location into the search path for the

[PATCH] emacs: Fix `notmuch-show-rewind' in the presence of invisible text

2010-04-26 Thread dme
From: David Edmondson d...@dme.org When determining whether or not to re-align the head of the current message with the top of the window, use `count-screen-lines' rather than `count-lines' to allow for invisible text in the preceding message. When comparing that number of lines against

Re: [PATCH] emacs: Add notmuch-hello.el, a friendly frontend to notmuch

2010-04-26 Thread Carl Worth
-- carl.d.wo...@intel.com On Mon, 26 Apr 2010 10:36:28 +0100, David Edmondson d...@dme.org wrote: I'll do this, but I wonder if it is actually good advice. My primary point is that all of the implemented functionality, (including notmuch-hello and notmuch-addresses), needs to be made available

Re: sort order regression

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 11:59:12 +0200, Michal Sojka sojk...@fel.cvut.cz wrote: Want to replay all the git test-suite commits other than any from the person with the missing ack? I do not fully understand what you propose here. You mean to reply the commits from git repository into notmuch

[PATCH] emacs: `notmuch' should display the `notmuch-hello' interface

2010-04-26 Thread dme
From: David Edmondson d...@dme.org --- emacs/notmuch-hello.el |1 - emacs/notmuch-lib.el |5 + emacs/notmuch.el |7 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 30b3a5e..bd882b8 100644 ---

Re: [PATCH] emacs: Correct message/header/citation/signature hiding

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 11:17:11 +0100, David Edmondson d...@dme.org wrote: Set `buffer-invisibility-spec' to `nil' (a list) if it is just `t' before inserting any body parts, otherwise removing items from `buffer-invisibility-spec' (which is what `notmuch-show-headers-visible' and

[PATCH] emacs: Remove duplicate declaration of `notmuch-folders'

2010-04-26 Thread dme
From: David Edmondson d...@dme.org --- emacs/notmuch.el |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 428ae6c..e207180 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -659,11 +659,6 @@ characters as well as `_.+-'.

Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 11:49:46 +0100, David Edmondson d...@dme.org wrote: On Fri, 23 Apr 2010 17:49:38 -0700, Carl Worth cwo...@cworth.org wrote: I finally hit on doing (require 'notmuch-address) in .emacs. As noted previously, can we please make (require 'notmuch) pull in all notmuch

Re: [PATCH] emacs: Fix `notmuch-search-insert-field'

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 13:16:07 +0100, David Edmondson d...@dme.org wrote: Compare the formatted version of the authors with the formatted sample string rather than the un-formatted authors with the formatted sample string. --- Carl, please pull this in for 0.3. Pushed (without testing---just

Re: Kudos! Also: +1 PGP!

2010-04-26 Thread David Edmondson
On Mon, 26 Apr 2010 15:52:37 +0200, Sebastian Spaeth sebast...@sspaeth.de wrote: We were discussing on IRC whether decryption should be handled in notmuch show --decrypt or in emacs and I had a quick look at what it would take for emacs. Here is a snippet of code that outputs Good signature

Re: Some messages show only headers.

2010-04-26 Thread Dirk Hohndel
On Sun, 25 Apr 2010 10:57:10 +0530, Abhishek Dasgupta abh...@gmail.com wrote: Hi all, I've been using notmuch for some time, and I noticed that some mails show only the header when pressing [return] on notmuch-show-all. If I press [return] on the highlighted From: header then the entire

Re: [SCM] notmuch - thread-based email index, search and tagging. branch, master, updated. 0.2-191-g38c35f8

2010-04-26 Thread David Edmondson
On Mon, 26 Apr 2010 07:17:47 -0700 (PDT), notmuch-commits-sen...@notmuchmail.org (Carl Worth) wrote: commit 97570954cb583cacac35b0235cbe449a07630ae3 Author: David Edmondson d...@dme.org Date: Thu Apr 22 13:26:06 2010 +0100 emacs: Add more functions to clean up text/plain parts

Re: Kudos! Also: +1 PGP!

2010-04-26 Thread Jameson Rollins
On Mon, 26 Apr 2010 17:11:33 +0100, David Edmondson d...@dme.org wrote: multipart/signed really needs the re-worked JSON output so that the UI can know what is going on. It might be possible to kludge something together with the current output, but it will be awkward. Actually the emacs UI is

Re: Some messages show only headers.

2010-04-26 Thread Jameson Rollins
On Mon, 26 Apr 2010 09:13:20 -0700, Dirk Hohndel hohn...@infradead.org wrote: I think Carl already pushed the fix. Yes, he did, and it appears to have fixed the problem. jamie. pgp3gqGFbiZG1.pgp Description: PGP signature ___ notmuch mailing list

Re: [PATCH] emacs: Allow headers to be shown by default in show mode

2010-04-26 Thread Dirk Hohndel
On Mon, 26 Apr 2010 11:55:33 +0100, David Edmondson d...@dme.org wrote: On Sat, 24 Apr 2010 05:42:54 -0700, Carl Worth cwo...@cworth.org wrote: On Fri, 23 Apr 2010 21:08:48 +0100, David Edmondson d...@dme.org wrote: I like the current behaviour, but changing the default would be fine.

Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread David Edmondson
To: David Edmondson d...@dme.org, notmuch@notmuchmail.org, d...@yoom.home.cworth.org Cc: c...@ut.hh.sledj.net Date: Mon, 26 Apr 2010 08:21:51 -0700 Something interesting is happening here :-) dme. -- David Edmondson, http://dme.org pgpgH6xAit11l.pgp Description: PGP signature

Re: [PATCH] emacs: `notmuch' should display the `notmuch-hello' interface

2010-04-26 Thread David Edmondson
On Mon, 26 Apr 2010 09:11:07 -0700, Dirk Hohndel hohn...@infradead.org wrote: This is lacking a committ message... I wasn't sure what else to say. On Mon, 26 Apr 2010 16:07:04 +0100, d...@dme.org wrote: From: David Edmondson d...@dme.org --- a/emacs/notmuch-lib.el +++

Re: Kudos! Also: +1 PGP!

2010-04-26 Thread David Edmondson
On Mon, 26 Apr 2010 12:19:26 -0400, Jameson Rollins jroll...@finestructure.net wrote: On Mon, 26 Apr 2010 17:11:33 +0100, David Edmondson d...@dme.org wrote: multipart/signed really needs the re-worked JSON output so that the UI can know what is going on. It might be possible to kludge

Re: [PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread Dirk Hohndel
On Mon, 26 Apr 2010 15:01:25 +0100, David Edmondson d...@dme.org wrote: For composing new messages and forwarding, leave the cursor on the 'To:' field. For replies, leave the cursor at the start of the body. In all cases, mark the buffer as not modified so that the user is not prompted if she

Re: [PATCH] emacs: Add more functions to clean up text/plain parts

2010-04-26 Thread Carl Worth
None of these is enabled by default - add them to `notmuch-show-insert-text/plain-hook' to use. --- Another attempt :-) - Functions renamed to be clearer about what they do, - Function documentation both more concise (for display in customisation buffers) and more complete, -

Re: [PATCH] emacs: Remove duplicate declaration of `notmuch-folders'

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 16:09:43 +0100, d...@dme.org wrote: From: David Edmondson d...@dme.org [no commit message] Thanks, David. Allow me the chance to try to convince you that *every* commit requires a sentence or two of justification, (beyond the one-line summary just stating what the patch

Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 17:27:38 +0100, David Edmondson d...@dme.org wrote: Patch is sent for this, though given that it's not easy to change the prompt as you step through, it says: Address (7 match): Name Here addr...@example.com Thanks. I've pushed this. Bonus points to someone who

Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 17:28:47 +0100, David Edmondson d...@dme.org wrote: To: David Edmondson d...@dme.org, notmuch@notmuchmail.org, d...@yoom.home.cworth.org Cc: c...@ut.hh.sledj.net Date: Mon, 26 Apr 2010 08:21:51 -0700 Something interesting is happening here :-) Dirk wasn't

Re: Kudos! Also: +1 PGP!

2010-04-26 Thread Darren McGuicken
On Mon, 26 Apr 2010 07:16:16 -0400, Jameson Rollins jroll...@finestructure.net wrote: In the meantime, I find myself using the snippet from Tassilo in: id:87zl6cl595@thinkpad.tsdh.de I'm interested in using this as a stop-gap, but unfortunately I'm not finding this message in my

Re: bug tracking

2010-04-26 Thread Carl Worth
On Thu, 22 Apr 2010 14:37:26 -0300, David Bremner brem...@unb.ca wrote: It was thinking along these lines that got me to make the following list http://www.cs.unb.ca/~bremner/blog/posts/git-issue-trackers/ I'm not sure what it is you think of as a git-based issue tracker. Or rather, I'm not

Re: [PATCH] Makefile.local: Fix LDFLAGS for notmuch-shared

2010-04-26 Thread Carl Worth
On Thu, 22 Apr 2010 23:04:30 -0400, Adrien Bustany abust...@gnome.org wrote: This commit adds GMIME_LDFLAGS and TALLOC_LDFLAGS to the linker flags when linking notmuch-shared. Without these flags, linking fails because of undefined symbols. Hi Adrien, What system are you using that has this

Re: [PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread Carl Worth
carl.d.wo...@intel.com On Mon, 26 Apr 2010 19:20:04 +0100, David Edmondson d...@dme.org wrote: On Mon, 26 Apr 2010 11:03:36 -0700, Carl Worth cwo...@cworth.org wrote: Thanks. I've pushed this. Bonus points to someone who fixes it to avoid printing 1 matches. It shouldn't do that: ... Does

Re: new patch series for author reordering code

2010-04-26 Thread Carl Worth
On Sat, 24 Apr 2010 11:20:52 -0700, Dirk Hohndel hohn...@infradead.org wrote: I think this could go into 0.3 as is. I've been using the mostly identical previous version for about a week - the changes here are mostly cleanup based on cworth's feedback. Thanks, Dirk. This made a very nice

[PATCH 1/2] Make Received: header special in notmuch_message_file_get_header

2010-04-26 Thread Dirk Hohndel
With this patch the Received: header becomes special in the way we treat headers - this is the only header for which we concatenate all the instances we find (instead of just returning the first one). This will be used in the From guessing code for replies as we need to be able to walk ALL of the

Re: [PATCH v3 1/4] Add elisp file for FCC to maildir solution

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 10:23:15 +0200, Sebastian Spaeth sebast...@sspaeth.de wrote: The patch series needed rebasing as it conflicts now with some of the notmuch-hello and notmuch-mua additions. Also, I integrated Dirk's proposal to use assoc-string which makes the address lookup

Re: [PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread Dirk Hohndel
On Mon, 26 Apr 2010 10:28:33 -0700, Carl Worth cwo...@cworth.org wrote: On Mon, 26 Apr 2010 09:31:49 -0700, Dirk Hohndel hohn...@infradead.org wrote: On Mon, 26 Apr 2010 15:01:25 +0100, David Edmondson d...@dme.org wrote: For composing new messages and forwarding, leave the cursor on the

Re: [PATCH] notmuch.pod: pod version of documentation, converted by rman, massaged by hand.

2010-04-26 Thread David Bremner
On Mon, 26 Apr 2010 16:33:27 -0700, Carl Worth cwo...@cworth.org wrote: I tried to look at it a couple of times, but it was already stale then so I didn't look hard enough. The couple of questions I have are: * How close does the generated output match what we have today? Pretty

[PATCH] emacs: fcc should fail at the right time if it doesn't point to a maildir

2010-04-26 Thread Jesse Rosenthal
Throw an error after the maildir is generated but before the message is sent. This change allows the user to edit the maildir if it fails, so that it will point to a correct place. Note that this changes the previous behavior which always overwrote the existing Fcc line. Now, an Fcc line is only

Re: [PATCH] emacs: fcc should fail at the right time if it doesn't point to a maildir

2010-04-26 Thread Dirk Hohndel
On Mon, 26 Apr 2010 20:29:27 -0400, Jesse Rosenthal jrosent...@jhu.edu wrote: Throw an error after the maildir is generated but before the message is sent. This change allows the user to edit the maildir if it fails, so that it will point to a correct place. Note that this changes the

RFC: Adding an attachment composition interface to notmuch

2010-04-26 Thread Jesse Rosenthal
On Sun, 25 Apr 2010 19:52:54 -0700, Dirk Hohndel wrote: > From your description I can't quite tell if tach is overkill, > though. When I just attach a file I'd like to be able to do this just > using the minibuffer to pick a file - not having to open another buffer, > press +, find the file,

Wrapping up the 0.3 release

2010-04-26 Thread Aneesh Kumar K. V
On Sat, 24 Apr 2010 08:37:11 -0700, Carl Worth wrote: > I pushed hard to get most everything we wanted for 0.3 done yesterday, > (which was one week since 0.2). I think we're still within the tolerance > of my published "about a week" schedule, but I would like to wrap things > up soon. > > Here

[PATCH v3 1/4] Add elisp file for FCC to maildir solution

2010-04-26 Thread Sebastian Spaeth
From: Jesse Rosenthal File grabbed from http://jkr.acm.jhu.edu/jkr-maildir.el but not integrated yet. Signed-off-by: Sebastian Spaeth --- The patch series needed rebasing as it conflicts now with some of the notmuch-hello and notmuch-mua additions. Also, I integrated

[PATCH v3 2/4] Integrate notmuch-maildir-fcc into notmuch

2010-04-26 Thread Sebastian Spaeth
Require notmuch-maildir-fcc and also install it. Rename all jkr/* functions to notmuch-maildir-fcc-* Signed-off-by: Sebastian Spaeth --- emacs/Makefile.local |1 + emacs/notmuch-maildir-fcc.el | 42 ++ emacs/notmuch.el |1 +

[PATCH v3 3/4] notmuch-maildir-fcc: elisp syntax fixes

2010-04-26 Thread Sebastian Spaeth
1)use insert-buffer-substring Rather than the insert-buffer. Emacs complains that it is for interactive use and not for use within elisp. So use insert-buffer-substring which does the same thing when not handed any 'begin' 'end' parameters. 2)replace caddr with (car (cdr (cdr))) The former

[PATCH v3 4/4] Integrate notmuch-fcc mechansim

2010-04-26 Thread Sebastian Spaeth
I have gone wild and added a defcustom "notmuch-fcc-dirs". Depending on the value of that variable we will not do any maildir fcc at all (nil, the default), or it is of the format (("defaultsentbox") ("full name " . "Work/sentbox") ("full name2 " . "Work2/sentbox")) The outbox name will be

[PATCH 1/3] emacs: Adapt the logo background colour to that of the frame

2010-04-26 Thread David Edmondson
The notmuch logo uses transparency. That can display poorly when inserting the image into an emacs buffer (black logo on a black background), so force the background colour of the image. We use a face (`notmuch-hello-logo-background') to represent the colour so that `defface' can be used to

[PATCH 3/3] emacs: Add a search to the 'recent searches' list once only

2010-04-26 Thread David Edmondson
Avoiding adding the same search string to the 'recent searches' list more than once by testing whether the string was already used with `member' rather than `memq'. --- emacs/notmuch-hello.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-hello.el

[PATCH 2/3] emacs: Remove the accelerator keys from the hello buffer

2010-04-26 Thread David Edmondson
Carl though that the recent search accelerator keys are not useful, so remove them. --- emacs/notmuch-hello.el | 44 ++-- 1 files changed, 18 insertions(+), 26 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index

Unhandled Xapian exception

2010-04-26 Thread Sebastian Spaeth
On 2010-04-24, Carl Worth wrote: > On Fri, 23 Apr 2010 13:21:56 +0200, "Sebastian Spaeth" SSpaeth.de> wrote: > > I propose to try..catch this code block and rather than returning VOID > > it could return NOTMUCH_STATUS_SUCCESS or NOTMUCH_XAPIAN_EXCEPTION. > > Not sure how

[PATCH] emacs: Add notmuch-hello.el, a friendly frontend to notmuch

2010-04-26 Thread David Edmondson
On Fri, 23 Apr 2010 13:13:01 -0700, Carl Worth wrote: > * This should be integrated such that (require 'notmuch) provides the > notmuch-hello functionality. That's our documented access point for > getting at notmuch functionality. I'll do this, but I wonder if it is actually good

[SCM] notmuch - thread-based email index, search and tagging. branch, master, updated. 0.2-180-gc87d17f

2010-04-26 Thread Sebastian Spaeth
On 2010-04-25, David Edmondson wrote: > Originally this was the behaviour (jump to the search box), but I found > that it really annoyed me. To use any of the keybindings it's necessary > to move the cursor out of the search entry area. Actually, a widget can have its own keymap, so it is

sort order regression

2010-04-26 Thread Michal Sojka
> Want to replay all the git test-suite commits other than any from the > person with the missing ack? That should get us pretty close to the > current state in git, would give us code we could use, and might even > make it possible for us to submit improvements directly to the upstream > git

[PATCH] test: Comment why we need to set TZ

2010-04-26 Thread Michal Sojka
--- test/notmuch-test |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/test/notmuch-test b/test/notmuch-test index 7082344..dc413f7 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -1,6 +1,10 @@ #!/bin/bash set -e +# Messages contain time/date values with

[PATCH] emacs: Correct message/header/citation/signature hiding

2010-04-26 Thread David Edmondson
Set `buffer-invisibility-spec' to `nil' (a list) if it is just `t' before inserting any body parts, otherwise removing items from `buffer-invisibility-spec' (which is what `notmuch-show-headers-visible' and `notmuch-show-message-visible' do) is a no-op and has no effect. This caused threads with

[PATCH] RFC: Add From guessing when forwarding email

2010-04-26 Thread David Edmondson
On Fri, 23 Apr 2010 15:52:15 -0700, Dirk Hohndel wrote: > Given how little elisp I know I'm quite interested in feedback > and better implementations I think that: (defun notmuch-show-forward-message () "Forward the current message." (interactive) (let ((user-mail-address

[PATCH] emacs: Automatically load "notmuch-address"

2010-04-26 Thread David Edmondson
"notmuch-address.el" tries to be careful to insinuate itself into message mode only if it will do something useful, so it's safe to load it all of the time. --- emacs/notmuch-mua.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-mua.el

[PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread David Edmondson
On Fri, 23 Apr 2010 17:49:38 -0700, Carl Worth wrote: > I finally hit on doing (require 'notmuch-address) in .emacs. As noted > previously, can we please make (require 'notmuch) pull in all notmuch > functionality rather than having it separated like this? Patch sent. > Finally, though, I

Wrapping up the 0.3 release

2010-04-26 Thread Jameson Rollins
his as well. 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/20100426/10e27e40/attachment.pgp>

[PATCH] emacs: Allow headers to be shown by default in show mode

2010-04-26 Thread David Edmondson
On Sat, 24 Apr 2010 05:42:54 -0700, Carl Worth wrote: > On Fri, 23 Apr 2010 21:08:48 +0100, David Edmondson wrote: > > I like the current behaviour, but changing the default would be fine. > > Which parts of it do you like? Being able to toggle the header back and > forth? Or just that the

[PATCH] notmuch.pod: pod version of documentation, converted by rman, massaged by hand.

2010-04-26 Thread David Edmondson
On Sat, 24 Apr 2010 11:04:49 -0300, David Bremner wrote: > As I'm faced with writing docs for output selection, I'd like to revisit > this idea. I didn't get any feedback, positive or negative about the > idea of keeping the docs in pod. I don't care much about the format, > but I think it would

Unhandled Xapian exception

2010-04-26 Thread David Edmondson
On Sat, 24 Apr 2010 07:38:03 -0700, Carl Worth wrote: > Otherwise, we might want to start supporting more clever handling of the > exception. For example, the high-level application might want to retry > an operation if it fails due to a DatabaseModified exception. This is what I would like to

Kudos! Also: +1 PGP!

2010-04-26 Thread Jameson Rollins
-- 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/20100426/c10e10be/attachment.pgp>

[PATCH] emacs: Suppress window creation when replying

2010-04-26 Thread David Edmondson
The buffer used to edit a reply should overlay the original message. Encourage this by setting `same-window-regexps' locally. --- emacs/notmuch-mua.el | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index

[PATCH] emacs: Sort headers when composing

2010-04-26 Thread David Edmondson
Always sort the headers in the message composition window. --- emacs/notmuch-mua.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index b69e31c..004b50a 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -112,6

Wrapping up the 0.3 release

2010-04-26 Thread David Edmondson
On Sat, 24 Apr 2010 08:37:11 -0700, Carl Worth wrote: > Meanwhile, I'm aware of two regressions I'd like to see fixed before > 0.3: > > * Reply is now splitting the window > > We're copying the original message into the new reply buffer, so > what's the advantage of splitting here?

[PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread Sebastian Spaeth
On 2010-04-26, David Edmondson wrote: > M-n to move forward in the list, M-p to move backwards (including into > any history you have accrued). Alternatively, some of us have that weird new invention on their keyboards called "arrow keys" ;-)

[PATCH] emacs: Add notmuch-address.el for address completion using notmuch

2010-04-26 Thread David Edmondson
On Mon, 26 Apr 2010 13:29:42 +0200, "Sebastian Spaeth" wrote: > On 2010-04-26, David Edmondson wrote: > > M-n to move forward in the list, M-p to move backwards (including into > > any history you have accrued). > > Alternatively, some of us have that weird new invention on their > keyboards

[PATCH] emacs: Hide the "User-Agent:" when composing messages

2010-04-26 Thread David Edmondson
Add a list of headers to those hidden by `message-mode' when composing. By default the list includes only "User-Agent:". --- emacs/notmuch-mua.el | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index

[PATCH] emacs: Fix `notmuch-search-insert-field'

2010-04-26 Thread David Edmondson
Compare the formatted version of the authors with the formatted sample string rather than the un-formatted authors with the formatted sample string. --- Carl, please pull this in for 0.3. The previous fix didn't work correctly when the authors string was one character shorter than the length

[wiki] emacstips: Add GPG signing tip

2010-04-26 Thread Sebastian Spaeth
-- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100426/afe5a840/attachment.pgp>

[PATCH] emacs: Add more functions to clean up text/plain parts

2010-04-26 Thread David Edmondson
Add: - notmuch-wash-wrap-long-lines: Wrap lines longer than the width of the current window whilst maintaining any citation prefix. - notmuch-wash-tidy-citations: Tidy up citations by: - compress repeated otherwise blank citation lines, - remove otherwise blank citation lines at the head and

Kudos! Also: +1 PGP!

2010-04-26 Thread Sebastian Spaeth
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100426/80d94497/attachment.pgp>

[PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread David Edmondson
For composing new messages and forwarding, leave the cursor on the 'To:' field. For replies, leave the cursor at the start of the body. In all cases, mark the buffer as not modified so that the user is not prompted if she decides to immediately kill the buffer. --- emacs/notmuch-mua.el | 32

Wrapping up the 0.3 release

2010-04-26 Thread Carl Worth
<http://notmuchmail.org/pipermail/notmuch/attachments/20100426/a7d4b088/attachment-0001.pgp>

  1   2   >