+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
> +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
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
?
> 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/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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/
-=-=-=-=-=-
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
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
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
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
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
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
11 matches
Mail list logo