DragonFly BSD
DragonFly kernel List (threaded) for 2003-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Anybody working on removing sendmail from base?


From: "David P. Reese, Jr." <daver@xxxxxxxxxxxx>
Date: 29 Sep 2003 11:28:34 GMT

In article <20030929090916.GA23246@xxxxxxxxxxxxxxxxxxxx>, Tim wrote:
> It's not clear to me what you are trying to do.
> 
> The script I mentioned was written for xbiff, which obviously will
> work if you are running X.  If you run a screen variation or whatever,
> then I would recommend starting with something like biff and modify
> appropriately.
> 
> If you want true asynchronous notification then you might have to
> muck with qmail's delivery mechanism so that whenever a new piece of
> e-mail arrives you will be notified immediately, such as putting a
> filter in .qmail.
> 
> Tim
> 
> On Sat, Sep 27, 2003 at 09:46:21AM -0700, Chris Pressey wrote:
>> > I suppose I can make login not check, and do it with the
>> > shell?
>> 
>> There must be a way.  Tim mentioned a precmd alias for tcsh - that's
>> probably a good lead.
>> 
>> But - what I don't like about this setup is that it's synchronous with
>> displaying a new prompt.  If I get new mail, but leave my tcsh prompt
>> untouched for an hour, I won't see the message for an hour.  :(
>> 
>> Perhaps in the days before X11 and screen when one instance of the shell
>> was in more or less constant use, this was marginally acceptable... but
>> surely in an asynchronous-friendly OS like DragonFlyBSD there should be
>> a way to be notified right when it happens...?  It can't be too hard to
>> have a background process write to the terminal - kind of messy, though.
>> 
>> -Chris

Have procmail send a signal to your shell and implement a signal handler
in tcsh that catches it, printing a new mail message to the terminal.
You could even forget about procmail and send the signal from .forward.

A quick and dirty hack, but it should work.

-- 
   David P. Reese, Jr.                                     daver@xxxxxxxxxxxx
                                               http://www.gomerbud.com/daver/



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]