Re: [PATCH] python: use wrapped notmuch_*_t types instead of raw pointers
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 6 Dec 2011 12:35:01 +0000 (13:35 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:37 +0000 (09:40 -0800)
26/acee9bf22d1b492c60e63270882143fc22d5a7 [new file with mode: 0644]

diff --git a/26/acee9bf22d1b492c60e63270882143fc22d5a7 b/26/acee9bf22d1b492c60e63270882143fc22d5a7
new file mode 100644 (file)
index 0000000..60bd582
--- /dev/null
@@ -0,0 +1,91 @@
+Return-Path: <Sebastian@SSpaeth.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 17478431FB6\r
+       for <notmuch@notmuchmail.org>; Tue,  6 Dec 2011 04:35:28 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.184\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.184 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=1.274, T_MIME_NO_TEXT=0.01]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Dt1hMOkSzMqL for <notmuch@notmuchmail.org>;\r
+       Tue,  6 Dec 2011 04:35:27 -0800 (PST)\r
+Received: from homiemail-a22.g.dreamhost.com (unknown [208.97.132.74])\r
+       by olra.theworths.org (Postfix) with ESMTP id B0C83429E36\r
+       for <notmuch@notmuchmail.org>; Tue,  6 Dec 2011 04:35:25 -0800 (PST)\r
+Received: from homiemail-a22.g.dreamhost.com (localhost [127.0.0.1])\r
+       by homiemail-a22.g.dreamhost.com (Postfix) with ESMTP id 736091A8069;\r
+       Tue,  6 Dec 2011 04:35:13 -0800 (PST)\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject\r
+       :in-reply-to:references:date:message-id:mime-version:\r
+       content-type; q=dns; s=sspaeth.de; b=dzPraet+AgBUEzVegtwt3aiXShp\r
+       +0IlP9puOgi/F6VoMms6QPv+Wn5PzaYn2WWOmCviJEcef5kmcrEbR+DsE/KsVgJk\r
+       Vq6S6oA7QVph0hELOL/X6O2GoZwZIdfOBMRnlSe9iTAy1ubpCT9vmvGTvpIMsJVu\r
+       H3jcFQPUsMMuYe2c=\r
+DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to\r
+       :subject:in-reply-to:references:date:message-id:mime-version:\r
+       content-type; s=sspaeth.de; bh=GweCvlveviOOWRu8YxFeV6V3En4=; b=T\r
+       SJT1xyd6Ba/XKvgJNwSBX0nINV1S2o6aPbCnMllRhp7qRIBLTjGrNvhsXVOxVmUt\r
+       e3OT4W+2r6o/mh3ukVdMhcRXiWfnXY3fOA8Iy+EGneyZ9ykPp/x1tNUIvtnnpmx+\r
+       7+O5nmtIcwHw9XJPluKfrwjhlbma5cVBLdYYoZFVrc=\r
+Received: from spaetzbook.sspaeth.de (unknown [176.46.199.176])\r
+       (Authenticated sender: fax@sspaeth.de)\r
+       by homiemail-a22.g.dreamhost.com (Postfix) with ESMTPA id D2C9B1A8063; \r
+       Tue,  6 Dec 2011 04:35:11 -0800 (PST)\r
+Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation);\r
+       Tue, 06 Dec 2011 13:35:02 +0100\r
+From: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
+To: Thomas Jost <schnouki@schnouki.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] python: use wrapped notmuch_*_t types instead of raw\r
+       pointers\r
+In-Reply-To: <1323165802-16960-1-git-send-email-schnouki@schnouki.net>\r
+References: <1323165802-16960-1-git-send-email-schnouki@schnouki.net>\r
+User-Agent: Notmuch/0.10+58~g935365d (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Tue, 06 Dec 2011 13:35:01 +0100\r
+Message-ID: <878vmp7ua2.fsf@SSpaeth.de>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 06 Dec 2011 12:35:28 -0000\r
+\r
+--=-=-=\r
+\r
+On Tue,  6 Dec 2011 11:03:22 +0100, Thomas Jost <schnouki@schnouki.net> wrote:\r
+> Now that types are checked correctly, we also need to make sure that all the\r
+> arguments actually are instances of these types. Otherwise the function calls\r
+> will fail and raise an exception similar to this one:\r
+>    ctypes.ArgumentError: argument 3: <type 'exceptions.TypeError'>: expected\r
+>    LP_LP_NotmuchMessageS instance instead of pointer to c_void_p\r
+\r
+Thanks, Pushed.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iEYEARECAAYFAk7eC/YACgkQVYX1jMgnoGJLlgCeIyOcWTn7UJ54idJ/iQVUUblW\r
+7g0AoIEAqZ1PCt1S/5Kc3U5LcjhL11Hj\r
+=t16k\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r