ref: 908cf58516331f7334225ecbc81e8eb2c0fa0c04
dir: /bin/fml/
#!/bin/rc
# Create the mail header that contains the from field
# A lazy way to handle aliases on Fastmail
header=/mail/box/$user/headers
switch($1) {
case r # My day-to-day email address ;)
echo 'From: romi <romi@grtsk.net>' > $header
case rh # My dev email address :^)
echo 'From: Romi Hervier <r@sansfontieres.com>' > $header
case *
echo No.
}