[PATCH v2 2/2] emacs: fix `notmuch-wash-region-to-button' to work at beginning of buffer

2012-02-03 Thread Dmitry Kurochkin
`Notmuch-wash-region-to-button' is the function that creates hidden regions with buttons for signatures, citations and original messages. Before the change, it did not work correctly if the to-be-hidden region started at the beginning of a message: the visibility toggle button was hidden as well.

[PATCH v2 1/2] test: add test for hiding Original Message region at beginning of a message

2012-02-03 Thread Dmitry Kurochkin
The test is currently broken and will be fixed by a subsequent patch. The patch adds a new file for tests of Emacs notmuch-show view. Based on patch by David Edmondson [1]. [1] id:"1327562380-12894-4-git-send-email-...@dme.org" --- test/emacs-show | 28 test/not

[PATCH v2 0/2] emacs: fix `notmuch-wash-region-to-button' to work at beginning of buffer

2012-02-03 Thread Dmitry Kurochkin
Changes since v1: * rebase on the current master, just one trivial conflict so no need for another round of review Regards, Dmitry ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH 0/2] Bug and potential fix: forwarded messages

2012-02-03 Thread Adam Wolfe Gordon
Oh, and I just noticed that Dmitry has already fixed this, probably in a better way [1] (though I maintain that there still may be a problem with the approach in general). I clearly haven't been following the list closely enough this week. [1] id:"1327926286-16680-1-git-send-email-dmitry.kurochki

Re: [PATCH 0/2] Bug and potential fix: forwarded messages

2012-02-03 Thread Dmitry Kurochkin
On Fri, 3 Feb 2012 23:01:23 -0700, Adam Wolfe Gordon wrote: > Oh, and I just noticed that Dmitry has already fixed this, probably in > a better way [1] (though I maintain that there still may be a problem > with the approach in general). I clearly haven't been following the > list closely enough

Re: [PATCH 0/2] Bug and potential fix: forwarded messages

2012-02-03 Thread Adam Wolfe Gordon
Oh, and I just noticed that Dmitry has already fixed this, probably in a better way [1] (though I maintain that there still may be a problem with the approach in general). I clearly haven't been following the list closely enough this week. [1] id:"1327926286-16680-1-git-send-email-dmitry.kuroch..

[PATCH v5] add support for user-specified files & directories to ignore

2012-02-03 Thread David Bremner
On Thu, 2 Feb 2012 19:57:03 +0200, Tomi Ollila wrote: > A new configuration key 'new.ignore' is used to determine which > files and directories user wants not to be scanned as new mails. > This one needs to be rebased also. Maybe you can include some NEWS as Austin suggests, preferably as a se

[PATCH v4 02/12] emacs: remove text properties from `notmuch-search-get-tags' result

2012-02-03 Thread David Bremner
On Tue, 31 Jan 2012 08:54:16 +0400, Dmitry Kurochkin wrote: > --- > emacs/notmuch.el |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > Hi Dmitry. This series stops applying at the second patch due to other changes, so I guess I'll wait for a rebase of the full series. I've sent o

[PATCH] lib: update notmuch_tags_get example to reflect api change

2012-02-03 Thread David Bremner
On Mon, 30 Jan 2012 15:35:44 -0500, Allan Wind wrote: > The function notmuch_database_find_message_by_filename now requires a > notmuch_message_t and returns a notmuch_status_t. This > change was introduced with 02a3076711, LIBNOTMUCH_VERSION_MAJOR = 2, > version 0.9. Hi Allan; Thanks for all o

Re: [PATCH] lib: update notmuch_tags_get example to reflect api change

2012-02-03 Thread David Bremner
On Mon, 30 Jan 2012 15:35:44 -0500, Allan Wind wrote: > The function notmuch_database_find_message_by_filename now requires a > notmuch_message_t and returns a notmuch_status_t. This > change was introduced with 02a3076711, LIBNOTMUCH_VERSION_MAJOR = 2, > version 0.9. Hi Allan; Thanks for all

Re: [PATCH 1/2] test: add test for hiding Original Message region at beginning of a message

2012-02-03 Thread David Bremner
On Mon, 30 Jan 2012 16:24:45 +0400, Dmitry Kurochkin wrote: > The test is currently broken and will be fixed by a subsequent patch. > > The patch adds a new file for tests of Emacs notmuch-show view. > This patch needs to be rebased against master. d __

Re: [PATCH v5] add support for user-specified files & directories to ignore

2012-02-03 Thread David Bremner
On Thu, 2 Feb 2012 19:57:03 +0200, Tomi Ollila wrote: > A new configuration key 'new.ignore' is used to determine which > files and directories user wants not to be scanned as new mails. > This one needs to be rebased also. Maybe you can include some NEWS as Austin suggests, preferably as a se

[PATCH 1/2] test: add test for hiding Original Message region at beginning of a message

2012-02-03 Thread David Bremner
On Mon, 30 Jan 2012 16:24:45 +0400, Dmitry Kurochkin wrote: > The test is currently broken and will be fixed by a subsequent patch. > > The patch adds a new file for tests of Emacs notmuch-show view. > This patch needs to be rebased against master. d

notmuch release 0.11.1 now available

2012-02-03 Thread David Bremner
Where to obtain notmuch 0.11.1 === http://notmuchmail.org/releases/notmuch-0.11.1.tar.gz Which can be verified with: http://notmuchmail.org/releases/notmuch-0.11.1.tar.gz.sha1 05694ae8762076bf91d63b199e72a12e5ce012b0 notmuch-0.11.1.tar.gz http://notmuchmail.org/

Re: [PATCH v4 02/12] emacs: remove text properties from `notmuch-search-get-tags' result

2012-02-03 Thread David Bremner
On Tue, 31 Jan 2012 08:54:16 +0400, Dmitry Kurochkin wrote: > --- > emacs/notmuch.el |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > Hi Dmitry. This series stops applying at the second patch due to other changes, so I guess I'll wait for a rebase of the full series. I've sent

Re: [PATCH] STYLE: Initial draft of coding style document

2012-02-03 Thread David Bremner
On Mon, 30 Jan 2012 18:01:15 +0200, Jani Nikula wrote: > On Jan 30, 2012 4:38 PM, "Tomi Ollila" wrote: > > > > > + > > > +* Indent is 4 spaces with mixed tabs/spaces and a tab width of 8. > > > + Tabs should be only at the beginning of the line. > > > > So, after initial indentation (with tabs)

[PATCH] STYLE: Initial draft of coding style document

2012-02-03 Thread David Bremner
On Mon, 30 Jan 2012 18:01:15 +0200, Jani Nikula wrote: > On Jan 30, 2012 4:38 PM, "Tomi Ollila" wrote: > > > > > + > > > +* Indent is 4 spaces with mixed tabs/spaces and a tab width of 8. > > > + Tabs should be only at the beginning of the line. > > > > So, after initial indentation (with tabs)

[PATCH 2/2] show: Simplify new text formatter code

2012-02-03 Thread Austin Clements
Quoth Dmitry Kurochkin on Jan 31 at 3:37 am: > On Thu, 26 Jan 2012 01:55:26 -0500, Austin Clements > wrote: > > This makes the text formatter take advantage of the new code > > structure. The previously duplicated header logic is now unified, > > several things that we used to compute repeatedl

[PATCH 1/2] test: add check for filename argument for test_expect_equal_file

2012-02-03 Thread Dmitry Kurochkin
On Thu, 02 Feb 2012 10:00:59 -0800, Jameson Graef Rollins wrote: > Hey, Dmitry. I'm so sorry I sent my last email on your original patch > before I saw this new series. I do now like your original proposal > better, since it shows the diff based the names the caller provides, > which I now agree

[PATCH] test: add tests wrt ignoring user-specified files and directories

2012-02-03 Thread Austin Clements
On Wed, 1 Feb 2012 15:12:53 +0100, Pieter Praet wrote: > Files and directories which are specified in 'new.ignore' in the > config file shouldn't be indexed nor reported by `notmuch new'. > > --- > test/new | 23 +++ > 1 files changed, 23 insertions(+), 0 deletions(-) > >

[PATCH] test: add tests wrt ignoring user-specified files and directories

2012-02-03 Thread Austin Clements
On Fri, 03 Feb 2012 14:14:21 +0200, Tomi Ollila wrote: > On Wed, 1 Feb 2012 15:12:53 +0100, Pieter Praet wrote: > > Files and directories which are specified in 'new.ignore' in the > > config file shouldn't be indexed nor reported by `notmuch new'. > > > > --- > > +1 > > tested file order wi

[PATCH 2/2] emacs: Fix broken showing of forwarded messages.

2012-02-03 Thread Adam Wolfe Gordon
Fix the bug in showing forwarded messages with no new text by not hiding "original" messages if they are the entire message. --- emacs/notmuch-wash.el |5 +++-- test/emacs|1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-wash.el b/emacs/notmuch-

[PATCH 1/2] test: Add broken test for showing forwarded messages

2012-02-03 Thread Adam Wolfe Gordon
Messages are sometimes forwarded with no new text in them, such that the entire message looks like a top-posted reply with no reply text. Showing such a message in emacs results in no message body or button being inserted, so the buffer is empty except for headers. --- test/emacs | 33 ++

[PATCH 0/2] Bug and potential fix: forwarded messages

2012-02-03 Thread Adam Wolfe Gordon
Hi everyone, I encountered today a bug that I remember being mentioned on IRC where some messages are shown in emacs as completely empty, even though their content is present and simple. For me, the bug shows up with messages that have been forwarded by an Outlook user who didn't add any content t

[PATCH v5] add support for user-specified files & directories to ignore

2012-02-03 Thread Austin Clements
Quoth Tomi Ollila on Feb 02 at 7:57 pm: > A new configuration key 'new.ignore' is used to determine which > files and directories user wants not to be scanned as new mails. > > Mark the corresponding test as no longer broken > (test from id:"1328105573-4626-1-git-send-email-pieter at praet.org" )

Re: [PATCH 2/2] show: Simplify new text formatter code

2012-02-03 Thread Austin Clements
Quoth Dmitry Kurochkin on Jan 31 at 3:37 am: > On Thu, 26 Jan 2012 01:55:26 -0500, Austin Clements wrote: > > This makes the text formatter take advantage of the new code > > structure. The previously duplicated header logic is now unified, > > several things that we used to compute repeatedly a

[PATCH 1/2] test: Add broken test for showing forwarded messages

2012-02-03 Thread Adam Wolfe Gordon
Messages are sometimes forwarded with no new text in them, such that the entire message looks like a top-posted reply with no reply text. Showing such a message in emacs results in no message body or button being inserted, so the buffer is empty except for headers. --- test/emacs | 33 ++

[PATCH 2/2] emacs: Fix broken showing of forwarded messages.

2012-02-03 Thread Adam Wolfe Gordon
Fix the bug in showing forwarded messages with no new text by not hiding "original" messages if they are the entire message. --- emacs/notmuch-wash.el |5 +++-- test/emacs|1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-wash.el b/emacs/notmuch-

[PATCH 0/2] Bug and potential fix: forwarded messages

2012-02-03 Thread Adam Wolfe Gordon
Hi everyone, I encountered today a bug that I remember being mentioned on IRC where some messages are shown in emacs as completely empty, even though their content is present and simple. For me, the bug shows up with messages that have been forwarded by an Outlook user who didn't add any content t

Re: [PATCH 1/2] cli: convert "notmuch show" to use the new argument parser

2012-02-03 Thread Mark Walters
On Sat, 4 Feb 2012 00:41:08 +0200, Jani Nikula wrote: > Use the new notmuch argument parser to handle arguments in "notmuch > show". There are two corner case functional changes: > > 1) Also set params.raw = 1 when defaulting to raw format when part is >requested but format is not specified

[PATCH v5] add support for user-specified files & directories to ignore

2012-02-03 Thread Pieter Praet
On Thu, 2 Feb 2012 19:57:03 +0200, Tomi Ollila wrote: > A new configuration key 'new.ignore' is used to determine which > files and directories user wants not to be scanned as new mails. > > Mark the corresponding test as no longer broken > (test from id:"1328105573-4626-1-git-send-email-pieter

0.11.1 release in progress

2012-02-03 Thread Pieter Praet
On Fri, 03 Feb 2012 15:26:33 +0200, Tomi Ollila wrote: > On Fri, 03 Feb 2012 08:58:46 -0400, David Bremner > wrote: > > > > Hi Folks; > > > > After some long delays, I am finally getting 0.11.1 out the door. I > > have pushed an untagged release candidate to > > > > git://notmuchmail.org/git

olra.theworths.org mail forwarding delay?

2012-02-03 Thread Pieter Praet
On Fri, 03 Feb 2012 15:25:08 +0200, Tomi Ollila wrote: > On Fri, 03 Feb 2012 13:15:42 +0100, Pieter Praet wrote: > > > > It appears some messages really enjoy the hospitality @ olra.theworths.org, > > because they stick around and party for quite a while before moving to their > > final destinat

MML Quoting patches.

2012-02-03 Thread Pieter Praet
On Fri, 03 Feb 2012 08:54:48 -0400, David Bremner wrote: > On Fri, 03 Feb 2012 11:22:25 +0100, Pieter Praet wrote: > > > That mark was introduced in commit 03146f20, so isn't available in the > > release branch yet. Let's just use `point-max' instead, merge 'release' > > into 'master', and chan

0.11.1 release in progress

2012-02-03 Thread Tomi Ollila
On Fri, 03 Feb 2012 08:58:46 -0400, David Bremner wrote: > > Hi Folks; > > After some long delays, I am finally getting 0.11.1 out the door. I > have pushed an untagged release candidate to > > git://notmuchmail.org/git/notmuch > branch release > > encourage you to check it out (har har). I w

olra.theworths.org mail forwarding delay?

2012-02-03 Thread Tomi Ollila
On Fri, 03 Feb 2012 13:15:42 +0100, Pieter Praet wrote: > > It appears some messages really enjoy the hospitality @ olra.theworths.org, > because they stick around and party for quite a while before moving to their > final destinations. > > Here's some examples: > > - id:"m28vkzoo8r.fsf at guru

Re: [PATCH] test: add tests wrt ignoring user-specified files and directories

2012-02-03 Thread Austin Clements
On Wed, 1 Feb 2012 15:12:53 +0100, Pieter Praet wrote: > Files and directories which are specified in 'new.ignore' in the > config file shouldn't be indexed nor reported by `notmuch new'. > > --- > test/new | 23 +++ > 1 files changed, 23 insertions(+), 0 deletions(-) > >

[RFC PATCH v2] emacs: make show view a/A/x/X key bindings more consistent

2012-02-03 Thread Tomi Ollila
On Tue, 31 Jan 2012 19:29:06 +0200, Jani Nikula wrote: > Modify the show view key bindings as follows to make them more > consistent: > > 'a' = Archive current message, then move to next message, or show next > thread from search if at the last message in thread. > > 'A' = Archive each message i

[PATCH 2/2] cli: reach previously unreachable cleanup code in "notmuch show"

2012-02-03 Thread Jani Nikula
The last lines of notmuch_show_command() function were unreachable. Fix it by using a variable for return value. Signed-off-by: Jani Nikula --- notmuch-show.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index f93e121..b18e279 10

[PATCH 1/2] cli: convert "notmuch show" to use the new argument parser

2012-02-03 Thread Jani Nikula
Use the new notmuch argument parser to handle arguments in "notmuch show". There are two corner case functional changes: 1) Also set params.raw = 1 when defaulting to raw format when part is requested but format is not specified. 2) Do not set params.decrypt if crypto context creation fails.

Re: [PATCH] test: add tests wrt ignoring user-specified files and directories

2012-02-03 Thread Austin Clements
On Fri, 03 Feb 2012 14:14:21 +0200, Tomi Ollila wrote: > On Wed, 1 Feb 2012 15:12:53 +0100, Pieter Praet wrote: > > Files and directories which are specified in 'new.ignore' in the > > config file shouldn't be indexed nor reported by `notmuch new'. > > > > --- > > +1 > > tested file order wi

Re: [PATCH v5] add support for user-specified files & directories to ignore

2012-02-03 Thread Austin Clements
Quoth Tomi Ollila on Feb 02 at 7:57 pm: > A new configuration key 'new.ignore' is used to determine which > files and directories user wants not to be scanned as new mails. > > Mark the corresponding test as no longer broken > (test from id:"1328105573-4626-1-git-send-email-pie...@praet.org" ). >

[PATCH] test: replace occurrences of $PWD with vars that are more stable

2012-02-03 Thread Dmitry Kurochkin
On Fri, 03 Feb 2012 11:20:58 +0100, Pieter Praet wrote: > On Thu, 02 Feb 2012 03:09:39 +0400, Dmitry Kurochkin gmail.com> wrote: > > [...] > > I would prefer to put the whole second argument inside the quotes, not > > just the variable. > > [...] > > > > I felt the same way initially, but then

[PATCH] configure: update explicit check for glib : >= 2.22

2012-02-03 Thread Tomi Ollila
On Fri, 3 Feb 2012 13:12:25 +0100, Pieter Praet wrote: > As of commit b3caef1f, we're using g_array_unref() in 'lib/query.cc', > which was only introduced in glib 2.22, so update the dependency. > > Thanks to datapipe at gmail.com for reporting this [1]. > > Also see commit b88e6abc. > > [1] i

[PATCH] test: add tests wrt ignoring user-specified files and directories

2012-02-03 Thread Tomi Ollila
On Wed, 1 Feb 2012 15:12:53 +0100, Pieter Praet wrote: > Files and directories which are specified in 'new.ignore' in the > config file shouldn't be indexed nor reported by `notmuch new'. > > --- +1 tested file order with: $ touch ~/mail/mails/a $ touch ~/mail/mails/d $ touch ~/mail/mails/o

[feature request] notmuch_thread_get_newest_subject

2012-02-03 Thread Patrick Totzke
Hi all, There seems to be no way to get the "current" subject line of a thread. I promised to relay my feature request to the list, so here it is.. This could be done using a parameter like "newest-or-original" for `notmuch_thread_get_subject` in threads.cc, which would look up the newest messag

Set "From" based on "To" when replying

2012-02-03 Thread Tomi Ollila
On Sat, 21 Jan 2012 16:35:10 +0100, Simon Campese wrote: > Dear Community, > > I've got my own domain and when registering or shopping at some website, > I always use email addresses of the form "websitename at mydomain.org", so > for example I use "amazon at mydomain.org" when shopping at amazon

Re: [PATCH 1/2] test: add check for filename argument for test_expect_equal_file

2012-02-03 Thread Jameson Graef Rollins
On Fri, 03 Feb 2012 18:04:05 +0400, Dmitry Kurochkin wrote: > Actually, we can do both: check file name for consistent diff order > (from expected to actual) and use file names that the caller provides. > > What do you think? I'm not sure it's worth it, but I suppose that's fine. jamie. pgpD

[PATCH 1/2] test: add check for filename argument for test_expect_equal_file

2012-02-03 Thread Jameson Graef Rollins
se that's fine. 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/20120203/26da6efa/attachment.pgp>

olra.theworths.org mail forwarding delay?

2012-02-03 Thread Pieter Praet
It appears some messages really enjoy the hospitality @ olra.theworths.org, because they stick around and party for quite a while before moving to their final destinations. Here's some examples: - id:"m28vkzoo8r.fsf at guru.guru-group.fi" - rcv: Sun, 22 Jan 2012 05:33:56 -0800 (PST) - fwd: T

[PATCH] configure: update explicit check for glib : >= 2.22

2012-02-03 Thread Pieter Praet
As of commit b3caef1f, we're using g_array_unref() in 'lib/query.cc', which was only introduced in glib 2.22, so update the dependency. Thanks to datapipe at gmail.com for reporting this [1]. Also see commit b88e6abc. [1] id:"alpine.DEB.2.02.1201132130220.21970 at ltspubuntu4.int.smq.datapipe.ne

newbie questions

2012-02-03 Thread Tamas Papp
Hi, I just started using notmuch. It is fascinating, but I still need to figure out a few things: 1. How can I restrict searches (eg of my inbox) to the last few messages (eg 50-100) or some date (eg last 2 weeks)? I am using the Emacs interface. 2. Could someone point me to some guides on wor

[PATCH v6 3/3] post-merge fixes

2012-02-03 Thread Pieter Praet
--- emacs/notmuch-mua.el |2 +- test/emacs |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 3e93d7c..768b693 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -116,7 +116,7 @@ list." ;; proper

[PATCH v6 2/3] emacs: quote MML tags in replies

2012-02-03 Thread Pieter Praet
From: Aaron Ecay Emacs message-mode uses certain text strings to indicate how to attach files to outgoing mail. If these are present in the text of an email, and a user is tricked into replying to the message, the user?s files could be exposed. Edited-by: Pieter Praet : Rebased to release bran

[PATCH v6 1/3] test: add tests for quoting of MML tags in replies

2012-02-03 Thread Pieter Praet
From: Aaron Ecay The test is broken at this time; the next commit will introduce a fix. Edited-by: Pieter Praet : Rebased to release branch, moved expected output into the actual test, and fixed "Fcc:" line. --- test/emacs | 21 + 1 files changed, 21 insertions(+), 0 d

[no subject]

2012-02-03 Thread Pieter Praet
On Thu, 2 Feb 2012 00:01:31 -0400, David Bremner wrote: > I rebased these against branch release (and copied a comment from > aaron's email), but the test fails there, as does the reply within emacs test. > Same issue here. That mark was introduced in commit 03146f20, so isn't available in th

[PATCH] test: replace occurrences of $PWD with vars that are more stable

2012-02-03 Thread Pieter Praet
On Thu, 02 Feb 2012 03:09:39 +0400, Dmitry Kurochkin wrote: > [...] > I would prefer to put the whole second argument inside the quotes, not > just the variable. > [...] > I felt the same way initially, but then decided to leave the extra quotes in place because the resulting fontification helps

[PATCH v6 1/8] emacs: Rework crypto switch toggle.

2012-02-03 Thread David Edmondson
result. Any chance of a reviewer for this piece? -- next part -- 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/20120203/ba271a66/attachment.pgp>

[PATCH v4 07/11] lib: added interface notmuch_thread_get_flag_messages

2012-02-03 Thread Jani Nikula
On Fri, 03 Feb 2012 09:36:29 +, Mark Walters wrote: > On Fri, 03 Feb 2012 08:48:27 +, Jani Nikula wrote: > > On Thu, 02 Feb 2012 23:24:56 +, Mark Walters > gmail.com> wrote: > > > On Fri, 03 Feb 2012 01:07:59 +0200, Jani Nikula > > > wrote: > > > > On Thu, 02 Feb 2012 22:27:36 +00

[PATCH v4 07/11] lib: added interface notmuch_thread_get_flag_messages

2012-02-03 Thread Mark Walters
On Fri, 03 Feb 2012 08:48:27 +, Jani Nikula wrote: > On Thu, 02 Feb 2012 23:24:56 +, Mark Walters gmail.com> wrote: > > On Fri, 03 Feb 2012 01:07:59 +0200, Jani Nikula wrote: > > > On Thu, 02 Feb 2012 22:27:36 +, Mark Walters > > gmail.com> wrote: > > > > On Thu, 02 Feb 2012 23:55:3

0.11.1 release in progress

2012-02-03 Thread David Bremner
Hi Folks; After some long delays, I am finally getting 0.11.1 out the door. I have pushed an untagged release candidate to git://notmuchmail.org/git/notmuch branch release encourage you to check it out (har har). I will probably tag and release in about 12hours, all going well. d

MML Quoting patches.

2012-02-03 Thread David Bremner
On Fri, 03 Feb 2012 11:22:25 +0100, Pieter Praet wrote: > That mark was introduced in commit 03146f20, so isn't available in the > release branch yet. Let's just use `point-max' instead, merge 'release' > into 'master', and change it back to `mark' there. It's better to break > MML tags in the

[PATCH v4 07/11] lib: added interface notmuch_thread_get_flag_messages

2012-02-03 Thread Jani Nikula
On Thu, 02 Feb 2012 23:24:56 +, Mark Walters wrote: > On Fri, 03 Feb 2012 01:07:59 +0200, Jani Nikula wrote: > > On Thu, 02 Feb 2012 22:27:36 +, Mark Walters > gmail.com> wrote: > > > On Thu, 02 Feb 2012 23:55:33 +0200, Jani Nikula > > > wrote: > > > > > > > > Hi Mark - > > > > > >

[PATCH v4 11/11] emacs: show: recognize the exclude flag.

2012-02-03 Thread David Edmondson
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/20120203/8a478c71/attachment.pgp>

[PATCH v2] emacs: add default value to notmuch-search-line-faces

2012-02-03 Thread David Edmondson
+1. -- next part -- 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/20120203/9a0f35df/attachment.pgp>

mutt-like interface [was: Re: BiDi]

2012-02-03 Thread David Edmondson
would have the effect of disabling the current 'isearch can open closed messages' behaviour. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://not

BiDi

2012-02-03 Thread David Edmondson
t part -- 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/20120203/1336ae5c/attachment.pgp>

Re: [PATCH v5] add support for user-specified files & directories to ignore

2012-02-03 Thread Pieter Praet
On Thu, 2 Feb 2012 19:57:03 +0200, Tomi Ollila wrote: > A new configuration key 'new.ignore' is used to determine which > files and directories user wants not to be scanned as new mails. > > Mark the corresponding test as no longer broken > (test from id:"1328105573-4626-1-git-send-email-pie...@

Re: 0.11.1 release in progress

2012-02-03 Thread Pieter Praet
On Fri, 03 Feb 2012 15:26:33 +0200, Tomi Ollila wrote: > On Fri, 03 Feb 2012 08:58:46 -0400, David Bremner wrote: > > > > Hi Folks; > > > > After some long delays, I am finally getting 0.11.1 out the door. I > > have pushed an untagged release candidate to > > > > git://notmuchmail.org/git/no

Re: olra.theworths.org mail forwarding delay?

2012-02-03 Thread Pieter Praet
On Fri, 03 Feb 2012 15:25:08 +0200, Tomi Ollila wrote: > On Fri, 03 Feb 2012 13:15:42 +0100, Pieter Praet wrote: > > > > It appears some messages really enjoy the hospitality @ olra.theworths.org, > > because they stick around and party for quite a while before moving to their > > final destinat

Re: MML Quoting patches.

2012-02-03 Thread Pieter Praet
On Fri, 03 Feb 2012 08:54:48 -0400, David Bremner wrote: > On Fri, 03 Feb 2012 11:22:25 +0100, Pieter Praet wrote: > > > That mark was introduced in commit 03146f20, so isn't available in the > > release branch yet. Let's just use `point-max' instead, merge 'release' > > into 'master', and chan

[feature request] notmuch_thread_get_newest_subject

2012-02-03 Thread Patrick Totzke
Hi all, There seems to be no way to get the "current" subject line of a thread. I promised to relay my feature request to the list, so here it is.. This could be done using a parameter like "newest-or-original" for `notmuch_thread_get_subject` in threads.cc, which would look up the newest messag

Re: [PATCH 1/2] test: add check for filename argument for test_expect_equal_file

2012-02-03 Thread Dmitry Kurochkin
On Thu, 02 Feb 2012 10:00:59 -0800, Jameson Graef Rollins wrote: > Hey, Dmitry. I'm so sorry I sent my last email on your original patch > before I saw this new series. I do now like your original proposal > better, since it shows the diff based the names the caller provides, > which I now agre

Re: 0.11.1 release in progress

2012-02-03 Thread Tomi Ollila
On Fri, 03 Feb 2012 08:58:46 -0400, David Bremner wrote: > > Hi Folks; > > After some long delays, I am finally getting 0.11.1 out the door. I > have pushed an untagged release candidate to > > git://notmuchmail.org/git/notmuch > branch release > > encourage you to check it out (har har). I w

Re: olra.theworths.org mail forwarding delay?

2012-02-03 Thread Tomi Ollila
On Fri, 03 Feb 2012 13:15:42 +0100, Pieter Praet wrote: > > It appears some messages really enjoy the hospitality @ olra.theworths.org, > because they stick around and party for quite a while before moving to their > final destinations. > > Here's some examples: > > - id:"m28vkzoo8r@guru.gu

0.11.1 release in progress

2012-02-03 Thread David Bremner
Hi Folks; After some long delays, I am finally getting 0.11.1 out the door. I have pushed an untagged release candidate to git://notmuchmail.org/git/notmuch branch release encourage you to check it out (har har). I will probably tag and release in about 12hours, all going well. d

Re: MML Quoting patches.

2012-02-03 Thread David Bremner
On Fri, 03 Feb 2012 11:22:25 +0100, Pieter Praet wrote: > That mark was introduced in commit 03146f20, so isn't available in the > release branch yet. Let's just use `point-max' instead, merge 'release' > into 'master', and change it back to `mark' there. It's better to break > MML tags in the

Re: [RFC PATCH v2] emacs: make show view a/A/x/X key bindings more consistent

2012-02-03 Thread Tomi Ollila
On Tue, 31 Jan 2012 19:29:06 +0200, Jani Nikula wrote: > Modify the show view key bindings as follows to make them more > consistent: > > 'a' = Archive current message, then move to next message, or show next > thread from search if at the last message in thread. > > 'A' = Archive each message i

Re: [PATCH] configure: update explicit check for glib : >= 2.22

2012-02-03 Thread Tomi Ollila
On Fri, 3 Feb 2012 13:12:25 +0100, Pieter Praet wrote: > As of commit b3caef1f, we're using g_array_unref() in 'lib/query.cc', > which was only introduced in glib 2.22, so update the dependency. > > Thanks to datap...@gmail.com for reporting this [1]. > > Also see commit b88e6abc. > > [1] id:"

[PATCH 1/2] test: add check for filename argument for test_expect_equal_file

2012-02-03 Thread Dmitry Kurochkin
Hi Jameson. On Thu, 02 Feb 2012 10:00:59 -0800, Jameson Graef Rollins wrote: > Hey, Dmitry. I'm so sorry I sent my last email on your original patch > before I saw this new series. No problems. > I do now like your original proposal > better, since it shows the diff based the names the caller

olra.theworths.org mail forwarding delay?

2012-02-03 Thread Pieter Praet
It appears some messages really enjoy the hospitality @ olra.theworths.org, because they stick around and party for quite a while before moving to their final destinations. Here's some examples: - id:"m28vkzoo8r@guru.guru-group.fi" - rcv: Sun, 22 Jan 2012 05:33:56 -0800 (PST) - fwd: Thu,

[PATCH] configure: update explicit check for glib : >= 2.22

2012-02-03 Thread Pieter Praet
As of commit b3caef1f, we're using g_array_unref() in 'lib/query.cc', which was only introduced in glib 2.22, so update the dependency. Thanks to datap...@gmail.com for reporting this [1]. Also see commit b88e6abc. [1] id:"alpine.deb.2.02.1201132130220.21...@ltspubuntu4.int.smq.datapipe.net" ---

Re: [PATCH] test: add tests wrt ignoring user-specified files and directories

2012-02-03 Thread Tomi Ollila
On Wed, 1 Feb 2012 15:12:53 +0100, Pieter Praet wrote: > Files and directories which are specified in 'new.ignore' in the > config file shouldn't be indexed nor reported by `notmuch new'. > > --- +1 tested file order with: $ touch ~/mail/mails/a $ touch ~/mail/mails/d $ touch ~/mail/mails/o

newbie questions

2012-02-03 Thread Tamas Papp
Hi, I just started using notmuch. It is fascinating, but I still need to figure out a few things: 1. How can I restrict searches (eg of my inbox) to the last few messages (eg 50-100) or some date (eg last 2 weeks)? I am using the Emacs interface. 2. Could someone point me to some guides on wor

Re: Set "From" based on "To" when replying

2012-02-03 Thread Tomi Ollila
On Sat, 21 Jan 2012 16:35:10 +0100, Simon Campese wrote: > Dear Community, > > I've got my own domain and when registering or shopping at some website, > I always use email addresses of the form "websiten...@mydomain.org", so > for example I use "ama...@mydomain.org" when shopping at amazon. The

Re: [PATCH v6 1/8] emacs: Rework crypto switch toggle.

2012-02-03 Thread David Edmondson
On Thu, 2 Feb 2012 11:23:46 +, David Edmondson wrote: > Re-work the existing crypto switch toggle to be based on a persistant > buffer-local variable. > > To allow this, modify `notmuch-show-refresh-view' to erase and re-draw > in the current buffer rather than killing the current buffer and

Re: [PATCH] test: replace occurrences of $PWD with vars that are more stable

2012-02-03 Thread Dmitry Kurochkin
On Fri, 03 Feb 2012 11:20:58 +0100, Pieter Praet wrote: > On Thu, 02 Feb 2012 03:09:39 +0400, Dmitry Kurochkin > wrote: > > [...] > > I would prefer to put the whole second argument inside the quotes, not > > just the variable. > > [...] > > > > I felt the same way initially, but then decided

[PATCH v6 3/3] post-merge fixes

2012-02-03 Thread Pieter Praet
--- emacs/notmuch-mua.el |2 +- test/emacs |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 3e93d7c..768b693 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -116,7 +116,7 @@ list." ;; proper

[PATCH v6 2/3] emacs: quote MML tags in replies

2012-02-03 Thread Pieter Praet
From: Aaron Ecay Emacs message-mode uses certain text strings to indicate how to attach files to outgoing mail. If these are present in the text of an email, and a user is tricked into replying to the message, the user’s files could be exposed. Edited-by: Pieter Praet : Rebased to release bran

[PATCH v6 1/3] test: add tests for quoting of MML tags in replies

2012-02-03 Thread Pieter Praet
From: Aaron Ecay The test is broken at this time; the next commit will introduce a fix. Edited-by: Pieter Praet : Rebased to release branch, moved expected output into the actual test, and fixed "Fcc:" line. --- test/emacs | 21 + 1 files changed, 21 insertions(+), 0 d

Re:

2012-02-03 Thread Pieter Praet
On Thu, 2 Feb 2012 00:01:31 -0400, David Bremner wrote: > I rebased these against branch release (and copied a comment from > aaron's email), but the test fails there, as does the reply within emacs test. > Same issue here. That mark was introduced in commit 03146f20, so isn't available in th

Re: [PATCH] test: replace occurrences of $PWD with vars that are more stable

2012-02-03 Thread Pieter Praet
On Thu, 02 Feb 2012 03:09:39 +0400, Dmitry Kurochkin wrote: > [...] > I would prefer to put the whole second argument inside the quotes, not > just the variable. > [...] > I felt the same way initially, but then decided to leave the extra quotes in place because the resulting fontification help

Re: [PATCH v4 07/11] lib: added interface notmuch_thread_get_flag_messages

2012-02-03 Thread Jani Nikula
On Fri, 03 Feb 2012 09:36:29 +, Mark Walters wrote: > On Fri, 03 Feb 2012 08:48:27 +, Jani Nikula wrote: > > On Thu, 02 Feb 2012 23:24:56 +, Mark Walters > > wrote: > > > On Fri, 03 Feb 2012 01:07:59 +0200, Jani Nikula wrote: > > > > On Thu, 02 Feb 2012 22:27:36 +, Mark Walter

Re: [PATCH v4 07/11] lib: added interface notmuch_thread_get_flag_messages

2012-02-03 Thread Mark Walters
On Fri, 03 Feb 2012 08:48:27 +, Jani Nikula wrote: > On Thu, 02 Feb 2012 23:24:56 +, Mark Walters > wrote: > > On Fri, 03 Feb 2012 01:07:59 +0200, Jani Nikula wrote: > > > On Thu, 02 Feb 2012 22:27:36 +, Mark Walters > > > wrote: > > > > On Thu, 02 Feb 2012 23:55:33 +0200, Jani Ni

[PATCH v4 08/11] cli: Make notmuch-show respect excludes.

2012-02-03 Thread Jani Nikula
On Thu, 02 Feb 2012 22:35:10 +, Mark Walters wrote: > > On Fri, 03 Feb 2012 00:08:32 +0200, Jani Nikula wrote: > > On Thu, 2 Feb 2012 17:43:36 +, Mark Walters > gmail.com> wrote: > > > This adds the excludes to notmuch-show.c. We do not exclude when only > > > a single message (or par

[PATCH v4 07/11] lib: added interface notmuch_thread_get_flag_messages

2012-02-03 Thread Jani Nikula
On Thu, 02 Feb 2012 22:27:36 +, Mark Walters wrote: > On Thu, 02 Feb 2012 23:55:33 +0200, Jani Nikula wrote: > > > > Hi Mark - > > > > This is my first look at any version of the series; apologies if I'm > > clueless about some details... Please find some comments below. > > > > BR, > > J

Re: [PATCH v4 07/11] lib: added interface notmuch_thread_get_flag_messages

2012-02-03 Thread Jani Nikula
On Thu, 02 Feb 2012 23:24:56 +, Mark Walters wrote: > On Fri, 03 Feb 2012 01:07:59 +0200, Jani Nikula wrote: > > On Thu, 02 Feb 2012 22:27:36 +, Mark Walters > > wrote: > > > On Thu, 02 Feb 2012 23:55:33 +0200, Jani Nikula wrote: > > > > > > > > Hi Mark - > > > > > > > > This is my

Re: [PATCH v4 11/11] emacs: show: recognize the exclude flag.

2012-02-03 Thread David Edmondson
On Thu, 2 Feb 2012 17:43:39 +, Mark Walters wrote: > +(when (eq (point) (point-max)) "(when (eobp)" is more usual. > + (goto-char (point-min)) > + (notmuch-show-next-matching-message)) Otherwise the Emacs patch looks good. pgpVoJXXr3AmO.pgp Description: PGP signature _

Re: [PATCH v2] emacs: add default value to notmuch-search-line-faces

2012-02-03 Thread David Edmondson
+1. pgpST9LyTvG5L.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH v4 08/11] cli: Make notmuch-show respect excludes.

2012-02-03 Thread Jani Nikula
On Thu, 2 Feb 2012 17:43:36 +, Mark Walters wrote: > This adds the excludes to notmuch-show.c. We do not exclude when only > a single message (or part) is requested. notmuch-show will output the > exclude information when either text or json format is requested. As > this changes the output

  1   2   >