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