From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Laurent Rineau <rineau@clipper.ens.fr>
Cc: zsh-workers@sunsite.dk
Subject: Re: _email_adresses, if MH is not installed.
Date: Thu, 15 Jan 2004 16:11:46 +0100 [thread overview]
Message-ID: <11788.1074179506@gmcs3.local> (raw)
In-Reply-To: <20040115140035.GA9546@clipper.ens.fr>
Laurent Rineau wrote:
> If MH is not installed on the system, I get the following error :
>
> rineau@clipper ~ $ mutt rineau<TAB>(eval):1: command not found: ali
> @
>
> The reason is that the external program 'ali' is not installed and
> _email_adresses does not test if MH is used.
Thanks for spotting this.
> What about the following patch ?
I've adapted it slightly. Normally we get around this problem with a
2>/dev/null. In this case, requiring ~/.mh_profile too is probably wise
since if it doesn't exist, ali will create it. Also, the MH environment
variable can specify an alternate rc file. So I'll commit this below:
Index: Completion/Unix/Type/_email_addresses
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_email_addresses,v
retrieving revision 1.2
diff -u -r1.2 _email_addresses
--- Completion/Unix/Type/_email_addresses 29 Jan 2003 14:21:13 -0000 1.2
+++ Completion/Unix/Type/_email_addresses 15 Jan 2004 14:58:36 -0000
@@ -22,7 +22,7 @@
(( $+functions[_email-MH] )) ||
_email-MH() {
- reply=( ${${(f)"$(_call_program aliases ali)"}/: /:} )
+ reply=( ${${(f)"$(_call_program aliases ali 2>/dev/null)"}/: /:} )
return 300
}
@@ -119,7 +119,7 @@
fi
# get list of all plugins except any with missing config files
- files=( mutt ~/.muttrc mush ~/.mushrc mail ${MAILRC:-~/.mailrc} pine ~/.addressbook )
+ files=( MH ${MH:-~/.mh_profile} mutt ~/.muttrc mush ~/.mushrc mail ${MAILRC:-~/.mailrc} pine ~/.addressbook )
plugins=(
${${(k)functions[(I)_email-*]#*-}:#(${(kj.|.)~files})}
$files(Ne:'REPLY=( ${(k)files[(r)$REPLY]} ):')
prev parent reply other threads:[~2004-01-15 15:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-15 14:00 Laurent Rineau
2004-01-15 15:11 ` Oliver Kiddle [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11788.1074179506@gmcs3.local \
--to=okiddle@yahoo.co.uk \
--cc=rineau@clipper.ens.fr \
--cc=zsh-workers@sunsite.dk \
/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://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).