Re: Auto Signatures with Balsa.



> Dunno why balsa's having problems with your program, I'll have to take
a
> look.  Personally, I generate all my signatures using a program called
> signify and a cron job that runs every day early in the morning.    It
> builds the signature from a template, and includes a random saying
from the
> fortune command.
> 
> Works well for me, YMMV,
> 
> MBG
> 

I think the issue is that balsa does a stat() on the named pipe, which
will report 0, or at least some very wrong size. But if you open up the
file and just read bytes until EOF, without the stat(), you'll get what
you want. This would mean that you have to have a little realloc() loop
for your buffer, though,which the stat() call is supposed to make
superfluous.

-- 
=====================================================
Peter Williams peter@newton.cx / peterw@helixcode.com





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