MCPcopy Create free account
hub / github.com/annmuor/jnode / writeReply

Method writeReply

jnode-core/src/jnode/ftn/FtnTools.java:970–980  ·  view source on GitHub ↗

Пишем ответ на нетмейл @param fmsg @param subject @param text @throws SQLException

(FtnMessage fmsg, String subject, String text)

Source from the content-addressed store, hash-verified

968 * @throws SQLException
969 */
970 public static void writeReply(FtnMessage fmsg, String subject, String text) {
971 FtnAddress from = getPrimaryFtnAddress();
972 StringBuilder sb = new StringBuilder();
973 if (fmsg.getMsgid() != null) {
974 sb.append("\001REPLY: " + fmsg.getMsgid() + "\n");
975 }
976 sb.append(text);
977 sb.append(quote(fmsg));
978 writeNetmail(from, fmsg.getFromAddr(), fmsg.getToName(),
979 fmsg.getFromName(), subject, sb.toString());
980 }
981
982 public static String quote(FtnMessage fmsg) {
983 StringBuilder sb = new StringBuilder();

Callers 8

getAndCheckLinkMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95
processScriptMethod · 0.95
processCommandsMethod · 0.95
replyMethod · 0.95
tossNetmailMethod · 0.80

Calls 9

getPrimaryFtnAddressMethod · 0.95
quoteMethod · 0.95
writeNetmailMethod · 0.95
appendMethod · 0.80
getMsgidMethod · 0.45
getFromAddrMethod · 0.45
getToNameMethod · 0.45
getFromNameMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected