Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh $mailpath + MH
- X-seq: zsh-users 1092
- From: Quinn Dunkan <quinn@xxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx (zsh users mailing list)
- Subject: zsh $mailpath + MH
- Date: Mon, 20 Oct 1997 02:19:30 -0700
- Recieved: from tammananny.tiger (quinn@xxxxxxxxxxxxxxxx [127.0.0.1]) by tammananny.tiger (8.8.7/petrouchka) with ESMTP id CAA00252 for <zsh-users@xxxxxxxxxxxxxxx>; Mon, 20 Oct 1997 02:19:30 -0700
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()...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author