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

Re: [pbmserv-dev] Adding a command to a game



On Sun, Sep 25, 2005 at 06:42:49PM -0600, Robert Barrell wrote:
> Okay.  Finally got back to this, and it's almost ready to go.  Just one 
> thing is missing: how to make the output go through sendmail.  I just 
> realized my output is only printing, but not going through sendmail.  I 
> tried borrowing mailopen() from pbmcmds.c, but it seems I have to keep 
> borrowing more and more.

{
	Mail mail(boardno);
	mail.Add(getenv("SENDER"));

	FILE *fp=mail.fp();

	fprintf(fp,"whatever");
}


when mail drops out of context, it'll close the pipe




-- 
 /  \__  | Richard Rognlie / Sendmail Ninja / Gamerz.NET Lackey
 \__/  \ | http://www.gamerz.net/~rrognlie    <rrognlie at gamerz.net>
 /  \__/ | Creator of pbmserv@gamerz.net
 \__/    |                Helping reduce world productivity since 1994