From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: MAIL, MAILPATH and maildir support
Date: Thu, 03 Jun 1999 17:45:59 +0200 [thread overview]
Message-ID: <9906031546.AA18892@ibmth.df.unipi.it> (raw)
In-Reply-To: ""Bart Schaefer""'s message of "Thu, 03 Jun 1999 15:51:01 DFT." <990603155101.ZM4040@candle.brasslantern.com>
"Bart Schaefer" wrote:
> However, maybe we should
> consider having a special function name (like precmd and preexec) that,
> if it's defined, is called in place of the built-in mail-check procedure.
> ...
> I can
> say with a fair degree of confidence that previous zsh maintainers would
> vote in favor of using the existing precmd/periodic mechanism, but the
> problem with that is that you can't set it up "transparently" to use the
> standard set of shell variables (because you can't -stop- zsh from doing
> the check on its own if those variables are set).
Yes, indeed, I was thinking about that. It doesn't stop you using a
different set of variables and unsetting MAILCHECK, of course, but that's a
little crufty. On the other hand, we could introduce a special syntax,
e.g. MAILCHECK could be (say) 60?checkname where checkname was the
function to run instead of the standard code. How does that sound? I
don't see any compatibility problems --- or is there something that could
fail because MAILCHECK is a scalar rather than an integer?
If I implemented this, I would try and produce a function to reproduce the
current checkmailpath to make it easier for people to hack it. I suspect
this would use the stat module, otherwise it's going to be messy, but maybe
there are some tricks with globs.
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
next prev parent reply other threads:[~1999-06-03 16:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-03 4:00 Clint Adams
1999-06-03 5:46 ` Bart Schaefer
1999-06-03 12:02 ` Clint Adams
1999-06-03 13:20 ` Oliver Kiddle
1999-06-03 14:08 ` Peter Stephenson
1999-06-03 15:51 ` Bart Schaefer
1999-06-03 15:45 ` Peter Stephenson [this message]
1999-06-07 13:45 ` Oliver Kiddle
1999-06-03 19:18 ` Bruce Stephens
1999-06-04 9:48 Sven Wischnowsky
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=9906031546.AA18892@ibmth.df.unipi.it \
--to=pws@ibmth.df.unipi.it \
--cc=zsh-workers@sunsite.auc.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).