configuration/local/bin/mtodo
Felix Van der Jeugt 5fe8a76095
start using mblaze
2020-12-04 14:56:09 +01:00

17 lines
223 B
Bash
Executable File

#!/bin/sh
f="$(mktemp)"
vis - > "$f" <<HERE
Date: $(date --rfc-email)
To: todo@localhost
From: todo@localhost
Subject:
Message-Id: $(mgenmid)
User-Agent: mtodo
HERE
[ ! -s "$f" ] && exit
mdeliver /data/mail/todo < "$f"