[IRCServices] About new Version...

Jonathan George jonathan at lite.net
Mon Jul 17 08:19:59 PDT 2000


	I've implemented this before in two IRC-based projects I've done.

	Your best bet is to use popen(3) to open sendmail, and then just
write the email to the given pipe.  This has it's advantages because:

	a) You don't have to read() from the pipe.
	b) You don't have to try to send email again if the first one
bounces.
	c) Generally most popular MTA's (Qmail is a definite one) include
a drop-in sendmail replacement, OR they just leave sendmail alone.
Sendmail is both a client and server, and there is no reason it can't be
left alone just to be used to pipe mail into.

Regards,

Jonathan George, CEO
MultiList Central
www.MultiListCentral.com

|> .. where >>> precedes a line sent by the server, and <<< precedes one sent by
|> the client.  Note the blank line separating the Subject: header from the
|> message body.  Completely RFC compliant and easy to implement.  Also notice my
|> MTA (in the 'greeting' line) is not Sendmail, but another popular alternative
|> called Exim.  No problem if the mail-sending routines are implemented in "SMTP
|> client" form but a potential PITA [pain in the a**] if you wanted to use
|> command-line sending.  Obviously some error-handling must be built in
|> (500-series numbers in particular mean a rejected delivery) but this is pretty
|> trivial.
|
|I can see that then, thank you for clearing that up :)



---------------------------------------------------------------
To unsubscribe, send email to majordomo at ender.shadowfire.org
with "unsubscribe ircservices" in the body, without the quotes.