shithub: 9front-config

ref: 28d1de9805fcadde8edf3dc246b295e0e1447197
dir: /bin/fml/

View raw version
#!/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.
}