From 3d850e6005db56f27773226ce3907ea86da9e484 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 3 Oct 2006 14:58:55 +0000 Subject: [PATCH] * inject the welcome mail into the lobby of the local system. --- citadel/sendwelcomemail.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 citadel/sendwelcomemail.sh diff --git a/citadel/sendwelcomemail.sh b/citadel/sendwelcomemail.sh new file mode 100644 index 000000000..74ceb4af7 --- /dev/null +++ b/citadel/sendwelcomemail.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +export FOO=2600908b3f21ae7f692b973ed26e212d +export WELCOMEHTML=docs/welcomemail.html +export WELCOMETXT=docs/welcomemail.txt +export FROM=room_citadel_stats@uncensored.citadel.org +export TO=room_lobby +( + printf "MIME-Version: 1.0\r\nContent-Type: multipart/alternative; \r\n boundary=$FOO\r\n\r\nThis is a multi-part message in MIME format.\r\n\r\n--$FOO\r\nContent-Type: text/plain; charset=utf-8\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n"; + cat $WELCOMETXT + printf "\r\n\r\n--$FOO\r\nContent-Type: text/html; charset=US-ASCII\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n" + cat $WELCOMEHTML; + printf "\r\n\r\n--$FOO--\r\n\r\n") | \ + citmail -bm -r "$FROM" "$TO" -- 2.39.2