From 5d89139411ad7a043e6f21f65751414c7508fcf8 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Tue, 3 Dec 2019 15:07:04 +0700 Subject: [PATCH] TRANSPORT: ignore outbox "sdg DIPROSES" --- lib/transport.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/transport.js b/lib/transport.js index 2f49eb2..2e6ef83 100644 --- a/lib/transport.js +++ b/lib/transport.js @@ -13,6 +13,8 @@ async function send(partner, msg) { if (!destination || !Number(destination) || destination.length < 8) return; + if (msg.trim().search(/sdg DIPROSES$/) >= 0) return; + const msgFileContent = ` To: ${destination} -- 1.9.0