Subject: NNCP_SENDER environment for nncp-exec

From: Hadmut Danisch <[email-masked]>
Date: Sun, 14 Dec 2025 01:36:13 +0200

Hi,

when doing a nncp-exec, the target program at the receiver side is run 
with environments like

echo My message |
    NNCP_SELF=REMOTE \
    NNCP_SENDER=OurNodeId \
    NNCP_NICE=123 \
    /usr/sbin/sendmail -t root@localhost

as described on your web page.

That NNCP_SENDER (and NNCP_SELF) is the hex id of the sender, which in 
general is rather useless and a long random number.

Unfortunately, the neighbours are configured in the same file as the 
secret keys, i.e. /etc/nncp.hjson (if not choosing to write things in a 
big wood of separate files). So a target programm cannot (and should not 
be able) to read this and thus cannot determine the label, the human 
readable name of the sender node.

Would it be possible to pass the short names, that label used as a key 
in the neigh-Hash, as additional variables?

regards

Hadmut