Re: [PATCH] python: add bindings for notmuch_message_get_propert(y/ies)

2018-05-02 Thread meskio
+b'testkey1' = b'bob' > +b'testkey1' = b'testvalue1' > +b'testkey1' = b'testvalue2' > > I don't _think_ that's what we want. We had some discussion before and > decided that it w

Re: [PATCH] python: add bindings for notmuch_message_get_propert(y/ies)

2018-05-01 Thread meskio
> +test_python <<'EOF' > +import notmuch > +db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE) > +msg = db.find_message("4efc743a.3060...@april.org") > +print("testkey1[1] = %s\n".format(msg.get_property("testk

Re: [PATCH] python: add bindings for notmuch_message_get_propert(y/ies)

2018-04-27 Thread meskio
consistent > with that, and define a generator that yields key/value pairs. It's easy > enough for someone to use a dictionary comprehension to get a dict from > that if they want it. Sorry to be making extra work for you. Good to me, I'm sending an update with all this fixed. Sor

Re: [PATCH] python: add bindings for notmuch_message_get_propert(y/ies)

2017-11-29 Thread meskio
? > if so, maybe that should be the default? I didn't thought about that, but you are right, with prop="" you get the full list of properties of the message. Nice, let's put it as default value. -- meskio | http://meskio.net/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Re: [PATCH] python: add bindings for notmuch_message_get_propert(y/ies)

2017-11-28 Thread meskio
of bookkeeping -- i think it's actually > "cleaner" (less code, less computation in the standard case) to just > take the current approach. Fair enough for me, I'm copying this approach in alot as well. -- meskio | http://meskio.net/ -=-=-=-=-=-

Re: [PATCH] python: add bindings for notmuch_message_get_property

2017-11-15 Thread meskio
Quoting Ruben Pollan (2017-11-15 23:29:54) > Message.get_property (prop) returns a string with the value of the property. I only implemented get_property as is the only one I need to add support for session keys in alot (https://github.com/meskio/alot/tree/session-key). From the point of v

Re: Stashed session keys

2017-11-15 Thread meskio
I like to don't be able to have around my old private keys. I implemented some support for it in alot (using the patch I just sent adding notmuch_message_get_property to the python binding): https://github.com/meskio/alot/tree/session-key Thanks for the work. -- meski

[PATCH] Including 'unread' tag to mails without maildir flags

2010-11-19 Thread meskio
From: Ruben Pollan Some mail fetchers, like fetchmail, leaves the email without ':2,' at the end of the filename. Notmuch didn't detect this emails as maildir, it didn't add the maildir flags to them. Now it detects if a mail is in a maildir by the directory structure, and add its maildir flags

[notmuch] [PATCH 2/2] Added regress option to messages iterator

2009-12-08 Thread meskio
From: Ruben Pollan Added the functions notmuch_messages_regress and notmuch_messages_is_first to notmuch library. With them is possible to iterate backwards on messages. * notmuch_messages_regress do the opposite than notmuch_messages_advance, getting the messages iterator one position backwar

[notmuch] [PATCH 1/2] Convert notmuch_message_list_t in a doubly linked

2009-12-08 Thread meskio
From: Ruben Pollan The messages list now have pointers to previous nodes, so it is possible to iterate backwards. --- lib/messages.c| 18 +- lib/notmuch-private.h |3 ++- lib/thread.cc |4 ++-- 3 files changed, 17 insertions(+), 8 deletions(-) diff --gi

[notmuch] regress option to messages iterator

2009-12-08 Thread meskio
Two patches for implement the regress functions on messages. With them notmuch_messages_t can be use as an iterator forwards and backwards. Up to now not really useful, nothing use them. I send them mainly to review. I'll do the same to threads and tags, so the UIs can use them. PS: It's the fir