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

2010-11-19 Thread meskio
From: Ruben Pollan mes...@sindominio.net 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

Re: Stashed session keys

2017-11-15 Thread meskio
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. -- meskio | http://mesk

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: [PATCH] python: add bindings for notmuch_message_get_propert(y/ies)

2017-11-28 Thread meskio
okkeeping -- 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_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/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- My contact info: http

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

2018-04-27 Thread meskio
d, I'd prefer to be > 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

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

2018-05-02 Thread meskio
t; +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 was reasonable to only support utf-8 properties, so > converting to s

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

2018-05-01 Thread meskio
t_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("testkey1"))) I thin