From: Patrick Totzke <patricktotzke@googlemail.com>
To: Philippe LeCavalier <support@plecavalier.com>, notmuch@notmuchmail.org
Subject: Re: [alot] nottoomuch-addresses.sh config
Date: Wed, 29 Feb 2012 19:12:53 +0000 [thread overview]
Message-ID: <20120229191253.28323.85848@megatron> (raw)
In-Reply-To: <20120229163140.3587.19027@plc.plecavalier.com>
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 account.
each account subsection may have an "abook" subsubsection to define the abook for this account.
here's what I use myself:
```
#.. global configs
[accounts]
[[gmail]]
realname = Patrick Totzke
address = patricktotzke@gmail.com
aliases = patricktotzke@googlemail.com,
sendmail_command = msmtp --account=gmail -t
draft_box = "maildir:///home/pazz/mail/gmail/[Google Mail].Drafts"
sent_box = "maildir:///home/pazz/mail/gmail/[Google Mail].Sent Mail"
[[[abook]]]
command = nottoomuch-addresses.sh
regexp = (\"(?P<name>.+)\")?\s*<(?P<email>.*@.+?)>
[[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
next prev parent reply other threads:[~2012-02-29 19:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 16:31 [alot] nottoomuch-addresses.sh config Philippe LeCavalier
2012-02-29 19:12 ` Patrick Totzke [this message]
2012-03-01 9:03 ` Patrick Totzke
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=20120229191253.28323.85848@megatron \
--to=patricktotzke@googlemail.com \
--cc=notmuch@notmuchmail.org \
--cc=support@plecavalier.com \
/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).