zsh-users
 help / color / mirror / code / Atom feed
From: Quinn Dunkan <quinn@envy.ugcs.caltech.edu>
To: zsh-users@math.gatech.edu (zsh users mailing list)
Subject: zsh $mailpath + MH
Date: Mon, 20 Oct 1997 02:19:30 -0700	[thread overview]
Message-ID: <199710200919.CAA00252@tammananny.tiger> (raw)

while we're on the subject of MUAs, some improvements could be made in zsh's
mail checking facility, especially where MH-style mail directories are
concerned.  First of all, a quick glance at utils.c seems to indicate that the
algorithm for deciding if new mail has arrived is hard coded.  Why not just
have a $MAILFUNC or something than contains the name (oops, here comes that
lambda buisness again :) ) of a function that returns, say, 1 for new mail and
0 for no new mail.  Now that I think of it, why not eliminate mail checking
entirely, and replace it with something in precmd()?  Then it's simple to do
stuff like change PS1 based on mail status, play sound files, etc.  Any
particular reason not to do this?  Back to the existing mail checking:  if I
set $mailpath to my incoming MH directories (mail is sorted with procmail, then
delivered MH-style), I get one notification for every message recieved.  Then I
get notified again whenever I look at any messages.  My current fix is to have
procmail deliver to normail unix mail-files and then have MH extract them
automatically, but I may try mucking around with precmd()...


             reply	other threads:[~1997-10-20  9:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-20  9:19 Quinn Dunkan [this message]
1997-10-21 21:30 ` Timothy J Luoma

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=199710200919.CAA00252@tammananny.tiger \
    --to=quinn@envy.ugcs.caltech.edu \
    --cc=zsh-users@math.gatech.edu \
    /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).