You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
648 B
22 lines
648 B
#!/bin/sh
|
|
# Brot bestellen, per email als Vorlage
|
|
|
|
# basic variables / text
|
|
day=$(date +%e)
|
|
#$(($DAY = $DAY + 1))
|
|
|
|
date="$(($day + 1))$(date +.%m.%y | sed 's/^\.0/\./')"
|
|
tmpfile="/tmp/brot-tmp-bestellung.txt"
|
|
subject="Bestellung fuer morgen $date"
|
|
msg="Hallo,\nich wuerde gerne folgendes
|
|
fuer morgen $date bestellen:\n\n 6x Broetlen
|
|
gestaubt\n 6x Semmeln\n 7x Apfelplunder\n 8x Salzstangen\n\nDanke!\n
|
|
\nAdresse\”zeile2 etc...\nzeile 3...."
|
|
|
|
# save the message to a tmp file
|
|
echo -e $msg > ${tmpfile}
|
|
|
|
# create the email and start mutt
|
|
neomutt -b "brot@archive.xxxxxxx.xyz" -s "$subject" -i ${tmpfile} -- "Gstreins Brot <info@xxxxxxx.xyz>"
|
|
|