configuration/local/bin/mtodo

17 lines
223 B
Plaintext
Raw Normal View History

2020-12-04 14:56:09 +01:00
#!/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"