* [alot] nottoomuch-addresses.sh config
@ 2012-02-29 16:31 Philippe LeCavalier
2012-02-29 19:12 ` Patrick Totzke
0 siblings, 1 reply; 3+ messages in thread
From: Philippe LeCavalier @ 2012-02-29 16:31 UTC (permalink / raw)
To: notmuch
Hi.
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? I'm very much a non-coder in case it
wasn't already obvious...Also, should I be creating a key binding to
invoke the completion command?
Thanks,
Phil
ref.
[1]
command = nottoomuch-addresses.sh
regexp = \"(?P<name>.+)\"\s*<(?P<email>.*.+?@.+?)>
It would seem to me that I might need to specify where the heck the
script lives?
[2]
http://alot.readthedocs.org/en/latest/configuration/index.html#contacts-completion
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [alot] nottoomuch-addresses.sh config
2012-02-29 16:31 [alot] nottoomuch-addresses.sh config Philippe LeCavalier
@ 2012-02-29 19:12 ` Patrick Totzke
2012-03-01 9:03 ` Patrick Totzke
0 siblings, 1 reply; 3+ messages in thread
From: Patrick Totzke @ 2012-02-29 19:12 UTC (permalink / raw)
To: Philippe LeCavalier, notmuch
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-01 9:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29 16:31 [alot] nottoomuch-addresses.sh config Philippe LeCavalier
2012-02-29 19:12 ` Patrick Totzke
2012-03-01 9:03 ` Patrick Totzke
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).