From: Wilfried Göesgens Date: Tue, 3 Oct 2006 14:58:55 +0000 (+0000) Subject: * inject the welcome mail into the lobby of the local system. X-Git-Tag: v7.86~3921 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=3d850e6005db56f27773226ce3907ea86da9e484;p=citadel.git * inject the welcome mail into the lobby of the local system. --- 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"