/*
NNCP -- Node to Node copy
-Copyright (C) 2016-2017 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2016-2018 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
"File request from %s:%s to %s: %s",
nodeS, sds["src"], sds["dst"], rem,
)
- case "mail":
+ case "exec":
msg = fmt.Sprintf(
- "Mail to %s@%s (%s): %s",
- nodeS, strings.Replace(sds["dst"], " ", ",", -1), size, rem,
+ "Exec to %s@%s (%s): %s",
+ nodeS, sds["dst"], size, rem,
)
case "trns":
msg = fmt.Sprintf(
}
case "rx":
switch sds["type"] {
- case "mail":
+ case "exec":
msg = fmt.Sprintf(
- "Got mail from %s to %s (%s)",
- nodeS, strings.Replace(sds["dst"], " ", ",", -1), size,
+ "Got exec from %s to %s (%s)",
+ nodeS, sds["dst"], size,
)
case "file":
msg = fmt.Sprintf("Got file %s (%s) from %s", sds["dst"], size, nodeS)
if err, exists := sds["err"]; exists {
msg += ": " + err
}
+ case "nncp-rm":
+ msg += "removing " + sds["file"]
case "call-start":
msg = fmt.Sprintf("Connected to %s", nodeS)
case "call-finish":