From: Phil Pennock <Phil.Pennock@globnix.org>
To: zsh-users@sunsite.dk
Subject: Re: compctl whitespace changes
Date: Thu, 9 Aug 2001 08:14:32 +0200 [thread overview]
Message-ID: <20010809081432.A8416@globnix.org> (raw)
In-Reply-To: <1010808160315.ZM1017@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Wed, Aug 08, 2001 at 04:03:15PM +0000
On 2001-08-08 at 16:03 +0000, Bart Schaefer wrote:
> Better might be
>
> _lmutt () { local maildirectory=~/Mail/Lists; _mutt "$@" }
Okay, this has helped with my understanding a lot by pointing me at
things to examine. Thanks. However, its not correct by the spec I
gave. lmutt takes _just_ the name of the mailbox as a parameter, not
with a -f. So I'd say "lmutt zsh bugtraq" and, inside a loop over zsh &
bugtraq I'd fiddle with the xterm title (if appropriate) and start:
mutt -f "+Lists/$i"
But Sven's answer works fine, module correcting "bin".
Looking into _mutt, I've seen a problem with Maildirs support.
With Maildir, you have your main Maildir, eg ~/Maildir/, and you can
have folders inside that, each of which has a name starting with a
period. The normal one is .Trash, but others can be created. The
current stuff doesn't handle this at all -- you might want a glob_dots
modifier in there. Ideally mutt would understand folders itself, but
even so I'd still want zsh's tab-completion to allow me to start on a
folder. :^)
So, what's happening here? If I do "mutt -f +<TAB>" then I get a list
of files in the default $maildirectory. If I do:
compdef _imutt imutt
_imutt () { setopt localoptions globdots; local
maildirectory=~/Maildir; _mutt "$@" }
then when I do "imutt -f +<TAB>" I get nothing. I've looked at the
special maildir handling, and AFAICS in _mailbox_cache() $dirboxes
should get the dot-directories and the while-loop should be happy, since
each folder contains its own {cur,new,tmp}/ ... but it's failing. Que?
At the moment, I'll stick with the imutt() which is like lmutt() and
uses a compctl like the original one I gave, despite the fact that I
need to *gasp* press space myself manually because -W doesn't handle
names starting with a dot.
Do people feel that a supplied patch to add Maildir support into
$mailpath would be appropriate? I'm happy to do the work, if it's not
considered a bad idea.
Thanks for the help,
--
Pentiums melt in your PC, not in your hand.
next prev parent reply other threads:[~2001-08-09 6:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-07 23:57 Phil Pennock
2001-08-08 8:22 ` Sven Wischnowsky
2001-08-08 16:03 ` Bart Schaefer
2001-08-09 6:14 ` Phil Pennock [this message]
2001-08-09 9:27 ` Bart Schaefer
2001-08-09 9:43 ` Phil Pennock
2001-08-09 10:07 Will Yardley
2001-08-10 8:59 ` Phil Pennock
2001-08-10 15:56 ` Bart Schaefer
2001-08-10 16:36 ` Phil Pennock
2001-08-10 18:51 ` Bart Schaefer
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=20010809081432.A8416@globnix.org \
--to=phil.pennock@globnix.org \
--cc=zsh-users@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).