unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: meskio <meskio@sindominio.net>
To: notmuch@notmuchmail.org
Subject: Re: [PATCH] python: add bindings for notmuch_message_get_propert(y/ies)
Date: Tue, 28 Nov 2017 23:51:30 +0100	[thread overview]
Message-ID: <151190949093.14333.12078784026134755427@localhost> (raw)
In-Reply-To: <20171128224611.10712-1-meskio@sindominio.net>

[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

Quoting Daniel Kahn Gillmor (2017-11-17 10:03:09)
> On Wed 2017-11-15 23:29:54 +0100, Ruben Pollan wrote:
> > Message.get_property (prop) returns a string with the value of the property.
> 
> Upon review, this is actually insufficient for making robust use of the
> session-key series :(
> 
> In particular, it only returns the first value for the session key
> returned.

See the last patch. I added the implementation of get_properties (and I use it 
in my session-key branch of alot). Hopefully this solves the problem.

> In the session-key series, i work around this by simply trying each
> session key against an encrypted part until i find one that works. It
> would be "cleaner" (more principled) to somehow associate each session
> key with the part(s) of the message file(s) that it is capable of
> decrypting, but that's a lot 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/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 My contact info: http://meskio.net/crypto.txt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Nos vamos a Croatan.

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEs7M6f/ZpXzXMAQR+Urj1rJei2oYFAlod6F0ACgkQUrj1rJei
2oYRDA/+LdqqUNCrB01gjsl0Lohw5DUxfp1Hpswi/J/yBUJY2RYbMO4wWMypKaJt
GN5ZZZp5C6opCnBdWmR7/0b8LLGNNFwhj4OkTbA1t8qJLYrMFfOSlyIfBXt1Qtmc
eJ9exca8Tp8dewixqmGG6TfHUuaKrSkKosEYJY2qsyTFVKcoecIn3VDnoQckEEN9
/qX/c7C9zer3h0odU+cAaJQDIuIOZCq3rxijtzueK1Yt5cS4BT3y9J52glUD2CLr
FnBVpO4fJiItPGnHC8msqQk1AeYcGp92a0TbAQIwiIi5EbH875M/oHZmrJb73XXn
JpU9ezH3t0ZHGObdMX1aRuJUtZS16WguiLzLebBcEemCaE30C08ow4Tykh4GJkMg
lO3dgEvK3uMQww5WO6N6godSbxoQtpvsJL85GRpX/8g5uT8q09mZ/okCtSOPu9Qc
lablQcOK0L1DvIqSLgKuMpRRzEZQ9mG9kMaEZzj3FlaK4ltxaGSZUmQrcQn4yikf
PsLAob5oVVW0YxlvhMl9miI4nFAPzmvN/uM/FaQwh78RbBmqWG1KnAcjU110pVFc
T5D2dTRLQBl+wzw/Q+ZDllUC1Fy2OlleOH9Yjyj46diVbcD3gvr22ZtqCpZ482yN
UYBPWbkYjJaSLacxrnYnTrtQZ52SxNIUMKU6OBpdbkgtyku+vC4=
=6nxo
-----END PGP SIGNATURE-----

  reply	other threads:[~2017-11-28 22:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-15 22:29 [PATCH] python: add bindings for notmuch_message_get_property Ruben Pollan
2017-11-15 22:48 ` meskio
2017-11-17  9:03 ` Daniel Kahn Gillmor
2017-11-28 22:46   ` [PATCH] python: add bindings for notmuch_message_get_propert(y/ies) Ruben Pollan
2017-11-28 22:51     ` meskio [this message]
2017-11-29  1:57     ` Daniel Kahn Gillmor
2017-11-29  8:02       ` meskio
2017-11-29  8:03         ` Ruben Pollan
2017-12-23 15:59           ` David Bremner
2018-04-27 19:12             ` meskio
2018-04-27 19:15               ` Ruben Pollan
2018-05-01 13:06                 ` David Bremner
2018-05-01 15:24                   ` meskio
2018-05-01 15:28                     ` Ruben Pollan
2018-05-02  0:08                       ` David Bremner
2018-05-02 17:00                         ` meskio
2018-05-02 17:01                           ` Ruben Pollan
2018-05-02 23:50                             ` David Bremner
2017-11-29 21:40       ` Floris Bruynooghe
2017-11-30 13:44         ` David Bremner
2017-11-30 14:19           ` Daniel Kahn Gillmor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=151190949093.14333.12078784026134755427@localhost \
    --to=meskio@sindominio.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).