On Thu, 24 May 2001, Chris Ball wrote:
> On Wed, May 23, 2001 at 07:35:33PM -0700, Evan Martin wrote:
> > OK, I've committed my changes to the mail plugin to CVS.
> > Basically:
> > - used new API for plugins; all further functions are prefixed with
> > furtherp_ .
> > - used further's fade function for the fading. I may have broken
> > something here, too, but it seems to Work For Me.
> > - modified the spool-checking code to be a bit faster.
> > read() is unbuffered, so read()ing a byte at time is slow.
> > fgetc() is nicer, and there are some additional tricks we can do to
> > not analyze too many characters.
> > There are a few other speedups I can do, but this'll do for now.
> >
> > Current notes:
> > - This just tracks how many messages are in your inbox. I currently
> > have 49 messages. I'd like to track new messages, too... maybe I
> > need to do some digging in the gkrellm mail check code.
>
> I had a crack at this yesterday, and failed miserably. I have no idea
> what to do to keep track - every piece of code I found just uses
> timestamps on the spool file to tell you whether you have old mail or
> new mail. Which sucks.
I've been looking around a bit and found wmmail, a WindowMaker dock-app.
It looks hopeful, I've not really had time to look at the code properly
but it seems to be able to identify how many new messages are in the
spool, how it does this however is currently a mystery. I've put the
cuplrit code at http://www.jellybaby.net/~ed/mbox.c
> >#define MAIL_CLIENT_CMD "gnome-terminal -e mutt"
> >/* hah!
> > * i use mutt, and so will further (by default),
> > * until i get a configuration language working...
> > */
>
> People's hero! :-) (Ed's the pine user..)
>
It's true. I am, but I make no apologies
-- Ed."Do you know, I think it is? I really think it might just be a crazy little thing called sarcasm seeping in at the edges of my manner of speech!"
_______________________________________________ Further-devel mailing list Further-devel@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/further-devel
This archive was generated by hypermail 2.1.2 : Sun Nov 11 2001 - 14:16:15 PST