[notmuch] Introducing notmuchsync

2010-01-18 Thread Sebastian Spaeth
Dear list, I really want to sync my maildir flags/folders with notmuch tags and as I haven't seen a script to do that, I've written (the beginnings of?) one. It is probably pre-alpha but I am a fan of release early, release often and if someone finds it useful to build upon, it was already worth

Re: [notmuch] Introducing notmuchsync

2010-01-18 Thread Sebastian Spaeth
On Mon, 18 Jan 2010 16:12:28 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: DOH, I should actually have finished the Workflow section before sending it off :-): Workflow 1a) start out with notmuchsync -r in order to initialize the notmuch tag database based on maildir 'S' flags

[notmuch] xapian errors and notmuch return codes

2010-01-19 Thread Sebastian Spaeth
When I perform a notmuch search while notmuch is updating tags in a different shell, I get: A Xapian exception occurred performing query: The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the operation but the notmuch return code is still 0

Re: [notmuch] Introducing notmuchsync

2010-01-19 Thread Sebastian Spaeth
What needs improvment? - Support for the T (delete), F (flagged), D (draft) tags/flags. Having just finished this feature, I herewith declare notmuchsync to be version 0.0.1 :). It works for fine for me, I use it to sync the FTDS Maildir flags (corresponding notmuch flags:

Re: [notmuch] Introducing notmuchsync

2010-01-19 Thread Sebastian Spaeth
On Tue, 19 Jan 2010 16:00:06 +0100, Marten Veldthuis mar...@veldthuis.com wrote: On Tue, 19 Jan 2010 14:37:03 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: - Move read files from 'new' to 'cur' folder. At what point is that moving typically done in Maildir? When the user has

Re: [notmuch] Introducing notmuchsync

2010-01-19 Thread Sebastian Spaeth
On Tue, 19 Jan 2010 11:04:49 -0500, Jameson Rollins jroll...@finestructure.net wrote: I should have mentioned in my previous mail that I think this tool is a great idea, and I plan on using it. I just hope that all of it's functionality will be integrated directly into notmuch itself. I

Re: [notmuch] Git feature branch

2010-01-22 Thread Sebastian Spaeth
On Fri, 22 Jan 2010 09:09:30 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: On 01/20/10 21:00, micah anderson wrote: Cool! It would be useful if you provided thread-id's for each of these so we could look them up and read more about them. True, I'll try to include thread id-s

[notmuch] [PATCH] Make the date parser nicer

2010-01-22 Thread Sebastian Spaeth
not in a proper location yet and needs to be shoved around by someone more knowledgable than me. My C++ skills are somewhat,... lacking... Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- lib/database.cc | 94 ++- 1 files changed, 93

Re: [notmuch] [PATCH] Make the date parser nicer

2010-01-22 Thread Sebastian Spaeth
Please find in the previous mail attached my patch (against my current all-feature branch, but should pretty much apply to current master too). It is a proof-of-concept to make the date parser nicer. The following searches work with this code: notmuch show... ... date:2001..2010 (from beginning

[notmuch] [PATCH] Make the date parser nicer. This is v3 and considered to be final (but the documentation).

2010-01-25 Thread Sebastian Spaeth
-DD, -MM (from/through that month) , (from/through that year), MM-DD (month-day in current year), DD (day in current month). Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- lib/database.cc | 80 ++- 1 files changed, 79

Re: [notmuch] [PATCH] Make the date parser nicer (v3 + 'now' keyword)

2010-01-25 Thread Sebastian Spaeth
The patch previously sent can be considered my final attempt to a nicer date parser. In addition to some testing, I have updated the documentation to reflect the new syntax, and I have also added the keyword 'now' as a possibility. So 'date:2002..now' (all mails from 2002 until now) or

Re: [notmuch] [PATCH] Make the date parser nicer (v3 + 'now' keyword) (final mail)

2010-01-25 Thread Sebastian Spaeth
Sorry, very last mail from me on this issue. I squashed the patches into 3 distinct ones, and inherited a tree from cworth's master tree for easier pulling (rather than basing it off my all-features branch). This branch is here: http://github.com/spaetz/notmuch-all-feature/commits/dateparser2

Re: [notmuch] Git as notmuch object store (was: Potential problem using Git for mail)

2010-01-25 Thread Sebastian Spaeth
On Mon, 25 Jan 2010 13:46:59 +1300, martin f krafft madd...@madduck.net wrote: I think we all kinda agreed that the Maildir flags should not be used by notmuch and that things like Sebastian's notmuchsync should be used if people wanted flags represented in Maildir filenames. While

Re: [notmuch] [PATCH] Make the date parser nicer

2010-01-26 Thread Sebastian Spaeth
On Mon, 25 Jan 2010 22:36:35 -0800, Keith Packard kei...@keithp.com wrote: Here's some code which further improves date parsing by allowing lots of date formats, including things like today, thisweek, ISO and US date formats and month names. You can separate two dates with .. to make a range,

[notmuch] [PATCH 2/4] add date parser file from Keith

2010-01-26 Thread Sebastian Spaeth
From: Keith Packard kei...@keithp.com Here's some code which further improves date parsing by allowing lots of date formats, including things like today, thisweek, ISO and US date formats and month names. You can separate two dates with .. to make a range, or you can just use the default range

[notmuch] [PATCH 4/4] integrate keithp's date.c into the notmuch date parser and delete my previous own attempt

2010-01-26 Thread Sebastian Spaeth
Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- lib/database.cc | 84 ++ lib/date.c | 59 ++ lib/notmuch.h | 20 + notmuch-new.c |1 + notmuch.1 | 33

Re: [notmuch] [PATCH] Make the date parser nicer

2010-01-26 Thread Sebastian Spaeth
On Mon, 25 Jan 2010 22:36:35 -0800, Keith Packard kei...@keithp.com wrote: Here's some code which further improves date parsing by allowing lots of date formats, including things like today, thisweek, ISO and US date formats and month names. You can separate two dates with .. to make a range,

Re: [notmuch] Git as notmuch object store (was: Potential problem using Git for mail)

2010-01-27 Thread Sebastian Spaeth
On Mon, 25 Jan 2010 14:49:00 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: While notmuchsync fullfils my needs, it is a kludge. It needs to call notmuch for each mail where a MailDir flag has changed (which can be quite often on an initial run, where most mails are likely to be read

Re: [notmuch] [PATCH] Make the date parser nicer

2010-01-27 Thread Sebastian Spaeth
On Tue, 26 Jan 2010 09:55:00 -0800, Keith Packard kei...@keithp.com wrote: Very cool. Oh, if you've got commits that don't compile on their own, you should squash them together (or fix it in some other way). Makes bisecting easier in the future. Makes sense. I am still quite new to git, so

Re: [notmuch] Fcc, Maildir, and Emacs message-mode -- a bit of code

2010-01-29 Thread Sebastian Spaeth
First, I think this FCC method is phantastic and it works like a charm. I agree that we should include the snippets at least in some contrib directory (or doc/examples) to make it easier to find. Jameson Rollins jroll...@finestructure.net wrote: (defun my-message-header-setup ()

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Sebastian Spaeth
/media/mail/mail ├── cur │ ├── 1265050537.H891745P1231.samir.ibcsolutions.de:2,S │ ├── 1265050572.H419259P1443.samir.ibcsolutions.de:2,S │ ├── 1265050598.H121639P1634.samir.ibcsolutions.de:2,S │ ├── 1265050617.H309805P1774.samir.ibcsolutions.de:2,S │ ├──

Re: [notmuch] New wiki instance on the notmuchmail.org website

2010-02-03 Thread Sebastian Spaeth
On Tue, 02 Feb 2010 23:44:56 -0800, Carl Worth cwo...@cworth.org wrote: Anyone want to start thinking about a logo design idea... ? Although being non-artistic, what about the following design? (Or at least along those lines) I uploaded it too:

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-03 Thread Sebastian Spaeth
On Tue, 2 Feb 2010 23:25:18 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: I want it to work the same way as you expected. It seems it would be necessary to modify notmuch_database_remove_message() so that it changes folder term if it detects rename. On a tangetial issue: It would help if

[notmuch] date parser branch updated and rebased

2010-02-08 Thread Sebastian Spaeth
In order to not let this bitrot, I just rebased my dateparser branch to current cworth master and split up the patches in a nicer way. I made sure that every commit compiles. Let me know if there are things that should be handled in a different way. find the git branch here:

[notmuch] [PATCH 2/4] Introduce new notmuch return status NOTMUCH_STATUS_INVALID_DATE

2010-02-08 Thread Sebastian Spaeth
This is not used yet in this commit but will be the return value in case the date parser gets handed invalid dates. Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- lib/database.cc |2 ++ lib/notmuch.h |3 +++ notmuch-new.c |1 + 3 files changed, 6 insertions(+), 0

[notmuch] [PATCH 3/4] integrate date parser

2010-02-08 Thread Sebastian Spaeth
Integrate and make use of the notmuch_parse_date() function in date.c that is being called by the new MaildateValueRangeProcessor in lib/database.cc Thanks to keithp for donating the date parser for achieving this in a nice way. Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- lib

[notmuch] [PATCH 4/4] add documentation for the new daterange parser and remove TODO list item

2010-02-08 Thread Sebastian Spaeth
Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- TODO |9 - notmuch.1 | 29 - notmuch.c | 24 +--- 3 files changed, 33 insertions(+), 29 deletions(-) diff --git a/TODO b/TODO index bdfe64c..86cbf74 100644 --- a/TODO

Re: [notmuch] [PATCH] Switch from random to sequential thread identifiers.

2010-02-09 Thread Sebastian Spaeth
On Mon, 08 Feb 2010 13:36:14 -0800, Carl Worth cwo...@cworth.org wrote: diff --git a/lib/database-private.h b/lib/database-private.h ... + +uint64_t last_thread_id; throws: lib/database-private.h:37: error: 'uint64_t' does not name a type Is it just me, or have I made an error in

Re: [notmuch] [PATCH] Switch from random to sequential thread identifiers.

2010-02-09 Thread Sebastian Spaeth
On Tue, 09 Feb 2010 10:58:53 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: On Mon, 08 Feb 2010 13:36:14 -0800, Carl Worth cwo...@cworth.org wrote: diff --git a/lib/database-private.h b/lib/database-private.h ... + +uint64_t last_thread_id; throws: lib/database-private.h:37

Re: [notmuch] viewing text/html (inline or otherwise)

2010-02-10 Thread Sebastian Spaeth
On Tue, 09 Feb 2010 16:43:20 -0800, Alexander Botero-Lowry alex.boterolo...@gmail.com wrote: rendering of non-HTML messages. And I did that with the expectation that the code would appear again shortly with the obvious optimization to not do any extra work for non-HTML messages. EBUSY...

Re: [notmuch] patchwork test instance

2010-02-10 Thread Sebastian Spaeth
On Wed, 10 Feb 2010 16:25:03 +1300, martin f krafft madd...@madduck.net wrote: http://patchwork.madduck.net/project/notmuch/list/ now exists. Are people actually using it? I know that merging patches is impossible, and that sucks, but otherwise: is this something to keep around, or should I

[notmuch] wiki push broken

2010-02-10 Thread Sebastian Spaeth
git push: ... Total 3 (delta 2), reused 0 (delta 0) error: unpack failed: unpack-objects abnormal exit To git://notmuchmail.org/git/notmuch-wiki ! [remote rejected] master - master (n/a (unpacker error)) error: failed to push some refs to 'git://notmuchmail.org/git/notmuch-wiki'

Re: [notmuch] [PATCH] notmuch.el: Decorate 'Date:' headers with the message-header-other face when visible.

2010-02-10 Thread Sebastian Spaeth
On Wed, 10 Feb 2010 11:38:54 +, David Edmondson d...@dme.org wrote: [Patch to fontify date] You do realize that your patch is identical to the one in id:874omet1su@servo.finestructure.net (Jan 22)? :-) Applying this would be nice in any case, Sebastian

Re: [notmuch] notmuch.el: Prefix arg inverts the sort order of notmuch-search.

2010-02-11 Thread Sebastian Spaeth
On Thu, 11 Feb 2010 12:19:12 +, David Edmondson d...@dme.org wrote: ... I think the correct thing here would be to let notmuch return search is inverse sort order rather than reverting this later in the client (unneccessary work). --sort=oldest|newest|relevance seems to be what xapian

[notmuch] notmuch reply template

2010-02-11 Thread Sebastian Spaeth
I've had enough of the On a sunny Sunday the 30th in timezone wurgs, male human X with mail address z hit the reply button bar microseconds after 1970 while being at latitude foo: type of reply template in notmuch. :-) May I suggest to use a simpler: On 11 Feb 2010, David Edmondson wrote:

Re: [notmuch] notmuch.el: Prefix arg inverts the sort order of notmuch-search.

2010-02-11 Thread Sebastian Spaeth
On Thu, 11 Feb 2010 14:01:14 +, David Edmondson d...@dme.org wrote: (let ((proc (start-process-shell-command notmuch-search buffer notmuch-command search (if oldest-first --sort=oldest-first --sort=newest-first) Doh, I should shut up when I

[notmuch] [PATCHv2] notmuch.el: Colour cited regions and signatures with message-cited-text-face.

2010-02-16 Thread Sebastian Spaeth
From: David Edmondson d...@dme.org Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- This is the fixed up version as elaborated by David. I find it pretty and pretty useful, so applying this makes lots of sense :). notmuch.el | 17 ++--- 1 files changed, 10 insertions

[notmuch] [PATCH] notmuch.el: bind 'd' to new function notmuch-search-delete-thread-or-region

2010-02-17 Thread Sebastian Spaeth
requires Jesse's patch from mail id:87sk90ragj@jhu.edu. Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- notmuch.el | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index 7d9a82f..ac07ff3 100644 --- a/notmuch.el +++ b/notmuch.el

Re: [notmuch] [PATCH] Simplify unread tag handling in emacs UI.

2010-02-17 Thread Sebastian Spaeth
On Tue, 19 Jan 2010 17:54:16 -0500, Jameson Rollins jroll...@finestructure.net wrote: This patch is intended to greatly simplify the handling of the unread tag in the emacs UI. This patch adds a new function 'notmuch-show-mark-read', that removes the unread tag in notmuch-show-mode. This

Re: [notmuch] JSON output as default [was: Re: [PATCH] Add an --output=(json|text|) command-line option...]

2010-02-24 Thread Sebastian Spaeth
I definitely want to be able to pipe single-field lists coming from notmuch to grep, xargs, shell for loops, etc. without having to decode JSON. While I would love to see JSON (even by default), I agree. If I just want to code up a notmuch-based address book with sth like: notmuch show

Re: [notmuch] Introducing notmuchsync

2010-02-25 Thread Sebastian Spaeth
On Wed, 24 Feb 2010 10:19:06 -0800, Carl Worth cwo...@cworth.org wrote: On Mon, 18 Jan 2010 16:12:28 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: - Synchronizes the S flag with the unread tag (1-way). The synchronization direction is decided by using either

Re: [notmuch] Introducing notmuchsync

2010-02-25 Thread Sebastian Spaeth
On Wed, 24 Feb 2010 13:49:44 -0500, Jameson Rollins jroll...@finestructure.net wrote: On Wed, 24 Feb 2010 10:19:06 -0800, Carl Worth cwo...@cworth.org wrote: I think that's the open question still. How much of this kind of functionality do we integrate into notmuch itself. I don't know the

Re: [notmuch] [PATCH] Simplify unread tag handling in emacs UI.

2010-02-25 Thread Sebastian Spaeth
On Wed, 24 Feb 2010 14:20:27 -0500, Jameson Rollins jroll...@finestructure.net wrote: On Wed, 24 Feb 2010 10:26:47 -0800, Carl Worth cwo...@cworth.org wrote: It then checks the unread status in order to decide whether to proceed to the next again. So with your patch

Re: [notmuch] [PATCH] add notmuch-show-delete keybinding 'd'

2010-02-25 Thread Sebastian Spaeth
On Wed, 24 Feb 2010 14:01:18 -0500, Jameson Rollins jroll...@finestructure.net wrote: 2. It removes the inbox and unread tags while adding the tag to indicate deletion. Hey, Carl. Why is this last point important? [...]Why should it modify any other tags? A message/thread should be

Re: [notmuch] envelope-to

2010-02-25 Thread Sebastian Spaeth
On Thu, 25 Feb 2010 12:00:37 +1030, Tim Stoakes notm...@stoakes.net wrote: I get a lot of BCC mail. The envelope-to is a good way for me to know which of my various addresses was BCC'd. I'm very new here, but I think the answer is 'no' - notmuch only seems to index a few headers. Which is

[notmuch] [PATCH] notmuch-new: Respect maildir flags when importing a new message

2010-03-01 Thread Sebastian Spaeth
When importing a new mail do check for maildir tags and assign corresponding notmuch tags. Based on a patch by Michiel Buddingh mich...@michielbuddingh.net and subsequently modified by Tim Stoakes, Stewart Smith, and Sebastian Spaeth (see mail thread around mail id:20100210031339.gh16

[notmuch] [Sebastian Spaeth] Pull requests

2010-03-01 Thread Sebastian Spaeth
Resending as this did not get through the list somehow. Sorry, if it pops up twice now ---BeginMessage--- From git repository git://github.com/spaetz/notmuch-all-feature.git I would like to advocate the following branches for quick pulling. Each contains 1 or 2 patches. They have all been based

[notmuch] [Sebastian Spaeth] Re: [PATCH] Add an --format=(json|text) command-line option to both notmuch-search and notmuch-show.

2010-03-01 Thread Sebastian Spaeth
On Tue, 23 Feb 2010 12:56:15 -0800, Carl Worth cwo...@cworth.org wrote: [JSON patch] Anyway, very well done! I've applied this now with one change: I might be dumb. But does the json output really not provide the notmuch tags of a message as the text output does, and is that intentional? I was

Re: [notmuch] A few patches

2010-03-01 Thread Sebastian Spaeth
to count everything. Anyone have a better option for what the give-me-everything syntax should be? notmuch count '' The search patterns limit the matched messages/folders. An empty pattern should match everything. I agree that '' should work, but then I would expect to have '*' work as

Re: [notmuch] What's so great about notmuch?

2010-03-01 Thread Sebastian Spaeth
On Fri, 26 Feb 2010 12:08:49 -0800, Carl Worth cwo...@cworth.org wrote: What's your favorite thing about notmuch? It is simple and fast. It lets me use emacs as MUA which I tried before. But I always gave up on GNUS. What about notmuch makes it distinctive compared to other email

[notmuch] [PATCH] notmuch-show: add tags to json output

2010-03-01 Thread Sebastian Spaeth
The previous json patches forgot to add the notmuch tags to the json output. This is inconsistent to the text output so here they are. We just output a 'tags' field that sends a space delimited list of json-encoded notmuch tags. Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- notmuch

[notmuch] more json woes

2010-03-01 Thread Sebastian Spaeth
More json woes... This mail makes json parser commit suicide: body: [{id: 1, content-type: text/html}, {id: 2, content-type: text/plain, content: (null)} and yes, it has empty mime parts. Sebastian ___ notmuch mailing list notmuch@notmuchmail.org

[notmuch] [PATCH] notmuch-show: Do not output (null) when the message body is empty

2010-03-01 Thread Sebastian Spaeth
Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- notmuch-show.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index 0f10797..4c794c4 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -310,10 +310,12 @@ format_part_json

[notmuch] [PATCH 1/2] notmuch-show: Do not output (null) when the message body is empty

2010-03-02 Thread Sebastian Spaeth
Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- I actually agree that we should output tags as array, it was just that the get_tags_as_string function was already existing, so that was more convenient. Here comes the second iteration that outputs the tags as json array. notmuch-show.c

[notmuch] [PATCH 2/2] notmuch-show: add tags to json output

2010-03-02 Thread Sebastian Spaeth
The previous json patches forgot to add the notmuch tags to the json output. This is inconsistent to the text output so here they are. We just output a 'tags' field that sends a space delimited list of json-encoded notmuch tags. Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- notmuch

Re: [notmuch] [PATCH] notmuch-reply: Use a shorter 'On, X Y wrote:' line

2010-03-02 Thread Sebastian Spaeth
On Tue, 2 Mar 2010 15:01:58 +0100, martin f krafft madd...@madduck.net wrote: In case we don't find a '' (as indicator for 'Realname email'), we still use the whole from address. This makes me cringe. I don't think replying should be notmuch-functionality in the first place. :-) I just

Re: [notmuch] [PATCH 2/2] Build and link against notmuch shared library

2010-03-04 Thread Sebastian Spaeth
notmuch_client_modules = $(notmuch_client_srcs:.c=.o) -notmuch: $(notmuch_client_modules) lib/notmuch.a - $(call quiet,CXX,$(LDFLAGS)) $^ $(FINAL_LDFLAGS) -o $@ +notmuch: $(notmuch_client_modules) lib/libnotmuch.so + $(call quiet,CC,$(LDFLAGS)) -lnotmuch $(filter-out

Re: [notmuch] [PATCH] json_quote_str should handle non-ASCII characters

2010-03-04 Thread Sebastian Spaeth
On 2010-03-04, Sebastian Spaeth wrote: The current code in json_quote_str() only accepts strict printable ASCII code points (i.e. 32-127), all other code points are dropped from the JSON output. That would explain why my web interface does not display any umlaut symbols. Nice finding

Re: [notmuch] [PATCH] notmuch-reply: Use a shorter 'On, X Y wrote:' line

2010-03-05 Thread Sebastian Spaeth
On 2010-03-04, Sebastian Spaeth wrote: The second problem is that the value of from_addr doesn't (always?) contain sender's addres. When I wanded to reply to this email with you patch applied, I got: On 2010-03-02, Michal Sojka wrote:. So I fixed that in your patch and added removal of around

Re: [notmuch] auto-tagging replied messages

2010-03-05 Thread Sebastian Spaeth
On 2010-03-05, Sebastian Spaeth wrote: By the way, the reason that I didn't submit this as a patch to notmuch.el is that I'm not sure how we want to deal with things that are actually more about message-mode, and could possibly affect other programs using message-mode (gnus). This is really

[notmuch] gpg decryption

2010-03-08 Thread Sebastian Spaeth
My bank frequently sends me transactions as an inline-armored gpg encrypted text. So I added the below 2 lines in my .emacs and added this function to the list of notmuch-show-hook functions: (defun spaetz/decrypt () (epa-decrypt-armor-in-region (point-min) (point-max))) Despite warning in the

Re: [notmuch] [PATCH]: 0001-Include-tags-in-notmuch-show-format-json.patch

2010-03-08 Thread Sebastian Spaeth
On 2010-03-08, Sebastian Spaeth wrote: On Mon, 8 Mar 2010 14:08:54 +0100, Fernando Herrera fherr...@onirica.com wrote: The attached patch includes tags as headers in the notmuch show --format=json ... output. The text output already shows tags in the one-line header, and I needed them

Re: [notmuch] gpg decryption

2010-03-09 Thread Sebastian Spaeth
On 2010-03-08, Sebastian Spaeth wrote: On Mon, 08 Mar 2010 12:49:54 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: My bank frequently sends me transactions as an inline-armored gpg encrypted text. Wow! That's incredible. I assume this is a German Bank? Only in my wildest

[notmuch] [PATCH] notmuch-show: add tags to json output

2010-03-11 Thread Sebastian Spaeth
The previous json patches forgot to add the notmuch tags to the json output. This is inconsistent to the text output so here they are. We just output a 'tags' field that sends notmuch tags as a json array. Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- notmuch-show.c | 13

Re: [notmuch] Notmuch command interface

2010-03-12 Thread Sebastian Spaeth
Unfortunately, I didn't make much progress in implementating this, but it's definitely a priority for me because I want to get rid of slow notmuchsync. notmuchsync master is now using the json output, by the way. I think that suppressing the output of msg bodies in notmuch show will help

Re: [notmuch] (no subject)

2010-03-12 Thread Sebastian Spaeth
On Fri, 12 Mar 2010 14:47:33 +0100, Ingmar Vanhassel ing...@exherbo.org wrote: Here's my updated series for this. Ben Gamaris original patch gives me an -lnotmuch not found failure during compilation. Your patchset compiles fine and installs /usr/local/bin/notmuch and

Re: [notmuch] [PATCH] Change From and Bcc when creating reply draft buffer

2010-03-12 Thread Sebastian Spaeth
On Fri, 12 Mar 2010 10:22:09 -0500, Jameson Rollins jroll...@finestructure.net wrote: To me it seems the issue here is the distinction between the notmuch CLI, and any other reader UI that uses it. AFAICT, the CLI actually has no need to know what your email address is, so I don't see why it

Re: [notmuch] Notmuch command interface

2010-03-12 Thread Sebastian Spaeth
On Fri, 12 Mar 2010 16:03:34 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: On Fri, 12 Mar 2010, Sebastian Spaeth wrote: Unfortunately, I didn't make much progress in implementating this, but it's definitely a priority for me because I want to get rid of slow notmuchsync

Re: [notmuch] (no subject)

2010-03-12 Thread Sebastian Spaeth
On Fri, 12 Mar 2010 15:43:10 +, ing...@exherbo.org wrote: What's the value of LDPATH in your environment? It should contain /usr/local/lib. If it doesn't that's not an issue with the patch, but with your installation/distro ubuntu 9.10 and I don't have LDPATH set at all. Thanks, I will

Re: [notmuch] (no subject)

2010-03-15 Thread Sebastian Spaeth
On Fri, 12 Mar 2010 16:02:03 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: On Fri, 12 Mar 2010 14:47:33 +0100, Ingmar Vanhassel ing...@exherbo.org wrote: Your patchset compiles fine and installs /usr/local/bin/notmuch and /usr/local/lib/libnotmuch.so.1. However, it doesn't find it when

Re: [notmuch] (no subject)

2010-03-15 Thread Sebastian Spaeth
On Fri, 12 Mar 2010 18:46:02 +, ing...@exherbo.org wrote: ubuntu 9.10 and I don't have LDPATH set at all. Thanks, I will try to fix that. Oh, nevermind what I said earlier. Verify that /usr/local/lib is in /etc/ld.so.conf. If not add it there. Then run ldconfig after installing

[notmuch] Yet another python binding

2010-03-18 Thread Sebastian Spaeth
I've been bragging on IRC over the last couple of days already, so some might already be annoyed by this, but here it goes: I've been binding the notmuch shared library to python and so far it works really nice. It only requires that you have a libnotmuch.so or libnotmuch.so.1 installed in some

Re: [notmuch] reverse iterators

2010-03-21 Thread Sebastian Spaeth
On Sat, 20 Mar 2010 11:23:20 +0100, Ruben Pollan mes...@sindominio.net wrote: Adds support to reverse iteration on messages, threads and tags. To revew and think if makes sense to include them on notmuch or wait until they have a real use. /me raises arm. Real use case here! Personally, I

Re: [notmuch] Using notmuch as an address book for tab-completion

2010-03-21 Thread Sebastian Spaeth
On Sat, 20 Mar 2010 22:35:42 -0400, Jesse Rosenthal jrosent...@jhu.edu wrote: I've written a python script (with some help and suggestions from spaetz) which can perform the address-book functionality, and a backend for emacs's EUDC address-lookup functionality to access the script. Thanks

Re: [notmuch] Using notmuch as an address book for tab-completion

2010-03-22 Thread Sebastian Spaeth
On Mon, 22 Mar 2010 00:13:57 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: On Sun, 21 Mar 2010, Sebastian Spaeth wrote: That reminds me that there is still no installation tool for cnotmuch at all. I'll have to have a look into that. Hi, I have also a silly question :) Why did you call

Re: [notmuch] Using notmuch as an address book for tab-completion

2010-03-22 Thread Sebastian Spaeth
On Mon, 22 Mar 2010 11:14:22 +0100, Ruben Pollan mes...@sindominio.net wrote: Nice feature. I think it should be implemented in the library. There is already a function notmuch_database_get_all_tags, will be nice to have a function notmuch_database_get_all_addresses. Actually, i don't think

Re: [notmuch] [PATCH] notmuch-new: Parse some maildir flags for labels

2010-03-23 Thread Sebastian Spaeth
if I remember, there has been at least three different patches for this, so you are the fourth :-) You're right that it helps a lot with initial import. To promote my work a little bit, I use bidirectional synchronization between maildir flags and notmuch tags, which I sent in

[notmuch] cnotmuch 0.2.1 release (API complete)

2010-03-25 Thread Sebastian Spaeth
FYI: The python bindings for notmuch.so are now API complete and I released them as version 0.2.1. See: http://pypi.python.org/pypi/cnotmuch for an overview and downloads. http://bitbucket.org/spaetz/cnotmuch/ the source code repo/history http://packages.python.org/cnotmuch/ the API documentation

Re: [notmuch] [PATCH] Fix typo in notmuch.h documentation regarding database open modes

2010-03-27 Thread Sebastian Spaeth
On Fri, 26 Mar 2010 18:39:17 +, Michael Forney mich...@obberon.com wrote: --- lib/notmuch.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Thanks, applied in my feature-all branch Sebastian ___ notmuch mailing list

Re: [notmuch] [PATCH] Prevent data loss caused by SIGINT during notmuch new

2010-03-27 Thread Sebastian Spaeth
On Fri, 26 Mar 2010 22:18:13 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: When Ctrl-C is pressed in a wrong time during notmuch new, it can lead to removal of messages from the database even if the files were not removed. Thanks, applied in my feature-all branch. Sebastian

[notmuch] notmuchsync, now with new formula ;-)

2010-03-27 Thread Sebastian Spaeth
Hi all, I just pushed an experimental branch to notmuchsync that uses notmuch.so and my cnotmuch bindings. It needs some cleanup and documentation, but it worked on my box.If you feel adventorous, get it from git clone g...@github.com:spaetz/notmuchsync.git The new stuff is in branch cnotmuch.

Re: [notmuch] [PATCH] Prevent data loss caused by SIGINT during notmuch new

2010-03-29 Thread Sebastian Spaeth
Oh, sorry. I thought it is so trivial, that I didn't even compile it for master. The right version is here: Thanks, that worked fine now. I pushed it to my branch. Sebastian ___ notmuch mailing list notmuch@notmuchmail.org

Re: [notmuch] [PATCH] notmuch-config: make new message tags configurable

2010-03-29 Thread Sebastian Spaeth
On Fri, 12 Mar 2010 17:13:26 -0500, Ben Gamari bgamari.f...@gmail.com wrote: /* success */ case NOTMUCH_STATUS_SUCCESS: state-added_messages++; - tag_inbox_and_unread (message); + for (tag=state-new_tags; *tag != NULL; tag++) +

Re: [notmuch] JSON based emacs UI

2010-03-29 Thread Sebastian Spaeth
On Mon, 29 Mar 2010 10:17:01 +0100, David Edmondson d...@dme.org wrote: I fear this is not correct. I cloned notmuch from Carl's git repository, and whenever I press 'RET' while the point is over the subject line, the result is the same as pressing 'h': the subject information gets toggled.

Re: [notmuch] Notmuch shared library

2010-04-01 Thread Sebastian Spaeth
On Thu, 01 Apr 2010 00:54:16 -0700, Carl Worth cwo...@cworth.org wrote: Finally, I'm a tiny bit annoyed that now after a fresh checkout of notmuch and make that one can't easily run ./notmuch without either installing the library (or fiddling with LD_LIBRARY_PATH). I've got some ideas on how

Re: [notmuch] cnotmuch 0.1.1 release

2010-04-04 Thread Sebastian Spaeth
On 2010-04-03, Cédric Cabessa wrote: libnotmuch.so is in my personal folder, I'd like to use LD_LIBRARY_PATH for that. The problem is that find_library does not read this variable, but hopefully CDLL does. I suggest to not use find_library. If the library do not exist, we just have to

[notmuch] vala, this is notmuch. notmuch, this is vala

2010-04-05 Thread Sebastian Spaeth
I really want to replace my address book with dynamic notmuch searches and while python gives me those in 0.3 seconds or so, I wanted better. So I bound notmuch.so to vala (at least what I needed) and played with the code a bit. The resulting 100 lines of vala code are here:

Re: [notmuch] [PATCH] notmuch.el: Allow citation suffixes to be shown as well as prefixes.

2010-04-06 Thread Sebastian Spaeth
On Wed, 17 Feb 2010 10:51:51 +, David Edmondson d...@dme.org wrote: In many conversations the last few lines of a citation are more interesting than the first few lines, hence allow those to be shown if desired. Modify the face used for the citation button to distinguish it from the

[PATCH 1/2] notmuch.el: Allow citation suffixes to be shown as well as prefixes.

2010-04-06 Thread Sebastian Spaeth
-by: Sebastian Spaeth sebast...@sspaeth.de --- emacs/notmuch-show.el | 36 +--- 1 files changed, 25 insertions(+), 11 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index cc1f905..f172f6b 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el

[PATCH 2/2] notmuch.el: Colour cited regions and signatures with message-cited-text-face

2010-04-06 Thread Sebastian Spaeth
From: David Edmondson d...@dme.org Patch from mail id:1266226909-19360-1-git-send-email-...@dme.org with a fix in id:873a12hl3f@aw.hh.sledj.net Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- emacs/notmuch-show.el | 18 ++ 1 files changed, 10 insertions(+), 8

Re: [notmuch] [PATCH V4] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1--3)

2010-04-06 Thread Sebastian Spaeth
On Sat, 06 Mar 2010 09:20:21 -0500, Jesse Rosenthal jrosent...@jhu.edu wrote: Change the buffer name to a uniquified subject of the thread (i.e. the subject of the first message in the thread) instead of the thread-id. This is more meaningful to the user, and will make it easier to scroll

[PATCH] notmuch.el: Make notmuch-show buffer name first subject, instead of thread-id (supersedes V1--3)

2010-04-06 Thread Sebastian Spaeth
-by: Jesse Rosenthal jrosent...@jhu.edu Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- emacs/notmuch-show.el | 11 --- emacs/notmuch.el | 14 -- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index

Re: [notmuch] vala, this is notmuch. notmuch, this is vala

2010-04-06 Thread Sebastian Spaeth
On Mon, 5 Apr 2010 14:50:04 +0100, Enrico Zini enr...@enricozini.org wrote: Now I use lbdb, which gets very slow as time goes. You idea creates a most definitely superior system. You can actually use both :): Do check out the patch on the mailing list to combine the notmuch address lookup with

[PATCH] * notmuch-reply.c: 542e32876 introduced a superfluous { in an if statement

2010-04-07 Thread Sebastian Spaeth
--- notmuch-reply.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-reply.c b/notmuch-reply.c index e69e7a4..f26ca39 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -402,7 +402,7 @@ notmuch_reply_format_default(void *ctx, notmuch_config_t *config,

Re: [notmuch] [Sebastian Spaeth] Pull requests

2010-04-07 Thread Sebastian Spaeth
On 2010-04-07, micah anderson wrote: The only other patch that I find absolutely crucial, that you do not include, is the 'Preserve folder information when indexing' patch which, although not perfect, does significantly change my life. This patch in included in my branch now. There is a

Re: Plans for the 0.2 release (this week)

2010-04-08 Thread Sebastian Spaeth
First of all, thanks for the great work Carl. I have to admit I was getting nervous about the backlog of patches, but your recent committing binge (you did say your work patterns are bursty :-)) made me very happy. That having said, I am glad to meet your expectation: I expect people to remind

RFC: User-Agent header

2010-04-08 Thread Sebastian Spaeth
notmuch is (mostly) not responsible for sending email. However, people using the emacs frontend use notmuch to create the reply. Am I the only one who is sometimes curious as to what mail agents others use? Would it be useful to insert a header to notmuch reply analog to: User-Agent: Mutt/1.5.13

Re: [notmuch] [Sebastian Spaeth] Pull requests

2010-04-09 Thread Sebastian Spaeth
On 2010-04-08, Michal Sojka wrote: I think that the patch you sent was not the latest version. The latest is in id:1265122868-12133-1-git-send-email-sojk...@fel.cvut.cz, but it is not rebased to the current master. Not sure what I am doing wrong, but with this patch even after a

Re: Plans for the 0.2 release (this week)

2010-04-10 Thread Sebastian Spaeth
On 2010-04-10, Carl n∅tmuch 䚳 Worth wrote: Are you all trying to show a problem here? All of the above comes through fine. Perhaps it's only with non-ASCII in the From line being replied to? Let's test that here... I think there are 2 issues being discussed here. One is the encoding in the

Re: Initial attempt at a merge window for notmuch

2010-04-10 Thread Sebastian Spaeth
On 2010-04-09, Carl Worth wrote: Here's the current list: Having such a list is great. So now we need to get you a key-binding that says, take query xy results and stuff them into the wiki (or some pastebin like service with a fixed URL). Looking forward to 0.2. Sebastian (THanks to the

  1   2   3   4   5   6   7   >