~rockorager/mjmap

90224a50b6071f06a2350bbded20130a0af454fa — Robin Jarry 8 months ago e10d617
main: add -t sendmail compat flag

JMAP email submission always reads recipients from the email body. Only
add the flag to be able to use mjmap as a sendmail replacement.

Signed-off-by: Robin Jarry <robin@jarry.cc>
1 files changed, 1 insertions(+), 0 deletions(-)

M main.go
M main.go => main.go +1 -0
@@ 20,6 20,7 @@ func main() {
	cmd.Flags().Bool("version", false, "print the version")

	// sendmail compatibility flags
	cmd.Flags().BoolP("read-recipients", "t", false, "Read recipient addresses from headers")
	cmd.Flags().StringP("from", "f", "", "Set the envelope-from address")
	cmd.Flags().BoolP("ignore-dots", "i", false, "Ignore dots alone on lines by themselves in incoming messages. This should be set if you are reading data from a file.")
	cmd.Flags().StringP("logfile", "X", "", "Set or unset the log file")