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
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
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
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/
-=-=-=-=-=-=-=-=-=-=-=-=-=
; 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
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
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
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