Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: MH for Mailboxes (TM)
- X-seq: zsh-workers 13743
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: MH for Mailboxes (TM)
- Date: Sat, 24 Mar 2001 23:55:50 +0000
- In-reply-to: ""Bart Schaefer""'s message of "Sat, 24 Mar 2001 18:06:07 GMT." <1010324180607.ZM29285@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
"Bart Schaefer" wrote:
> Where does one obtain the name of the last folder? Fill it in to the
> `lastmhbox' parameter below, and uncomment the corresponding lines.
Er, OK. Tear along dotted line and enclose self-addressed envelope?
Index: Completion/User/_mailboxes
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_mailboxes,v
retrieving revision 1.9
diff -u -r1.9 _mailboxes
--- Completion/User/_mailboxes 2001/03/24 18:22:55 1.9
+++ Completion/User/_mailboxes 2001/03/24 23:53:06
@@ -118,14 +118,14 @@
fi
;;
(*:mh:*)
-# local lastmhbox=??? # Where does this come from?
+ local lastmhbox=$(mhpath)
if compset -P +; then
mbox_names=( "${(@)_mh_cache#$~maildirectory/}" )
-# elif compset -P @; then
-# mbox_names=( "${(@)${(@M)_mh_cache:#$~lastmhbox/*}#$~lastmhbox/}" )
+ elif compset -P @; then
+ mbox_names=( "${(@)${(@M)_mh_cache:#$~lastmhbox/*}#$~lastmhbox/}" )
else
mbox_names=( +"${(@)^_mh_cache#$~maildirectory/}"
-# @"${(@)^${(@M)_mh_cache:#$~lastmhbox/*}#$~lastmhbox/}"
+ @"${(@)^${(@M)_mh_cache:#$~lastmhbox/*}#$~lastmhbox/}"
"${_mh_cache[@]}" )
fi
;;
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk
Messages sorted by:
Reverse Date,
Date,
Thread,
Author