Re: [alot] nottoomuch-addresses.sh config
authorPatrick Totzke <patricktotzke@googlemail.com>
Wed, 29 Feb 2012 19:12:53 +0000 (19:12 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:05 +0000 (09:45 -0800)
a8/1afac27941ee89f63a8fa3a127fb11d128ae74 [new file with mode: 0644]

diff --git a/a8/1afac27941ee89f63a8fa3a127fb11d128ae74 b/a8/1afac27941ee89f63a8fa3a127fb11d128ae74
new file mode 100644 (file)
index 0000000..8b5b84b
--- /dev/null
@@ -0,0 +1,126 @@
+Return-Path: <patricktotzke@googlemail.com>\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 29E6D431E84\r
+       for <notmuch@notmuchmail.org>; Wed, 29 Feb 2012 11:14:03 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.7\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.7 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, FREEMAIL_REPLY=2.499, RCVD_IN_DNSWL_LOW=-0.7]\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 CIU5VsGz-u+g for <notmuch@notmuchmail.org>;\r
+       Wed, 29 Feb 2012 11:14:02 -0800 (PST)\r
+Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 5C4BC431E82\r
+       for <notmuch@notmuchmail.org>; Wed, 29 Feb 2012 11:14:02 -0800 (PST)\r
+Received: by werm13 with SMTP id m13so2301803wer.26\r
+       for <notmuch@notmuchmail.org>; Wed, 29 Feb 2012 11:14:01 -0800 (PST)\r
+Received-SPF: pass (google.com: domain of patricktotzke@googlemail.com\r
+       designates 10.180.24.7 as permitted sender)\r
+       client-ip=10.180.24.7; \r
+Authentication-Results: mr.google.com; spf=pass (google.com: domain of\r
+       patricktotzke@googlemail.com designates 10.180.24.7 as\r
+       permitted sender) smtp.mail=patricktotzke@googlemail.com;\r
+       dkim=pass header.i=patricktotzke@googlemail.com\r
+Received: from mr.google.com ([10.180.24.7])\r
+       by 10.180.24.7 with SMTP id q7mr3564037wif.14.1330542841002 (num_hops =\r
+       1); Wed, 29 Feb 2012 11:14:01 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=googlemail.com; s=gamma;\r
+       h=content-type:mime-version:content-transfer-encoding:from:user-agent\r
+       :to:references:in-reply-to:message-id:subject:date;\r
+       bh=GE/McJFwOZWFQg0Hztrp6a+Ca7N+wCO6rbm4495wFbE=;\r
+       b=ePqo7W4J/WGVKLivDhhB5V2Zb1QZiJ/jqc9nsXbIxUlPy9Gen9eZwyqYCft46jV83o\r
+       N9aa1YYCxjYgW5wHF+bhqF2f7HX7svjD7sayNLIWCMOCnIxoK8p17zbSMRKrteHMvyyw\r
+       PcgyPx+GYo95z6Yf+YgnBdmo7WdU4r8ucXNu4=\r
+Received: by 10.180.24.7 with SMTP id q7mr2862597wif.14.1330542840855;\r
+       Wed, 29 Feb 2012 11:14:00 -0800 (PST)\r
+Received: from localhost (dhcp-91-036.inf.ed.ac.uk. [129.215.91.36])\r
+       by mx.google.com with ESMTPS id d8sm28977636wia.11.2012.02.29.11.13.59\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Wed, 29 Feb 2012 11:13:59 -0800 (PST)\r
+Content-Type: text/plain; charset="utf-8"\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: quoted-printable\r
+From: Patrick Totzke <patricktotzke@googlemail.com>\r
+User-Agent: alot/0.21+\r
+To: Philippe LeCavalier <support@plecavalier.com>,  notmuch@notmuchmail.org\r
+References: <20120229163140.3587.19027@plc.plecavalier.com>\r
+In-Reply-To: <20120229163140.3587.19027@plc.plecavalier.com>\r
+Message-ID: <20120229191253.28323.85848@megatron>\r
+Subject: Re: [alot] nottoomuch-addresses.sh config\r
+Date: Wed, 29 Feb 2012 19:12:53 +0000\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: Wed, 29 Feb 2012 19:14:03 -0000\r
+\r
+Quoting Philippe LeCavalier (2012-02-29 16:31:40)\r
+>I had nottoomuch-addresses.sh working perfectly in emacs and I'm trying\r
+>to get it going in alot. Here's[1] what I've got so far. One things that\r
+>really confusing me is the brackets in the help file[2]. As soon as I\r
+>put double brackets alot can't read the account. Am I misunderstanding\r
+>something about those brackets?\r
+the config uses a section called "account" and each subsection defines an a=\r
+ccount.\r
+each account subsection may have an "abook" subsubsection to define the abo=\r
+ok for this account.\r
+here's what I use myself:\r
+\r
+```\r
+#.. global configs\r
+\r
+[accounts]\r
+\r
+    [[gmail]]\r
+        realname =3D Patrick Totzke\r
+        address =3D patricktotzke@gmail.com\r
+        aliases =3D patricktotzke@googlemail.com,\r
+        sendmail_command =3D msmtp --account=3Dgmail -t\r
+        draft_box =3D "maildir:///home/pazz/mail/gmail/[Google Mail].Drafts"\r
+        sent_box =3D "maildir:///home/pazz/mail/gmail/[Google Mail].Sent Ma=\r
+il"\r
+        [[[abook]]]\r
+          command =3D nottoomuch-addresses.sh\r
+          regexp =3D (\"(?P<name>.+)\")?\s*<(?P<email>.*@.+?)>\r
+\r
+     [[uni]]\r
+        #...\r
+```\r
+\r
+> should I be creating a key binding to invoke the completion command?\r
+No: this is used when you are prompted for recipients when composing a mail:\r
+Hit `m`, select your account if you have more thn one, and when the prompt =\r
+says\r
+"To:" you =\r
+\r
+\r
+\r
+>It would seem to me that I might need to specify where the heck the\r
+>script lives?\r
+\r
+In your $PATH.\r
+alot hands this command string to `subprocess.Popen`, which accepts\r
+command names to to look them up in $PATH or absolute paths to binaries\r
+if i'm not mistaken.\r
+\r
+\r
+hth,\r
+/p\r