On 5/26/09 2:00 PM, Alexey Pechnikov wrote:
ns_sendmail can't work for non-ascii subject and body. I wrote the simple wrapper. is it possible to fix upstream version or add like wrapper?
Nice wrapper - this assumes the receipient can understand MIME-encoded mail, which is probably the case but would break existing code that expects outgoing mail having the old behavior.
Perhaps only define the wrapper if a ns_param is set in the configuration, and by default not apply the wrapper? Or, better yet: integrate your change into ns_sendmail directly and again, activate it using an optional proc argument or ns_param config setting.
Ideally, it's probably best to work to define a reasonable "ns_mail" interface and implement it. ns_sendmail is an ugly wart that needs to go ...
-- Dossy Shiobara | [email protected] | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70) -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[email protected]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
