@item sendmail
An array containing path to executable and its command line arguments
that is called for mail sending. If it is empty, then no mail processing
-will be performed from that node.
+will be performed from that node. Sendmail command
+@command{["/bin/foo", "bar"]} called the following way:
+@command{NNCP_SENDER=NODEID /bin/foo bar RCPT1 RCPT2 ... < MSG}.
@anchor{CfgIncoming}
@item incoming
@node Новости
@section Новости
+@node Релиз 0.12
+@subsection Релиз 0.12
+@itemize
+@item
+Команда sendmail вызывается с @env{NNCP_SENDER} переменной окружения.
+@end itemize
+
@node Релиз 0.11
@subsection Релиз 0.11
@itemize
See also this page @ref{Новости, on russian}.
+@node Release 0.12
+@section Release 0.12
+@itemize
+@item
+Sendmail command is called with @env{NNCP_SENDER} environment variable.
+@end itemize
+
@node Release 0.11
@section Release 0.11
@itemize
# $FreeBSD$
PORTNAME= nncp
-PORTVERSION= 0.11
+PORTVERSION= 0.12
CATEGORIES= net
MASTER_SITES= http://www.nncpgo.org/download/
if err != nil {
log.Fatalln(err)
}
- sendmail := ctx.Neigh[*job.PktEnc.Sender].Sendmail
+ sender := ctx.Neigh[*job.PktEnc.Sender]
+ sendmail := sender.Sendmail
if len(sendmail) == 0 {
ctx.LogE("rx", SdsAdd(sds, SDS{"err": "No sendmail configured"}), "")
isBad = true
strings.Split(recipients, " ")...,
)...,
)
+ cmd.Env = append(cmd.Env, "NNCP_SENDER=" + sender.Id.String())
cmd.Stdin = decompressor
if err = cmd.Run(); err != nil {
ctx.LogE("rx", SdsAdd(sds, SDS{"err": err}), "sendmail")